RMagick looses gif transparency after get_pixels and store_pixels
germansokolov13 opened this issue · 1 comments
germansokolov13 commented
I am trying to wite a Ruby script for batch processing images with RMagick. But when I use for exaple this code:
img = ImageList.new('in.gif').first
pixels = img.get_pixels(0,0,img.columns,img.rows)
img.store_pixels(0,0, img.columns, img.rows, pixels)
img.write('out.gif');
I expect my image stay unchanged, but it looses it's transperency turning it into black. How do I correctly process gifs with transparency with RMagick?
Here is my image: http://i.imgur.com/uYL6vAR.gif
The virsion I used are: Rmagick gem - 2.13.2 Ruby - 2.1.2 ImageMagick 6.7.7-10 Ubuntu 13.10
germansokolov13 commented
I am sorry, it appears it's a bug in ImageMagick itself. Maybe it's fixed in ImagheMagick 6.8? Too bad, Ubuntu official repo doesn't have it.