Page 1 of 2

phoca pdf unable to get image size

Posted: 09 Feb 2023, 00:29
by jpeters
fresh installation of phoca car 4.0.5 with phoca pdf and phoca cart plugin
html view of invoice is correct including image
pdf getting error.

Re: phoca pdf unable to get image size

Posted: 09 Feb 2023, 16:23
by Jan
Hi, what do you mean with "PDF getting error"? Is not possible to open it or some error message is displayed?

If you can download the PDF, and you cannot open it, try to edit it in text editor and see the source code if there are not rendered some error messages before PDF header.

Jan

Re: phoca pdf unable to get image size

Posted: 09 Feb 2023, 23:01
by jpeters
when store logo is selected in options. as soon as i want to view the PDF a popup screen with this error.
no pdf is generated in the backend so i cannot see of any errors in the pdf.

same image in for example footer of the pdf (set in phoca pdf component) is working and pdf is generated (as long no store logo is configured)

when i remove the store logo a pdf is generated.
html invoice is working fine with and without store logo.

Re: phoca pdf unable to get image size

Posted: 14 Feb 2023, 01:30
by Jan
Hi,

can you paste the whole error message (including file and line where it occurrs)? Did you try to test it with another image?

Testing now, see no problem:
Image

Jan

Re: phoca pdf unable to get image size

Posted: 14 Feb 2023, 07:26
by jpeters
Hello jan,
I have tried several images.. al the same issue
When i use the same image in the footer its okay
Image is not the issue. Used same issue on other website and it works.

Its something specific on this install cq server..

Re: phoca pdf unable to get image size

Posted: 14 Feb 2023, 07:55
by jpeters
this is the complete error message

TCPDF ERROR: [Image] Unable to get the size of the image: https://www.domain.com/images/logo/image-filename.png


*i changed the domainname and filename
i tried several images, jpg, png, big, small, etc.etc.

Re: phoca pdf unable to get image size

Posted: 14 Feb 2023, 15:41
by Jan
Hi, can you paste the screenshot of the error (you can hide there the domain name too) but with enabled debug mode in Joomla global configuration. Is there no file and its line when rendering the error? Can you test some another image (some small to test if the TCPDF is able to work with images). Is your Phoca PDF the latest version?

Jan

Re: phoca pdf unable to get image size

Posted: 16 Feb 2023, 09:05
by jpeters
Hello Jan,

tested with other image same issue.. (only on this installation).
site is not build by me, just supporting someone who is building his side based on Joomla en phoca car.

phoca cart en phoca pdf is latest version.

jan, sent you screenshot by mail. imgur is changed. no option for BCC link code.

Re: phoca pdf unable to get image size

Posted: 18 Feb 2023, 19:43
by Jan
Hi, see email.

Re: phoca pdf unable to get image size

Posted: 18 Feb 2023, 22:40
by jpeters
Hello Jan,

I did not receive a mail..