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: 2021-05-16 04:22 UTC
From: chris dot moore at visualunlimited dot net Assigned: cmb (profile)
Status: No Feedback Package: ps (PECL)
PHP Version: 5.2.5 OS: XP
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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
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

Pull Requests

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...
 [2021-05-03 12:37 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-05-03 12:37 UTC] cmb@php.net
> The problem is that the PSLIB is not Compile With LIBJPEG and
> LIBPNG...

Likely.  Anyhow, there are no Windows DLLs for that extension for
many years.  Is this still relevant for anyone?
 [2021-05-16 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC