php.net |  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-08-08 11:46 UTC] chris dot moore at visualunlimited dot net
Description:
------------
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");
ps_place_image($ps,$img,100,100,1.0);

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>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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: Wed Aug 21 14:01:26 2019 UTC