News:

Looking for documentation? Take a look on our wiki

Main Menu

Change size of vendor image in pdf invoice

Started by Deepjungle, August 30, 2012, 19:56:03 PM

Previous topic - Next topic

Deepjungle

Greetings,

where can i change the size of the vendor image. i modified the whole pdf output for my needs but i can't find the image definiation. I tried it with using displayMediaFull instead of displayMediaThumb but it won't work.

Any other suggestions ?

Deepjungle

Found a solution. I changed the line37  in components\com_virtuemart\views\invoice\tmpl\invoice.php

from

                <?php echo $this->vendor->images[0]->displayMediaThumb(''false); ?>


to

                <?php echo $this->vendor->images[0]->displayMediaFull('style="width: 800px;"'false); ?>


If you have a low resolution logo you can scale your logo up.

rockycox1989

Quote from: Deepjungle on August 30, 2012, 19:56:03 PM
Greetings,

where can i change the size of the vendor image. i modified the whole pdf output for my needs but i can't find the image definiation. I tried it with using displayMediaFull instead of displayMediaThumb but it won't work.

Any other suggestions ?

First, thank you very much for your solution, but after I change the image size as the way you said, the resolution is largely reduced, and it is a little blur. have you met this situation? :-\

Maxim Pishnyak

http://forum.virtuemart.net/index.php?topic=79799
Dimensions of the original vendor image should be equal to image dimensions in your VM config.
Somewhere could be configured quality of generated thumb images.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart