WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Bakery Shop => Topic started by: svsanchez on November 02, 2015, 05:54:26 PM

Title: PNG (transparent) thumbnails?
Post by: svsanchez on November 02, 2015, 05:54:26 PM
Hello, I just uploaded several products with their corresponding transparent image in PNG, but to my surprise the thumbnails are not transparent PNGs but JPGs with a black background. How can I tell Bakery to create the thumbnails in transparent PNG?

Thank you!
Title: Re: PNG (transparent) thumbnails?
Post by: freeSbee on November 05, 2015, 09:56:51 PM
Hi svsanchez

Replace the 4 original Bakery files resize_img.php, save_item.php, modify_item.php and modify.php by the ones provided in the attached zip.

Please report if you find any bugs.

Regards Christoph
Title: Re: PNG (transparent) thumbnails?
Post by: freeSbee on November 06, 2015, 09:52:16 PM
Hi

Just found another small bug. Please use the bakery png patch attached below.
Please report if you find any bugs.

Regards Christoph
Title: Re: PNG (transparent) thumbnails?
Post by: svsanchez on May 11, 2016, 09:03:08 PM
Hello freesbee, I just found your reply to my question so I wanted to say thank you.

I'm not sure how I solved the problem last year, but it's great to have this solution on the forum.
Title: Re: PNG (transparent) thumbnails?
Post by: svsanchez on November 07, 2016, 09:57:39 PM
Hello again freesbee, I'm again updating the catalog with some transparent "PNG" pictures for each product, and encountered the same problem as last year (black background instead of transparent background) so I replaced the 4 files you suggested on your post but now I get the following error:

Warning: require_once(/home/decorade/public_html/modules/bakery/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/decorade/public_html/modules/bakery/modify.php on line 40

Fatal error: require_once() [function.require]: Failed opening required '/home/decorade/public_html/modules/bakery/config.php' (include_path='.:/usr/lib/php') in /home/decorade/public_html/modules/bakery/modify.php on line 40

I'm guessing it's because I'm using bakery v1.5.9?
Title: Re: PNG (transparent) thumbnails?
Post by: freeSbee on November 08, 2016, 08:14:08 AM
Hi svsanchez

Strange - Bakery v1.5.9 does not have a config file at all.
Did you mix up two versions of Bakery?

Regards Christoph
Title: Re: PNG (transparent) thumbnails?
Post by: svsanchez on November 09, 2016, 07:02:02 AM
Hello freeSbee, I uploaded the 4 files that you had attached on the previous post, which must have been for newer versions of Bakery. I upgraded the whole thing and removed the possibility of adding products to the catalog due to the problem I mentioned on my other post about not being able to skip checkout if only 1 payment option is available. Now the transparent PNGs are working.