Archived from the Transloadit support forum. Originally posted on August 12, 2011; details may be outdated, see our docs for current behavior. Original thread
Hi, I’ve problems with resizing tranparent PNG(EPS) to JPG. The background of the image is black. Please, see next urls:
Original: http://zulamaassetsdev.s3.amazonaws.com/lesson_assets/REDACTED/:original/ms-050.png
Resized image: http://zulamaassetsdev.s3.amazonaws.com/lesson_assets/REDACTED/image_lesson/ms-050.jpg
I’ve tried add a white background, but this doesn’t help me.
Discussion about this problem on imagemagick forum: http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=8359
tim-kos
(Tim Koschützki)
August 15, 2011, 6:35am
2
Hey Alex,
can you please paste what params you are exactly using? Then I will debug this for you and can create a testcase.
The forum discussion really helps as well. Thanks for pointing us to that.
Kind regards,
Tim
Template params:
{
"steps": {
"image_thumb": {
"use": ":original",
"robot": "/image/resize",
"format": "jpg",
"width": 100,
"height": 100,
"zoom": false
},
"image_lesson": {
"use": ":original",
"robot": "/image/resize",
"format": "jpg",
"width": 230,
"height": 230,
"strip": true,
"background": "white",
"flaten":true,
"zoom": false
},
"image_full": {
"use": ":original",
"robot": "/image/resize",
"format": "jpg",
"strip": true,
"background": "white",
"flaten":true,
"zoom": false
},
"store": {
"use": ["image_thumb", "image_lesson", "image_full", ":original"],
"robot": "/s3/store",
"key": "",
"secret": "",
"bucket": "",
"path" :"lesson_assets/${file.original_id}/${previous_step.name}/${file.url_name}"
}
}
}
Transparent png file is attached.
Thanks.
tim-kos
(Tim Koschützki)
August 15, 2011, 9:09pm
4
Hey Alex,
thanks for posting this. I will look into this tomorrow. Got to work on some other stuff now and then need to hit the sack.
Will let you know tomorrow how it goes.
Kind regards,
Tim
tim-kos
(Tim Koschützki)
August 17, 2011, 1:38pm
5
Hey Alex,
sorry it took me a little longer than expected, but I was busy getting our new homepage into shape.
I have implemented the required changes - please let me know if it is working for you now.
Kind regards,
Tim
Thanks, Time. Now this file is processed fine.
Thanks, Time. Now this file is processed fine.
tim-kos
(Tim Koschützki)
August 17, 2011, 2:13pm
8
Great. Closing this ticket.