![]() Well, I did a little test on adding the optimization flag to see if the gif would break… $ convert dodo_anim.gif -coalesce -gravity center -background transparent -thumbnail 60圆0\> -layers optimize dodo8.gif rw-r-r- 1 sigurdur sigurdur 941 feb 24 16:00 dodo7.gif rw-r-r- 1 sigurdur sigurdur 941 feb 24 15:58 dodo6.gif To make sure you’re only downscaling (not upscaling to 60圆0), you can add the > tag to the command … let me show you how: $ convert dodo_anim.gif -coalesce -gravity center -background transparent -thumbnail 60圆0\> dodo7.gif What’s worse is that the emoji is being upscaled to 60圆0, not downscaled or the resolution kept. rw-r- 1 sigurdur sigurdur 995 feb 24 15:48 dodo_anim.gif The price of removing the switch for this image was only 147B $ ll dodo* $ convert dodo_anim.gif -gravity center -background transparent -thumbnail 60圆0 -layers optimize dodo5.gifĪfter looking at the output of each trial, I found that “-layers optimize” causes the transparency to fudge up. $ convert dodo_anim.gif -coalesce -background transparent -thumbnail 60圆0 -layers optimize dodo4.gif $ convert dodo_anim.gif -coalesce -gravity center -thumbnail 60圆0 -layers optimize dodo3.gif $ convert dodo_anim.gif -coalesce -gravity center -background transparent -thumbnail 60圆0 dodo2.gif $ convert dodo_anim.gif -coalesce -gravity center -background transparent -thumbnail 60圆0 -layers optimize dodo1.gif ![]() ![]() It looks like the flag “-layers optimize” is causing the broken look. I did a little investigating using your code there…
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |