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

Can't convert animated png files #40

Open
JasonQuinn opened this issue Mar 7, 2023 · 3 comments
Open

Can't convert animated png files #40

JasonQuinn opened this issue Mar 7, 2023 · 3 comments

Comments

@JasonQuinn
Copy link

When I try to convert an animated png file (like https://en.wikipedia.org/wiki/File:Animated_PNG_example_bouncing_beach_ball.png) to a gif I get an error saying ffmpeg isn't installed in the container

docker run -v /tmp/imgs:/imgs dpokidov/imagemagick apng:/imgs/testing_animated.png /imgs/test_apng.gif
sh: 1: ffmpeg: not found
convert: no images defined `/imgs/test_apng.gif' @ error/convert.c/ConvertImageCommand/3342.
@dooman87
Copy link
Owner

Thanks Jason for reporting this. I could reproduce an issue. I think building and including ffmpeg as part of this project would be a bit of extreme, however I believe we can look into building libpng with APNG patch looking at this code: https://github.com/ImageMagick/ImageMagick/blob/main/coders/png.c#L13

@dooman87
Copy link
Owner

After some further looking into this unfortunately reading APNG files require ffmpeg. Having and supporting ffmpeg as part of these images would be a big deal (bigger sizes of docker images, additional dependencies), but we can most certainly look into creating a new image with added FFMPEG. There seems to be a good instruction on how to compile it here

@JasonQuinn
Copy link
Author

Yeah a separate image would be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants