All Manufacturer logos (adjusting size)

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue May 07, 2013 7:48 pm
Reply with quote
Report this post
Hello,
I have several manufacturers on my page, see http://tiendanueva.negre.es/marcas.html
the thing is I set up for the logos 125 x 125 but it seems virtuemart resizes it from a standart width and height of 520x520. Can it be changed?

That's why the logos seem blurred...because they are resized.
I hope I can adjust this! :cheer:

Thanks in advance,
Kind regards,
Yo
User avatar
Gold Boarder

GK User
Tue May 07, 2013 8:28 pm
Reply with quote
Report this post
What size of logo images are You uploading?
User avatar
Moderator

GK User
Tue May 07, 2013 9:51 pm
Reply with quote
Report this post
The logo images are all 125px width x 125px height.

Thanks in advance.
User avatar
Gold Boarder

GK User
Wed May 08, 2013 6:47 am
Reply with quote
Report this post
Go to:
Components->VirtueMart,
From left component menu select configuration, then Templates tab.

In Media Files Settings You can either change Thumbnail Width and Height (uploaded shop images are forced to rescale to this size), or disable "Dynamic Thumbnail Resizing".
User avatar
Moderator

GK User
Wed May 08, 2013 12:46 pm
Reply with quote
Report this post
Hi Cyberek,
understood, but the size we set there (configuration,virtuemart) will affect the products images too?
I would like to give a class to the manufacturer images only.
User avatar
Gold Boarder

GK User
Wed May 08, 2013 12:56 pm
Reply with quote
Report this post
If You would like to add a class to manufacturers images and operate on its css, then edit:
/templates/gk_storebox/html/com_virtuemart/manufacturer/default.php
find line 72:
Code: Select all
<a title="<?php echo $manufacturer->mf_name; ?>" href="<?php echo $manufacturerURL; ?>"><?php echo $manufacturerImage;?></a>

and change it to this:
Code: Select all
<a class="manufacturerimage" title="<?php echo $manufacturer->mf_name; ?>" href="<?php echo $manufacturerURL; ?>"><?php echo $manufacturerImage;?></a>


Then in /templates/gk_storebox/css/override.css (remember to turn it on in template settings) You can add:
Code: Select all
.manufacturer h3.catProductTitle a.manufacturerimage img { YOUR CSS CLASSES }
User avatar
Moderator

GK User
Wed May 08, 2013 3:12 pm
Reply with quote
Report this post
Hi Cyberek,
Thank you very much!

Although the image class is applied to override.css:
.manufacturer h3.catProductTitle a.manufacturerimage img {
width:125px;
max-width:125px;
height:125px;
max-height:125px;
}

the default.php is changed to:
<a class="manufacturerimage" title="<?php echo $manufacturer->mf_name; ?>" href="<?php echo $manufacturerURL; ?>"><?php echo $manufacturerImage;?></a>

and the override configuration is set to ON in template configuration, the images keep displaying in same old size, inthis case 500x500.
Could it be a question of temporary or cache files from virtuemart?
Would you recommend to delete the images and upload them again with the size I need 125x125?

Kind Regards,
User avatar
Gold Boarder

GK User
Wed May 08, 2013 3:31 pm
Reply with quote
Report this post
The images are force upscaled to 500x500px which is set in VirtueMart configurations.
For now, if You need to use "Dynamic Thumbnail Resizing" there is no other way to get images to look crisp (if setting is set on, and You upload 125x125px image, it is forced up to 500x500px and then shrinked with html back to 125x125px).

I would suggest to disable "Dynamic Thumbnail Resizing" and upload images resized before on Your desktop with use of any image editing software (so theirs size is correct from beginning).
User avatar
Moderator

GK User
Wed May 08, 2013 4:17 pm
Reply with quote
Report this post
Thank you Cyberek, I will do what you say!
I will definitely upload the new images to avoid resizing from virtuemart and the resizing option is set to no, thanks!

Kind regards,
Yo
User avatar
Gold Boarder


cron