Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Direct Resize Help Please
 
deansmitty
Sr. Member
 
Total Posts:  132
Joined:  2008-02-23
 

I need to use Direct Resize and am having trouble configuring it in the css.

Thank You

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiaraweb
Guru
 
Avatar
Total Posts:  721
Joined:  2008-03-21
Aviano ~ Italy
 

Why in css?

With me works so fine!

You must edit

/app/design/frontend/default/default/template/catalog/product/list.phtml

change in 2 points (for grid and for list) this part of code

($_product'small_image')->resize(135135); ?>" width="135" height="135" alt="<?php echo

with this

($_product'small_image')->directResize(135135,3); ?>"  alt="<?php echo

and here

/app/design/frontend/default/default/template/catalog/product/view/media.phtml

this part of line

$_image->getFile())->resize(6868); ?>" width="68" height="68" alt="<?php echo $this->htmlEscape($_

with this

$_image->getFile())->directResize(6868); ?>"  alt="<?php echo $this->htmlEscape($_
 
Magento Community Magento Community
Magento Community
Magento Community
 
deansmitty
Sr. Member
 
Total Posts:  132
Joined:  2008-02-23
 

Could you tell me which line of code it is located. I am having trouble finding them.

Much Appreciated!

Thank You for your time and support!

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiaraweb
Guru
 
Avatar
Total Posts:  721
Joined:  2008-03-21
Aviano ~ Italy
 

for hacks you must use the search function of your editor, put the code and search it
I’m sorry but my phtm files are alla hacked and I can’t give you the original lines

search function is normally CTR+UPP+T or CTR+T

wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
Lenny2
Sr. Member
 
Total Posts:  171
Joined:  2008-05-21
München
 

hi chiaraweb,
i got the following error message:

Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /homepages/17/d215778145/htdocs/magento/app/code/community/NetAmbition/DirectResize/Helper/Image.php on line 9

Any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
 
seudo
Guru
 
Avatar
Total Posts:  344
Joined:  2008-04-21
 
Lenny2 - 02 June 2008 08:43 AM

Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /homepages/17/d215778145/htdocs/magento/app/code/community/NetAmbition/DirectResize/Helper/Image.php on line 9

See this thread for one solution:

Uses getSingleton
or
Curl Method

Hope this helps.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jan212
Guru
 
Avatar
Total Posts:  407
Joined:  2008-01-03
 

@Frank - I would recommend you to center the directResized image with css as you can see in my shop (if you’ll get it running):
http://www.saintgeorges24.de/uhren/uhren-frauen

You’ll also have to change some lines of the js managing the zoom function in detailled product view.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top