Bug 2140018 - convert to a size from SVG
Summary: convert to a size from SVG
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ImageMagick
Version: 38
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Luya Tshimbalanga
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-04 07:25 UTC by fredrik kortetjärvi
Modified: 2023-09-12 14:12 UTC (History)
9 users (show)

Fixed In Version: ImageMagick-7.1.1.15-1.fc38
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-24 01:31:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description fredrik kortetjärvi 2022-11-04 07:25:31 UTC
Description of problem:
When using the convert tool from ImageMagick and want to make a PNG with a specified size
it produces the SVG size instead. 

Version-Release number of selected component (if applicable): 
ImageMagick 7.0.8 
librsvg 2.54.5

How reproducible:
every time 

Steps to Reproduce:
1. identify pic.svg -> (48x48)
2. convert -size 16x16 pic.svg test.png
3. idenfify test.png -> (48x48)

Actual results:
48x48 is the size on test 

Expected results:
16x16 should be the size 

Additional info:
Have confirmed this worked on a red hat 7 with ImageMagick 6.9.19 librsvg 2.40.20
, Arch linux with ImageMagick 7.1.0 librsvg 2.55.1, Ubuntu 22.04 with ImageMagick 6.9.11
but it didnt work on Fedora 35 with ImageMagick 6.9.12 librsvg 2.52.9

Comment 1 Sergio Basto 2022-11-05 16:48:50 UTC
(In reply to fredrik kortetjärvi from comment #0)
> Version-Release number of selected component (if applicable): 
> ImageMagick 7.0.8 
> librsvg 2.54.5


theses versions doesn't match with Fedora ones , can you clarify ? please

thank you 


> Additional info:
> Have confirmed this worked on a 
> red hat 7 with ImageMagick 6.9.19 librsvg 2.40.20
> Arch linux with ImageMagick 7.1.0 librsvg 2.55.1, 
> Ubuntu 22.04 with ImageMagick 6.9.11
> but it didnt work on Fedora 35 with ImageMagick 6.9.12 librsvg 2.52.9

Comment 2 fredrik kortetjärvi 2022-11-07 07:39:23 UTC
Yes, you have right. I did download it manually, but I have also tried the Fedora version first and the version number for these was ImageMagick - 6.9.12 and librsvg2 - 2.54.5 I did forget to write it.

Comment 3 Sergio Basto 2022-11-07 11:41:35 UTC
confuse , so seems the constant is librsvg2 ? any version of IM with librsvg version 2.52.9  give error ?

Comment 4 fredrik kortetjärvi 2022-11-14 06:44:39 UTC
Yes, it is librsvg2 that is constant, and I have tried different IM version with librsvg2 version 2.52.9.

Comment 5 Sergio Basto 2022-11-27 22:43:23 UTC
(In reply to fredrik kortetjärvi from comment #4)
> Yes, it is librsvg2 that is constant, 

and about the other question, if any version of IM with librsvg version 2.52.9  give error ? 

> and I have tried different IM version
> with librsvg2 version 2.52.9.

could you explain better what is the problem, why you use librsvg2 version 2.52.9 ? when Fedora version are librsvg 2.54.5 .

Comment 6 fredrik kortetjärvi 2022-11-28 07:05:22 UTC
I think it has been a misunderstanding because I have downloaded everything from the fedora repos. But it does not work on fedora 35 or 36, but it does work on with the same packages on other systems for example RHEL7,arch Linux and Ubuntu, but Ubuntu does not have librsvg2, so I think it is something missing in the repo. So, the problem is that when converting an SVG to the desire size, it does not do that it transform to the SVG size instead. Sorry for the unnecessary comments. I have tested all variants on all system, so I hope this clarifies a few things.

Comment 7 Samuel 2022-12-22 14:49:15 UTC
The problem still exists in Fedora 37:

> $ identify test.svg 
> test.svg SVG 48x48 48x48+0+0 8-bit sRGB 1563B 0.000u 0:00.000
> 
> $ convert -size 16x16 test.svg test.png
> 
> $ identify test.png 
> test.png PNG 48x48 48x48+0+0 8-bit sRGB 156c 1393B 0.000u 0:00.000
> 
> $ cat /etc/redhat-release 
> Fedora release 37 (Thirty Seven)
> 
> $ convert --version
> Version: ImageMagick 6.9.12-67 Q16 x86_64 17519 https://legacy.imagemagick.org
> Copyright: (C) 1999 ImageMagick Studio LLC
> License: https://imagemagick.org/script/license.php
> Features: Cipher DPC Modules OpenMP(4.5) 
> Delegates (built-in): bzlib cairo djvu fontconfig freetype gslib gvc jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png ps raqm raw rsvg tiff webp wmf x xml zlib
> 
> $ rpm -qa | grep librsvg
> librsvg2-2.54.5-1.fc37.x86_64

This is very annoying, how can I help to get this moving towards a solution?

Comment 8 Sergio Basto 2022-12-23 11:36:39 UTC
can you test if ImageMagick-6.9.12.70-1 [1] fix anything ? 

[1]
https://bodhi.fedoraproject.org/updates/FEDORA-2022-21d72b9715 or https://bodhi.fedoraproject.org/updates/FEDORA-2022-63361a0628

Comment 9 Samuel 2022-12-23 11:58:47 UTC
I upgraded to these packages:

 ImageMagick-1:6.9.12.70-1.fc37.x86_64                                  
 ImageMagick-c++-1:6.9.12.70-1.fc37.x86_64
 ImageMagick-libs-1:6.9.12.70-1.fc37.x86_64

But the problem unfortunately persists.

Comment 10 Sergio Basto 2022-12-23 13:55:11 UTC
well IMHO it should be reported upstream , is this one  https://github.com/ImageMagick/ImageMagick6/issues/193 ?

Comment 11 Samuel 2023-01-12 13:53:47 UTC
I get the feeling that this is an issue with Fedora's packaging of librsvg, since it works on RHEL and Ubuntu.

Comment 12 Sergio Basto 2023-02-24 14:59:01 UTC
 ImageMagick-7.x.x is on F38 Beta , can you check if this is fixed please 

Thank you

Comment 13 Samuel 2023-03-01 14:37:32 UTC
Would it be a big undertaking trying to install the ImageMagick-7.x.x from the F38 Beta on F37?

Comment 14 Neal Gompa 2023-03-01 15:14:08 UTC
(In reply to Samuel from comment #11)
> I get the feeling that this is an issue with Fedora's packaging of librsvg,
> since it works on RHEL and Ubuntu.

If you think this is the case, file a bug with librsvg.

(In reply to Samuel from comment #13)
> Would it be a big undertaking trying to install the ImageMagick-7.x.x from
> the F38 Beta on F37?

You are better off just upgrading to Fedora 38.

Comment 15 Ben Cotton 2023-04-25 18:09:27 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 16 Samuel 2023-05-02 08:55:46 UTC
Issue remains on Fedora 38, this bug shouldn't be closed:

> $ identify test.svg 
> test.svg SVG 200x200 200x200+0+0 8-bit sRGB 1256B 0.000u 0:00.000
> 
> $ convert -size 16x16 test.svg test.png
>
> $ identify test.png 
> test.png PNG 200x200 200x200+0+0 8-bit sRGB 10c 818B 0.000u 0:00.000
> 
> $ cat /etc/redhat-release 
> Fedora release 38 (Thirty Eight)
> 
> $ convert --version
> Version: ImageMagick 7.1.1-4 Q16-HDRI x86_64 20976 https://imagemagick.org
> Copyright: (C) 1999 ImageMagick Studio LLC
> License: https://imagemagick.org/script/license.php
> Features: Cipher DPC HDRI Modules OpenMP(4.5) 
> Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib gvc heic jbig jng jp2 jpeg jxl lcms lqr ltdl lzma openexr pangocairo png ps raqm raw rsvg tiff webp wmf x xml zip zlib
> Compiler: gcc (13.0)
> 
> $ rpm -qa | grep librsvg
> librsvg2-2.56.0-1.fc38.x86_64

Comment 17 Fedora Update System 2023-08-22 13:26:18 UTC
FEDORA-2023-27548af422 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-27548af422

Comment 18 Fedora Update System 2023-08-23 01:12:09 UTC
FEDORA-2023-27548af422 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-27548af422`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-27548af422

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 19 Fedora Update System 2023-08-24 01:31:31 UTC
FEDORA-2023-27548af422 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 20 Samuel 2023-09-12 14:12:01 UTC
Issue persists, please reopen:

> $ identify test.svg
> test.svg SVG 128x128 128x128+0+0 8-bit sRGB 1594B 0.000u 0:00.000
>
> $ convert -size 16x16 test.svg test.png
>
> $ identify test.png
> test.png PNG 128x128 128x128+0+0 8-bit sRGB 72c 1104B 0.000u 0:00.000
>
> $ rpm -q ImageMagick
> ImageMagick-7.1.1.15-1.fc38.x86_64


Note You need to log in before you can comment on or make changes to this bug.