Magento Forum

   
Page 2 of 3
Thumbnail, Small and Base Image Size
 
Roben
Jr. Member
 
Total Posts:  29
Joined:  2009-03-10
 

Heej,

I had the same problem,

to make it bigger, go to

app - deisgn - frontend - default - yourtheme - template - catalog - product

then list.phtml

search for:

<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(225, 225); ?>” width="225" height="225" alt="<?php echo $this->htmlEscape($this->getImageLabel($_product, 'small_image')) ?>” title="<?php echo $this->htmlEscape($this->getImageLabel($_product, 'small_image')) ?>” />

I put it on 225 where it was originalie 135px.

grtz

 
Magento Community Magento Community
Magento Community
Magento Community
 
s4_optics
Member
 
Total Posts:  56
Joined:  2008-05-14
 

Where do you change the image size of the “more views” thumbnails. I was able to change the images boxes (but not the images) in the boxes.css file.

 
Magento Community Magento Community
Magento Community
Magento Community
 
s4_optics
Member
 
Total Posts:  56
Joined:  2008-05-14
 

Where do you change the image size of the “more views” thumbnails? I was able to change the images boxes (but not the images) in the boxes.css file.

 
Magento Community Magento Community
Magento Community
Magento Community
 
mhunkler
Guru
 
Total Posts:  304
Joined:  2009-05-30
 
s4_optics - 30 April 2009 01:33 PM

Where do you change the image size of the “more views” thumbnails? I was able to change the images boxes (but not the images) in the boxes.css file.

I would also like to know this…

 
Magento Community Magento Community
Magento Community
Magento Community
 
mevdev
Jr. Member
 
Avatar
Total Posts:  7
Joined:  2008-11-26
Duluth, MN
 
sherrie - 10 April 2008 07:18 AM

You can’t autoresize them, you’ll need to use an image editor - like Photshop.

You could write a php script to resize them all. It is pretty easy with the GD library.

-mevdev

http://us.php.net/manual/en/book.image.php

http://mediumexposure.com/techblog/smart-image-resizing-while-preserving-transparency-php-and-gd-library

 
Magento Community Magento Community
Magento Community
Magento Community
 
Asia Connect Support™
Member
 
Avatar
Total Posts:  32
Joined:  2009-07-13
 
mhunkler - 17 June 2009 11:38 AM

s4_optics - 30 April 2009 01:33 PM
Where do you change the image size of the “more views” thumbnails? I was able to change the images boxes (but not the images) in the boxes.css file.

I would also like to know this...

You can change the image size in:

magento\app\design\frontend\default\<your_theme>\template\catalog\product\view\media.phtml

change the code resize(56) to any size you want and get your result:

<img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" 
alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>" />

 
Magento Community Magento Community
Magento Community
Magento Community
 
hypes057
Member
 
Total Posts:  54
Joined:  2009-07-12
 

This didnt work for me, my images still come up skewed.

 
Magento Community Magento Community
Magento Community
Magento Community
 
hartmurmur
Jr. Member
 
Total Posts:  6
Joined:  2009-05-21
 

Doesn’t work for me either. I just get a blank thumbnail with a black dot in the corner.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ChokoL@te007
Jr. Member
 
Total Posts:  7
Joined:  2009-06-28
 

Also I cannot modify the size of the base image. Where can I do it?
Why Magento have a little information? This threads should be basic information.

 
Magento Community Magento Community
Magento Community
Magento Community
 
edwardtilbury
Member
 
Total Posts:  66
Joined:  2008-08-01
Las Vegas, Nevada
 
ChokoL@te007 - 23 July 2009 07:14 AM

Also I cannot modify the size of the base image. Where can I do it?
Why Magento have a little information? This threads should be basic information.

Yeah this is strange, I shouldn’t even have to look in the forum for something so basic. Strange that they wouldn’t make it more prevalent.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Gyniolatry
Sr. Member
 
Total Posts:  132
Joined:  2009-11-26
Perth.au
 

You can’t autoresize them, you’ll need to use an image editor - like Photshop.

Couldn’t let an opportunity go by to promote my favorite program of all time....

Gimp - Gnu Image Manipulation Program

Fully featured opensource image editor
Plenty of tutorials and support.
Open source and .... Free

GIMP]http://www.gimp.org/downloads/]GIMP Downloads[/url]

To resize without distortion using Gimp-
Choose ‘ Image’ >> ‘Scale Image’ and alter either Width or Height to desired dimension ( whichever is larger )
Choose ‘Image’ >> ‘Canvas Size’ , break chain link and alter other axis to desired dimension.
Use the center button ( or x, y offset ) to center the image.

When working with large images, scale image in 3 -5 steps, after each scale choose ‘Filter’ >>’Enhance’ >>’Sharpen’

 
Magento Community Magento Community
Magento Community
Magento Community
 
Vedane
Jr. Member
 
Total Posts:  1
Joined:  2009-12-07
 

Thanks for this..This is really great...I try this and now it is perfectly working...Thanks…

Vedane
Surendettement

 
Magento Community Magento Community
Magento Community
Magento Community
 
cliffhammock
Jr. Member
 
Total Posts:  15
Joined:  2010-07-31
 

I wanted to see if there are any further image size recommendations based on the latest 1.4 version. Also, I use a tool called easy thumbnails to manipulate my images. So what I would like to do is create the various sized images and just upload them via ftp instead of using the Magento UI to add images to products. But I am not sure what I would name the images to make them work and where I would place them.

In reviewing the folder structure created when I add an image via the UI, I am getting more confused. Under this folder below I have multiple subfolders and the cache subfolder, each of which has multiple subfolders like /c/l and /p/i . 

/httpdocs/media/catalog/product/

I guess I could keep experimenting and see if there is some specific structure, but I thought I would ask here as well.

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
doughboy
Member
 
Total Posts:  55
Joined:  2010-03-29
 

The scructure is fairly simple.  For product ABC1234, the images for that product would be placed in the

media/catalog/product/a/b/abc1234.jpg
media/catalog/product/a/b/abc1234_t.jpg (etc).

The first folder in the product folder is the first character of the product number.
The subfolder under that is the second character of the product number.

So for product DEF6789, the scructure would be:

/media/catalog/product/d/e/def6789.jpg (or what ever file names you are using.  The point is they are in the /d/e/ folder.

You can use the Magento API to update your image path which you would need to do if you are manually uploading your images but using a standardized naming format for all of your products.  Scott Bolasevich has a really good API import

http://www.magentocommerce.com/magento-connect/bolasevich/extension/1894/custom-bulk-product-import-+-export-with-tier-pricing--product-custom-options--configurable-products--bundle-products--grouped-products--downloadable

or if you are importing many items I would recommend uRapidFlow Pro from http://www.unirgy.com/products/urapidflow/ (we use this).  It will either import the image files while importing stock data, or you can simply specify the path and upload the images manually (which is what we do).

I also use Scott’s import module and it works really nicely.

Tim

 
Magento Community Magento Community
Magento Community
Magento Community
 
cliffhammock
Jr. Member
 
Total Posts:  15
Joined:  2010-07-31
 

Thanks for that explanation. I did go with Scott’s import tool and it is very helpful. I was able to do some imports with my own spreadsheet but I feel more comfortable using a testing solution like Scott’s tool.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 2 of 3