-
Notifications
You must be signed in to change notification settings - Fork 241
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
--crop-transparency only seems to trim the bottom and right transparency #169
Comments
I reached out the ezgif.com and they explained that they actually have the same issue and that the workaround was to call Gifsicle 4 times as a workaround: $ gifsicle --crop-transparency input.gif -o output.gif
$ gifsicle --rotate-90 -b output.gif
$ gifsicle --crop-transparency -b output.gif
$ gifsicle --rotate-90 -b output.gif
$ gifsicle --crop-transparency -b output.gif
$ gifsicle --rotate-90 -b output.gif
$ gifsicle --crop-transparency -b output.gif
$ gifsicle --rotate-90 -b output.gif |
If bottom & right cropping works correctly, wouldn't just $ gifsicle --crop-transparency input.gif -o output.gif
$ gifsicle --rotate-180 -b output.gif
$ gifsicle --crop-transparency -b output.gif
$ gifsicle --rotate-180 -b output.gif be enough? |
Ahah yes, oops! |
I think EZGIF should've figured out that workaround, too. Maybe they've got someone to help contribute a fix back here? |
ezgif actually is already using 180, I had just somehow managed to interpret it incorrectly despite it being quite explicit: https://twitter.com/ezgif_com/status/1417713291410001921 |
When I try to use
gifsicle --crop-transparency 218.gif -o cropped.gif
on the following image I get a new gif which is trimmed but which only seems to have had the transparency removed from the bottom and right of the image:However, if I use https://ezgif.com/ with the "trim transparent pixels around the image" option and select "Crop with: Gifsicle" I get the properly cropped image that I would expect:
I understand this project has no association with https://ezgif.com/, but the fact that they claim to be using Gifsicle in this instance makes me believe that I should be able to achieve the same results and that I must simply be "holding it wrong". Am I missing something basic? If it helps: I'm using Gifsicle 1.93 and I've tried the command on both Ubuntu Linux and on macOS Catalina.
Thanks!
The text was updated successfully, but these errors were encountered: