Archived from the Transloadit support forum. Originally posted on September 13, 2011; details may be outdated, see our docs for current behavior. Original thread
When resizing a GIF with transparency to JPG, transparent areas are converted to black. This is expected behavior according to http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=8359, assuming the same applies to GIF (the url talks about PNG).
The link to that was provided by Tim Koschuetzki, who also points out that setting the background to “#FFFFFF” should be a fix at http://transloadit.com/docs/image-resize.
My configuration is:
{
"steps": {
"resize": {
"robot": "/image/resize",
"width": 750,
"height": 195,
"format": "jpg",
"background": "#FFFFFF"
},
...
Figured this might warrant its own ticket. It’s unclear whether it’s a bug or feature request, but probably more than should be handled by the documentation comments : )