pepperstreet VIP
Total posts: 3,837
28 Aug 2014 20:33

Hello, is it possible to resize images, but keep the original file format?
i.e. PNG with transparency

use cases:

  • image slider with products (separate upload, or featured items pulled from catalog/directory)
  • product main image (placed on same common background)

Last Modified: 09 Sep 2014


Jeff VIP
Total posts: 745
28 Aug 2014 23:05

+1


pepperstreet VIP
Total posts: 3,837
29 Aug 2014 19:53

Ooops, this was primarily a QUESTION. ;)

Any thoughts and advice? If not possible by configuration... maybe upload of original... and custom call of resize-function and parameters?


Jeff VIP
Total posts: 745
07 Sep 2014 17:02

I gave you a +1 because it is a good question. And I also would like to know how this might be done.

Pointer: http://stackoverflow.com/questions/16977853/resize-images-with-transparency-in-php


Sergey
Total posts: 13,748
08 Sep 2014 01:10

I checked the code. And it looks like resizes should keep the file format.


pepperstreet VIP
Total posts: 3,837
08 Sep 2014 12:37

Sergey I checked the code. And it looks like resizes should keep the file format.

Cool, it works in image field! :)

(Haha, never noticed that before. Somehow I did expect to get a JPG with any resize option. Mainly because of the typical "quality" option.)


Jeff VIP
Total posts: 745
09 Sep 2014 02:48

Sergey I checked the code. And it looks like resizes should keep the file format.

+2

I thought it didn't work too, but it turned out that my img-polaroid class had a background color. :-)

Powered by Cobalt