VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Deepjungle on August 30, 2012, 19:56:03 PM

Title: Change size of vendor image in pdf invoice
Post by: 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 ?
Title: Re: Change size of vendor image in pdf invoice
Post by: Deepjungle on September 01, 2012, 10:21:16 AM
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.
Title: Re: Change size of vendor image in pdf invoice
Post by: rockycox1989 on April 10, 2014, 04:53:30 AM
Quote from: Deepjungle on August 30, 2012, 19:56:03 PM
Greetings,

where can i change the size of the vendor image (http://www.rasteredge.com/how-to/vb-net-imaging/resize-image/). i modified the whole pdf (http://www.rasteredge.com/how-to/vb-net-imaging/pdf-reading/) 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? :-\
Title: Re: Change size of vendor image in pdf invoice
Post by: Maxim Pishnyak on April 10, 2014, 22:48:30 PM
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.