|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: chris dot moore at visualunlimited dot net
New email:
PHP Version: OS:


 [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-2019 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 15:01:30 2019 UTC