Magento Forum

directResize not working with most images
 
gdoteof
Jr. Member
 
Total Posts:  22
Joined:  2008-05-21
 

I have installed the direct Resize module and edited the list.phtml file.  some of the images are resizing correctly, while most of them aren’t.  i have reimported all my products and cleared the cache.

is there anything else i need to do?

http://www.amalgamated-store.com/magento/

 
Magento Community Magento Community
Magento Community
Magento Community
 
gdoteof
Jr. Member
 
Total Posts:  22
Joined:  2008-05-21
 

okay, i just noobed.  i didn’t remove the height and width tags from the <img> tag.  it now works for the resizing, but it broke the columns.  the middle column is fine but the two outside ones are wider than they should be and it messes the whole thing up

http://www.amalgamated-store.com/magento/stuff.  any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
 
gdoteof
Jr. Member
 
Total Posts:  22
Joined:  2008-05-21
 

apparently it just simply isn’t resizing when i have directResize(150,150,3) inplace of resize(150,150).

when i switch back to resize() it resizes the images to the distorted version, when i switch to directResize() just the raw pictures are being used

 
Magento Community Magento Community
Magento Community
Magento Community
 
gdoteof
Jr. Member
 
Total Posts:  22
Joined:  2008-05-21
 

zomg why do i suck at getting answers?!?

 
Magento Community Magento Community
Magento Community
Magento Community
 
businesswoman
Jr. Member
 
Avatar
Total Posts:  11
Joined:  2008-05-20
Dallas, TX
 

Hi ,
I saw your post and know about how long it takes to make a connection with an answer If you will go to the Community section where your initially got the “key” that is where to post the issue as I read a blog there from someone who has a suggestion for making it work.  http://www.magentocommerce.com/boards/viewthread/8443/

Hope it helps

 
Magento Community Magento Community
Magento Community
Magento Community
 
gdoteof
Jr. Member
 
Total Posts:  22
Joined:  2008-05-21
 

I made the changes recommended in that thread.  I am getting the following error:

line 18:

$image ImageCreateFromString($file_contents);

Warningimagecreatefromstring() [function.imagecreatefromstring]Data is not in a recognized format  in /home/amalgama/public_html/magento/app/code/community/NetAmbition/DirectResize/Helper/Image.php on line 18
Trace
:
#0 [internal function]: mageCoreErrorHandler(2, 'imagecreatefrom...', '/home/amalgama/...', 18, Array)
#1 /home/amalgama/public_html/magento/app/code/community/NetAmbition/DirectResize/Helper/Image.php(18): imagecreatefromstring('directResize(150, 150, 2)
#3 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Template.php(131): include('/home/amalgama/...')
#4 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Template.php(163): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#5 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Template.php(180): Mage_Core_Block_Template->renderView()
#6 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(554): Mage_Core_Block_Template->_toHtml()
#7 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(431): Mage_Core_Block_Abstract->toHtml()
#8 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(408): Mage_Core_Block_Abstract->_getChildHtml('product_list', true)
#9 /home/amalgama/public_html/magento/app/code/core/Mage/Catalog/Block/Category/View.php(80): Mage_Core_Block_Abstract->getChildHtml('product_list')
#10 /home/amalgama/public_html/magento/app/design/frontend/default/default/template/catalog/category/view.phtml(63): Mage_Catalog_Block_Category_View->getProductListHtml()
#11 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Template.php(131): include('/home/amalgama/...')
#12 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Template.php(163): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#13 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Template.php(180): Mage_Core_Block_Template->renderView()
#14 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(554): Mage_Core_Block_Template->_toHtml()
#15 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Text/List.php(37): Mage_Core_Block_Abstract->toHtml()
#16 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(554): Mage_Core_Block_Text_List->_toHtml()
#17 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(431): Mage_Core_Block_Abstract->toHtml()
#18 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(408): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#19 /home/amalgama/public_html/magento/app/design/frontend/default/default/template/page/3columns.phtml(54): Mage_Core_Block_Abstract->getChildHtml('content')
#20 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Template.php(131): include('/home/amalgama/...')
#21 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Template.php(163): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#22 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Template.php(180): Mage_Core_Block_Template->renderView()
#23 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Block/Abstract.php(554): Mage_Core_Block_Template->_toHtml()
#24 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Model/Layout.php(505): Mage_Core_Block_Abstract->toHtml()
#25 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(319): Mage_Core_Model_Layout->getOutput()
#26 /home/amalgama/public_html/magento/app/code/core/Mage/Catalog/controllers/CategoryController.php(88): Mage_Core_Controller_Varien_Action->renderLayout()
#27 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(342): Mage_Catalog_CategoryController->viewAction()
#28 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(159): Mage_Core_Controller_Varien_Action->dispatch('view')
#29 /home/amalgama/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(146): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#30 /home/amalgama/public_html/magento/app/Mage.php(427): Mage_Core_Controller_Varien_Front->dispatch()
#31 /home/amalgama/public_html/magento/index.php(40): Mage::run()
#32 {main}
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top