optimizing graphics seem to be overridden somehow

Started by llegrand, May 05, 2015, 05:49:27 PM

Previous topic - Next topic

llegrand

I am working in a new clean install of 1.2.1.

It seems there is something that is overriding my image file sizes.  I have optimized my images to increase my page load speeds,  but something seems to be re-doing them.

Here's an example,  I uploaded a product image of 300 x 300 optimized to 25.7KB,   but when I check image sizes on the home page it comes up at 250 x 250 for 244.84  KB  and all the images on the home page regardless of what I have for the upload to the resource library seem to use that size.  If i check the resource library  it is 100 x 100 for 39.28 KB

What is re-sizing the uploads?  I have not encountered this with previous versions so am "concerned" with the 1.2.1 as it is negatively impacting my page load speeds.

After doing a little more testing  I am only having the issue with .png images,   jpg is working correctly.  So now I am more confused!  Should we not be using png?


thanks.
Lee

abolabo

no. Abantecart resize images by request. On storefront you see thumbnails. You original png saves as-is. You can check it size in Resource Library on admin-side, just click "preview".
i guess issue is in core/lib/image.php.
Can you post url of your png?
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

llegrand

Okay,  here's a clean test for you  -  http://wehearyou2.com/test121/

Look in the latest products

blue image png  uploaded 500 x 500 77 KB  in resources  shows 100 x 100 thumbnail  39.28 KB  Home page 250 x 250 244.84 KB

red image jpg uploaded  500 X 500 57.5 KMB in resources  shows 100 x 100 thumbnail  13.07 KB  Home page 250 x 250 55.5 KB


this is just something I don't understand. 

Lee

abolabo

"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

llegrand

I have checked that file against the one in the installed cart (a virgin install with nothing changed in the files)using a compare tool.

They are identical.   So what's next?

By the way I tested this on the demo installed also,  and it has the same result.



abolabo

i added optimizing process for png into image.php .
To test you need:
- replace core/lib/image.php
- clear thumbnails via admin->system->cache->clear images
- open storefront ( your thumbnails will be recreated)
- check size
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

llegrand

okay,  have done all that -  actually did it three times to be really sure I used the correct file

I am getting the same size on the home page -  I have added one more - the Abantecart Logo,  and it behaves the same.
It seems is does not matter what size the image is,  the 250 x 250 goes to the same size on png files.  244.84

abolabo

"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Forum Rules Code of conduct
AbanteCart.com 2010 -