Post by Qphoria » Tue Mar 03, 2009 5:02 am

I see the old admin->configuration->settings "image" tab has been removed, and now image sizes are hard coded in the files.

Please put this back to the admin panel.

There can be a section for each file that is being modified:

Home Page: 120 x 120
Cart page: 75 x 75
Popular: 38 x 38
Category: 120 x 120
Manufacturer: 120 x 120
Product (popup): 400 x 400
Product (thumb): 250 x 250
Search: 120 x 120

User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Qphoria » Tue Mar 03, 2009 5:12 am

Also, would be nice to have an "auto-size" like zen-cart. (I believe it's based on imagemagick) First it "gets" the size of the pic so it can autosize different sized images while keeping the aspect ratio instead of forcing a width or height.

User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by make-oc » Wed Apr 22, 2009 6:45 am

Haaa, so it used to be where I was looking for it …
I only got started with OC and was trying to figure how it's done – assuming it somewhere in the Settings Table or in config.php – so, I'd agree with Qphoria on this – Return image sizing back to the admin panel.
If I had to put it in the config.php I'd do it like this

Code: Select all

define('PIC_HOMEPAGE', 120);
define('PIC_CARTPAGE', 75);
define('PIC_POPULAR', 38);
define('PIC_CATEGORY', 120);
define('PIC_MANUFACTURER', 120);
define('PIC_PRODUCT_POPUP)', 400);
define('PIC_PRODUCT_THUMB)', 250);
define('PIC_SEARCH', 120);
define('PIC_RATIO', 1);             // Imageratio based on 1:1, or 4:3, or 3:2 Images
define('PIC_RATIO_BASE', 'width');  // Imageratio based on width or height
define('PIC_UPLOAD_MIN_PIXEL_SIZE', 400);  // You dont want to resize a 300px img to a 400px Popup
define('PIC_UPLOAD_MUST_HAVE_RATIO', true); // To force people to use the default ration or not (true/false)
Then in the upload check image size and ratio.
This way it's easier to keep a consistent layout and yet allow people to choose their own layout using either a wider or a longer image – some products just look better in a 3:2 or 1:2 format.
And if your layout is rather flexible, then set PIC_UPLOAD_MUST_HAVE_RATIO to false and just have images resized to the PIC_RATIO_BASE width or height.

Cheers

New member

Posts

Joined
Tue Apr 07, 2009 2:17 pm
Who is online

Users browsing this forum: No registered users and 1 guest