News:

Support the VirtueMart project and become a member

Main Menu

[SOLVED] Category and Product Image Thumbnail Resizing

Started by markholland8, November 09, 2011, 14:08:30 PM

Previous topic - Next topic

markholland8

Hi All,

Using VM2 with Joomla 1.7

I have set the category image size and Thumbnail size from 90x90 the 250x250 but it hasn't changed anyone got any ideas why this is or do i need to do something else.

Thanks in Advance Mark

PRO

EMPTY the resized folder.

make sure dynamic thumbnails are turned on.

THEN, when each page is requested, it automatically recreates them

markholland8


chocolatepudding

Hello,

Tried that but now thumbnails don't show at all.

I'm using Joomla 1.5 and the VM that is not VM 2 LOL!

Thanks.

PRO


jaybird2024

Hi,
I am using virtuemart 2.
I have emptied the resized folder and have Dynamic thumbnail resizing enabled.
Thumbnail size increased from 90 to 220.

The category product list still has very small images.

When I right click to view the image, I can see that it is resized to the larger size but does not display that way on the site.

It seems that virtuemart is resizing the image but the html is not providing img size properties into the page.
View source-code on browser shows   

<img src="/images/stories/virtuemart/product/resized/product_220x220.jpg" alt="Magnum Beefsteak" class="browseProductImage" border="0" title="Italian Beefsteak"  />

Should look like:
<img src="/images/stories/virtuemart/product/resized/product_220x220.jpg" width="220" height="220" alt="Magnum Beefsteak" class="browseProductImage" border="0" title="Italian Beefsteak"  />


Anyone have an idea how to fix this or why it may be happening?

Thanks

PRO

jaybird, the css container is going to resize it if its not as big as the picture.

Change the css, or html container for the image

jaybird2024

BTP, thanks for the quick response.
I am no where near expert in php, etc so please pardon all the questions.

Ok so let me see if I got this right, the VM backend only changes the pic size, to have it reflect that on the page then css and html must be changed.

1 You say change the css or html container, where is that defined, what files? Are you talking about joomla template files or somewhere in the VM files?
2 what does that code look like that I am searching for in those files?
3 Do I have to hand code the exact size in the files or just tell it to autoresize?
4 And what should the fixed code look like when done?

Thanks again, sorry for all the questions.

PRO

com_virtuemart/assets/css/vmsite-ltr.css    ( for left to right browsers)


To analyze css
http://forum.virtuemart.net/index.php?topic=73348.0

BUT, i just looked and this will be what you change
com_virtuemart/views/category/tmpl/default.php

<div class="width30 floatleft center">
               <?php /** @todo make image popup */

THE width30    has css applied to it of width:30%

SO, you enlarge it, or just take out width30

ALSO, you should do a layout override, and not modify the original file.
http://forum.virtuemart.net/index.php?topic=90935.0

jaybird2024

BTP, thanks a million, much appreciated.
I will review the links you posted for me and examine the files as you stated.

Thanks again
J

mensah

TO:BanquetTables.pro

Thanks for you post, but I didn't find the :div class="width30 floatleft center">
               <?php /** @todo make image popup */
in the folder:com_virtuemart/views/category/tmpl/default.php

so what to do to resize my thumbnails, pls be noted i am using VM2.0.


tKS!

PRO

the newest version has this
<div class="additional-images">

so look in the css
http://forum.virtuemart.net/index.php?topic=73348.0

and change the width (if it has one)

if not, to resize the images, you neeed to change the default image size in the vmart cnfiguration.

THEN, make sure dynamic thumbnails are turned on.
DELETE the images that are in the /resized/ folder, and the new size will automatically be created


cvoogt

I found myself having to use CSS for this as well, but this is not a great solution, especially with large images. It adds a lot of unnecessary load time.
I find myself wishing for GD Image or ImageMagick to be integrated (again) with VirtueMart. That appears to have disappeared. It's understandable since the new VM is a total rewrite.
CSS will have to do for now, I guess, or otherwise manually uploading thumbnails that have been created on my PC. But I can't expect my customers to do that ... they should be able to simply upload a product image and forget about it.

ksoender

I have virtuemart 2 and Joomla 1.7 as well.

It seems that My system has screewed up a bit as well. My pictures are resized as thumbnails. but not as product images in the product category. e.g. I have a large picture, say 640X480. My configuration is set to 150X150, but the product page now shows the full picture at 640X480 in the product details page.

Is this an error in my CSS in the template?

Ksoender

jakobe

I am running into this issue as well, I have to do 20 different things for each page, category, product and image.
just ot "see" what it looks like....just ot test out a lyout I have to modify the entire sites css.....


its a joke...

I have never decided to abandon virtuemart before, but this is unacceptable to have to make all of the changes to the css just to get one category and set of products in place.

my customers will explode when they find out they have to learn how to resize and calculate this on their own,

I am looking into other cart options for Joomla now, I am disappointed in the developers and moderators of Virtuemart, very disappointed. It seems you are actively working against making this easier and smoother to use,

you would rather pack in a ton of features and expect everyone to edit code. You guys may know how to build shopping software, but you dont know anything about what a consumer wants or what a shop manager wants.
This platform lacks the most basic ease of use functions.

I have used VM for many years and saw the community growing, now I see frustration and aggravations and a system that has become so complex that nobody can easily manage it without consulting the forum.

My customer has requested this install because of VM affiliates and he loves the affiliate program, sadly I dont think its in his best interest to pursue this project on VM anymore.