question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extending examples

See original GitHub issue

Issue Current index page with tutorials https://kleisauke.github.io/net-vips/tutorial/getting_started.html could be improved with more snippets which would save new users (like me) some time. These are some basic things most web app devs need:

  1. Resizing to exact size: First try after migrating to libvips from another image library: image.ThumbnailImage(width: w, height: h); Actual way to do it: image.ThumbnailImage(width: w, height: h, size: "force");

2) Saving gif image: First attempt: image.WriteToFile('somepath.gif'); Actual way to do it: 1) Uninstall nuget with dll binaries. 2) Download binaries from libvips, mark as embedded resources 3) image.Magicksave("somepath.gif", "gif"); Since v8.12.0-rc1: https://www.libvips.org/2021/11/14/What’s-new-in-8.12.html#better-gif-save

Describe the solution you’d like Consider adding these to the examples.

Describe alternatives you’ve considered Do nothing, keep things as is. It was hard to write, it should be hard to use.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kleisaukecommented, Dec 2, 2021

NetVips v2.1.0 and NetVips.Native v8.12.1 is now available.

2reactions
kleisaukecommented, Nov 17, 2021

The second snippet is no longer required for libvips 8.12, as that features a gifsave operation that uses cgif and libimagequant. See: https://www.libvips.org/2021/11/14/What’s-new-in-8.12.html#better-gif-save

This can be tested using the NetVips.Native v8.12.0-rc1 NuGet package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Examples of "Extending" in a Sentence | YourDictionary.com
Learn how to use "extending" in a sentence with 500 example sentences on YourDictionary.
Read more >
Extend Definition & Meaning
a · to cause to be of greater area or volume : enlarge. extended the patio to the back of the house ;...
Read more >
Examples of 'extend' in a sentence
Examples from Collins dictionaries ... The caves extend for some 18 kilometres. The main stem will extend to around 12ft, if left to...
Read more >
Examples of "Extend" in a Sentence | YourDictionary.com
Learn how to use "extend" in a sentence with 500 example sentences on YourDictionary.
Read more >
Meaning of extending in English - Cambridge Dictionary
extend verb (OFFER) ... to offer or give something to someone: I should like to extend my thanks to you for your kindness....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found