Jump to content
Dirty Bill

PDF Image convert error

Recommended Posts

I'm receiving an error (Version 1.08 - official release) opening an order PDF:

FPDF error: Not a JPEG file: Z:\aloha.xyz.com\quickload/img//logo.jpg

I have no problem finding where to remove the extra slash before the logo.jpg, but I'm not at all clear how to solve the mixed path problem "Z:\aloha.xyz.com\quickload" combined with "/img//logo.jpg"

anyone?

Share this post


Link to post
Share on other sites

Mixed path should not cause this problem. Just remove the extra slash, and make sure the image is a jpg file. Open the image in your browser, right click and go to properties. You should see what type of image file it is.

Share this post


Link to post
Share on other sites

The file is a png that prestashop saves as a jpg (logo.jpg). It converts ok on the page, but appears to break the pdf conversion. Not sure what to do with that....

Share this post


Link to post
Share on other sites

i am having same problem, and i am not sure where to go to remove this double slash before the logo...please help

Share this post


Link to post
Share on other sites

Maybe this little trick can help you... :-)

1.
Just create 2 logo images with the same logo picture;
logo.png (with transparency, this will use in your front office shop)
logo.jpg (no transparency, this will use in other function)

2.
Upload both images with FTP to your shop in directory [your_home_root]/img/.
Just replace the 'old' logo.jpg with the new one. So, under that directory, there will be 2 logo file; logo.jpg and logo.png

3.
Under directory of your theme in [your_home_root]/themes/[your_theme_name]/ find the file named header.tpl. Open it with text editor and find the code below (maybe on line 46):




And change it into:




4.
Save & upload the file header.tpl

So, in front office, with your theme, you can use your transparency PNG logo, and for other use, include creating PDF, there will be no error if the script is calling logo.jpg

Good luck! :-)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More