News:

Support the VirtueMart project and become a member

Main Menu

Product Image Resizing blowing up my file quota

Started by kittmaster, April 22, 2016, 04:42:03 AM

Previous topic - Next topic

kittmaster

It looks like Google in the end and I'm at my wits end.

I want to permentenly turn enable dynamic thumbnails off, but it breaks my site.

I want the class "vm-product-media-container" that is being used in the category view to pull from the NON resized image folder /images/stories/product/ instead of images/stories/product/resized.....I can't for the life of me figure out how to make that happen.

I keep running into vmgeneral/filetype_jpg.png if I mess with components/com_virtuemart/sublayouts/products.php.

I can remove the media container all together, but I don't want to do that, I want to use the normal size images.

Can someone point me in the direction of how to override the sublayout to not use resized and use regular sized images?

I want to completely turn off all thumbs without breaking entire site.

See attached image

TY
Chris

Studio 42

To change all to fullsize use directly the full image
for category in sublayouts/categories.php
echo $category->images[0]->displayMediaThumb("",false);
to echo '<img src="'.$category->images[0]->file_url.'" alt="">';

for product in sublayouts/products.php
echo $product->images[0]->displayMediaThumb('class="browseProductImage"', false);
to echo '<img src="'.$product->images[0]->file_url.'" alt="">';
Note : this control nothing, so if this is not an image, you can have some render bug.
If you use some template overide or old VM, the code and files can change

kittmaster

This worked good and I'm using it in an override among others dealing with thumb usage. I was able to shut down resizing and everything has been working so far so good.

thanks to all.

Chris