php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59027 Remote images images objects in svg are not displayed
Submitted: 2010-01-11 14:47 UTC Modified: 2010-01-27 15:15 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:0 (0.0%)
From: eladio dot galvez at joopbox dot com Assigned:
Status: Suspended Package: imagick (PECL)
PHP Version: 5_3.1RC2 OS: Linux Centos 5.4
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: eladio dot galvez at joopbox dot com
New email:
PHP Version: OS:

 

 [2010-01-11 14:47 UTC] eladio dot galvez at joopbox dot com
Description:
------------
When we try to convert an svg to jpg and this svg has references to remote files 


In standard comments that is possible use external references:

  http://www.zvon.org/xxl/svgReference/Standard1.1/struct.html


And if you try from console with convert works fine, but when try from php code using convert dont display the elements.

Software versions:
  CentOS release 5.4 (Final)
  2.6.24-19-xen #1 SMP Wed Aug 20 21:08:51 UTC 2008 x86_64 x86_64 x86_64 GNU/Linux
  ImageMagick2-6.5.5.6-1.el5.remi
  php-5.3.1-1.el5.remi
  php-pecl-imagick-2.3.0-2.el5.remi


Content in test.svg:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   version="1.1"
   width="210mm"
   height="297mm"
   id="svg2">
   <image width="600" height="302" id="map" x="0" y="0" xlink:href="http://pecl.php.net/gifs/peclsmall.gif" />
</svg>

I think that this guy has the same issue:

   http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=15074


Reproduce code:
---------------
<?
 $im = new imagick();
 $im->readImage("test.svg");
 $im->cropThumbnailImage(150,100);
 $im->writeImage("test.jpg");
?>

Expected result:
----------------
Generate an image test.jpg that displays the pecl logo.
If you use convert from console works fine:

 convert test.svg test.jpg

Actual result:
--------------
[eladio@server ~]# php -q test.php 

Segmentation fault

----
With files that hasnt remote files returns the same error, but some conversion is done, because I can see elements.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-27 15:15 UTC] mkoppanen@php.net
Hi,

I get a blank white image both with commmand line convert and imagick. Might be related to svg library being used.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 11:01:30 2024 UTC