Zen Cart Logo
Forums / General Questions / Can we use .png for products?

Can we use .png for products?

Views: 1,275

Results 1 to 6 of 6
28 Jan 2019, 3:04 PM
#1
bscho avatar

bscho

Zen Follower

Join Date:
Jul 2016
Location:
London
Posts:
259
Plugin Contributions:
0

Can we use .png for products?

Having always to make jpg when Gimp gives .png as favoured.

Any way of changing to accept pngs instead of jpgs

28 Jan 2019, 3:16 PM
#2
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Can we use .png for products?

You can choose .png without any changes

28 Jan 2019, 7:27 PM
#3
bscho avatar

bscho

Zen Follower

Join Date:
Jul 2016
Location:
London
Posts:
259
Plugin Contributions:
0

Re: Can we use .png for products?

I am using 1.5.6a and it does not accept pngs when I make a new product only jpgs.

28 Jan 2019, 7:59 PM
#4
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Can we use .png for products?

Zen Cart has been accepting jpg, gif, webp, png, and swf for as long as I can remember. I suggest you check the .htacces file in your images folder against a fresh Zen Cart file set. And check your hosting for allowed files on the server.

29 Jan 2019, 7:08 AM
#5
bscho avatar

bscho

Zen Follower

Join Date:
Jul 2016
Location:
London
Posts:
259
Plugin Contributions:
0

Re: Can we use .png for products?

Thanks for that I'll try it out.

I see this in the present one

EXPIRES CACHING

<IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType text/html "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresByType <https://www.google-analytics.com/> " access 1 month" ExpiresDefault "access 1 month" </IfModule> ## EXPIRES CACHING ## <ifModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* </ifModule> ErrorDocument 404 <https://www.webhouses.co.uk/404page.html> <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.webhouses.co.uk/$1 [R,L] </IfModule>
29 Jan 2019, 7:29 AM
#6
bscho avatar

bscho

Zen Follower

Join Date:
Jul 2016
Location:
London
Posts:
259
Plugin Contributions:
0

Re: Can we use .png for products?

I have tried an image test of a png and it worked. I'll have to go back and try the orginal failed jpgs again to see what is happening.

First the pngs did not work I made jpgs and they worked. I'll get to the bottom of this I hope.

Anyway thanks for your help. Much appreciated.