[SOLVED]Adding images to the Invoices

More
23 May 2013 07:28 - 12 Aug 2013 14:42 #1005 by mediaslave
mediaslave created the topic: [SOLVED]Adding images to the Invoices
Im having an issue adding images to the invoice template. This is the error I get:

TCPDF ERROR: [Image] Unable to get image: /kunden/homepages/42/d195597686/htdocs/ptp/homepages/42/d195597686/htdocs/ptp/2012/images/invoice_logo.png


Any help?
Last Edit: 12 Aug 2013 14:42 by admin.

Please Log in or Create an account to join the conversation.

More
23 May 2013 12:07 #1006 by admin
admin replied the topic: Re: Adding images to the Invoices
hi,

you should use the relative path to the image, then TrackTime will convert it to the absolute one, ie

images/invoice_logo.png

Please Log in or Create an account to join the conversation.

More
23 May 2013 17:31 #1020 by mediaslave
mediaslave replied the topic: Re: Adding images to the Invoices
Thanks for the response!

I tried the relative path, but its duplicating the path.

/kunden/homepages/42/d195597686/htdocs/ptp/homepages/42/d195597686/htdocs/ptp/2012/../images/invoice_logo.png

See what I mean? Its weird.

Please Log in or Create an account to join the conversation.

More
23 May 2013 18:35 #1022 by admin
admin replied the topic: Re: Adding images to the Invoices
You should use the relative path, without any dots, something like:

images/invoice_logo.png

However, can you email your access details, so I can take a closer look?
The following user(s) said Thank You: mediaslave

Please Log in or Create an account to join the conversation.

More
23 May 2013 19:42 #1025 by mediaslave
mediaslave replied the topic: Re: Adding images to the Invoices
Thanks very much. I tried making the domain go directly to the folder too, and that didn't help much.

I'll send over a login.

Please Log in or Create an account to join the conversation.

More
23 May 2013 20:35 #1026 by admin
admin replied the topic: Re: Adding images to the Invoices
Now I remember!
Use a jpg : png images are a royal PITA, since TCPDF in some servers mess up with transparency.
I run into this issue on my server, too :)

Just convert it into jpg and you shouldn't have any problems.
Sorry for my dead-slow memory :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.247 seconds