Post by Karen » Sat Jun 26, 2010 3:09 pm

I'm using 1.4.8b, and I notice that my uploaded photo is generating up to 6 different sizes in the cache folder: 38x38, 40x40, 75x75, 100x100, 125x125, and 350x450.

I've only specified 3 different sizes for photos (75x75, 125x125, and 350x450). I know there's probably another size needed for the admin product form, but I don't get why it's creating the 100x100, and there's only 2 pixels difference between 38x38 and 40x40, so one of those is a complete waste of server space.

Can somebody explain the extra photos, and perhaps what templates I can modify to keep the 100x100 and one of the two smallest sizes from being created?

Thanks.

Using OC version 1.4.8b
http://catandcaboodle.com/


User avatar
Active Member

Posts

Joined
Thu Jun 10, 2010 2:51 pm
Location - WA State, USA

Post by JAY6390 » Sat Jun 26, 2010 7:34 pm

I've no idea where the 40x40 images are coming from sorry, but the 38x38 images can be edited in the modules for the bestseller and featured modules to 40x40 instead of 38x38. You'll have to edit the controllers for these in
/catalog/controller/module/bestseller.php and /catalog/controller/module/featured.php
just find 38, 38 and replace with 40, 40
-- IMAGE REMOVED --

To set the default image sizes for other settings (like product images) you can do it using the following
-- IMAGE REMOVED --

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by Karen » Sun Jun 27, 2010 4:26 am

Wow, Jay, as usual you are spectacular.

I had already deliberately specified only 3 different image sizes in the admin panel specifically to keep this from happening, but still don't know what the other 3 are for.

Now I know what the 38x38 is used for (and don't need it) and can modify that. As for the 40x40, my guess is that's for the image displayed in the admin panel under the product form. (And actually, since the cache photos aren't created until they're used, I *think* the 38x38 is also used for the admin - under the dialog which allows you to select/upload the photo).

STILL don't know what the 100x100 is for! lol. Guess I'll have to go nosing around the admin controller files.
Last edited by Karen on Sun Jun 27, 2010 9:49 am, edited 1 time in total.

Using OC version 1.4.8b
http://catandcaboodle.com/


User avatar
Active Member

Posts

Joined
Thu Jun 10, 2010 2:51 pm
Location - WA State, USA

Post by Qphoria » Sun Jun 27, 2010 5:02 am

I think the image file manager uses 100x100

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by JAY6390 » Sun Jun 27, 2010 5:17 am

Here are the files that have the 100x100 image caching

Code: Select all

TOTAL:    15 matches in 6 files  (557 other files without matches not listed)
2 matches in /admin/controller/catalog/category.php
2 matches in /admin/controller/catalog/manufacturer.php
5 matches in /admin/controller/catalog/product.php
2 matches in /admin/controller/common/filemanager.php
2 matches in /admin/controller/setting/setting.php
2 matches in /admin/controller/setting/store.php
Seems to only be the admin files

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by Karen » Sun Jun 27, 2010 9:50 am

This info is very helpful. Thanks very much to all 3 of you. Going off to make changes in my files now...

Using OC version 1.4.8b
http://catandcaboodle.com/


User avatar
Active Member

Posts

Joined
Thu Jun 10, 2010 2:51 pm
Location - WA State, USA
Who is online

Users browsing this forum: No registered users and 123 guests