Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gif to image support and update imageMagick to 14.2 #517

Open
wants to merge 3 commits into
base: integration
Choose a base branch
from

Conversation

RTnhN
Copy link

@RTnhN RTnhN commented Nov 24, 2024

It is really handy to be able to convert an animated gif to a still image. Most of the time, this just involves grabbing the first frame of the gif. This change implements that. In the future, the option to be able to select what frame to get should maybe be added, but for now this covers maybe 90% of the use cases for gif to img.

Another problem that I had that was also in #527 was that IOS with their HEIC file format did not convert. Only newer versions of ImageMagick fixed the problem, so I updated to 14.2. This required casting some variables from int to uint though.

I installed it after building, and it works great.

Let me know what you think or if you have any suggestions for this. Thanks!

Closes #433
Closes #115
Closes #527
Closes #493
Closes #512

Heic images from IOS 18 cause problems for earlier versions of ImageMagick.net.
dlemstra/Magick.NET#1753

This updates the library to 14.2.0. The library changed a bunch of int to uint, so this also
casts all of the ints to uints.
@RTnhN RTnhN changed the title Add gif to image support Add gif to image support and update imageMagick to 14.2 Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant