|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58304 Pslib cannot load image of type jpg, eps, or png
Submitted: 2008-08-08 11:46 UTC Modified: -
From: chris dot moore at visualunlimited dot net Assigned:
Status: Open Package: ps (PECL)
PHP Version: 5.2.5 OS: XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
49 - 30 = ?
Subscribe to this entry?

 [2008-08-08 11:46 UTC] chris dot moore at visualunlimited dot net
I'm trying to build a virtual printer device for a project I'm working on. I'm using a post script driver to report to port 9100. From there I'm doing many things to the document. one of these things I'm doing is actually adding an image to the document. the php install is on the client machine the os is XP pro. it seems like the standard pslibs arent built with support for images reguardless if imagemagick.dll and gd2.dll are there.. is this a bug or am I using the wrong copy of php_ps.dll ? if it is a wrong copy, can you point me to a pre compiled copy that would work? or something ?

Reproduce code:
$img = ps_open_image_file($ps,"jpg",$fonts_dir."\ad\emogirl01.jpg");

Expected result:
Generate PS with an attached Image ....

Actual result:
Fatal error: ps_open_image_file(): PSlib error: Images of type 'jpg'
not supported. in <filename>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-22 07:33 UTC] zzmanuzz at hotmail dot com
I have got exactly the same problem
I download the example image.php in pslib and it doesn't work also.
I have install last version of php.

Is there any example that works somewhere?
 [2009-01-07 08:15 UTC] zzmanuzz at hotmail dot com
The problem is that the PSLIB is not Compile With LIBJPEG and LIBPNG...

There is the same problem with linux 
I have compile pslib On linux centos with the libJpeg, and the function "ps_open_image_file" works very well.

I just don't know how to do the same for Windows and it seems difficult to find help about this...

Who have done the actual PSLIB dll for Windows?
I would enjoy to compile it with libjpeg and libPNG...
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Sep 29 21:01:24 2020 UTC