# Transparent PNG to JPG conversion

**URL:** <https://community.transloadit.com/t/transparent-png-to-jpg-conversion/17966>\
**Category:** Transloadit\
**Tags:** tender-archive\
**Created:** [August 12, 2011, 10:41am UTC](https://community.transloadit.com/t/transparent-png-to-jpg-conversion/17966 "2011-08-12T10:41:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Kojin1](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/alex_kojin1/32/1517_2.png) [@Alex\_Kojin1](https://community.transloadit.com/u/Alex_Kojin1)\
**Post date:** [August 12, 2011, 10:41am UTC](https://community.transloadit.com/t/transparent-png-to-jpg-conversion/17966/1 "2011-08-12T10:41:00Z")

</div>

> Archived from the Transloadit support forum. Originally posted on August 12, 2011; details may be outdated, see [our docs](https://transloadit.com/docs/) for current behavior. [Original thread](https://web.archive.org/web/20140918112901/http://support.transloadit.com/discussions/problems/180-transparent-png-to-jpg-conversion)

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](http://zulamaassetsdev.s3.amazonaws.com/lesson%5Fassets/REDACTED/:original/ms-050.png)  
Resized image: [http://zulamaassetsdev.s3.amazonaws.com/lesson\_assets/REDACTED/image\_lesson/ms-050.jpg](http://zulamaassetsdev.s3.amazonaws.com/lesson%5Fassets/REDACTED/image%5Flesson/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](http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=8359)

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [August 15, 2011, 6:35am UTC](https://community.transloadit.com/t/transparent-png-to-jpg-conversion/17966/2 "2011-08-15T06:35:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Alex\_Kojin1](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/alex_kojin1/32/1517_2.png) [@Alex\_Kojin1](https://community.transloadit.com/u/Alex_Kojin1)\
**Post date:** [August 15, 2011, 3:06pm UTC](https://community.transloadit.com/t/transparent-png-to-jpg-conversion/17966/3 "2011-08-15T15:06:00Z")

</div>

Template params:

```auto
{
  "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.

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [August 15, 2011, 9:09pm UTC](https://community.transloadit.com/t/transparent-png-to-jpg-conversion/17966/4 "2011-08-15T21:09:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [August 17, 2011, 1:38pm UTC](https://community.transloadit.com/t/transparent-png-to-jpg-conversion/17966/5 "2011-08-17T13:38:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Alex\_Kojin1](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/alex_kojin1/32/1517_2.png) [@Alex\_Kojin1](https://community.transloadit.com/u/Alex_Kojin1)\
**Post date:** [August 17, 2011, 2:11pm UTC](https://community.transloadit.com/t/transparent-png-to-jpg-conversion/17966/6 "2011-08-17T14:11:00Z")

</div>

Thanks, Time. Now this file is processed fine.

---

<div class="post-metadata">

**Author:** ![Alex\_Kojin1](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/alex_kojin1/32/1517_2.png) [@Alex\_Kojin1](https://community.transloadit.com/u/Alex_Kojin1)\
**Post date:** [August 17, 2011, 2:12pm UTC](https://community.transloadit.com/t/transparent-png-to-jpg-conversion/17966/7 "2011-08-17T14:12:00Z")

</div>

Thanks, Time. Now this file is processed fine.

---

<div class="post-metadata">

**Author:** ![tim-kos](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tim-kos](https://community.transloadit.com/u/tim-kos)\
**Post date:** [August 17, 2011, 2:13pm UTC](https://community.transloadit.com/t/transparent-png-to-jpg-conversion/17966/8 "2011-08-17T14:13:00Z")

</div>

Great. Closing this ticket.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/04ee57da0cb7ac8728a9ac5965c288164f4ce280.svg) [@system](https://community.transloadit.com/u/system)\
**Post date:** [October 7, 2026, 9:35am UTC](https://community.transloadit.com/t/transparent-png-to-jpg-conversion/17966/9 "2026-10-07T09:35:33Z")

</div>


