Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageMagick not converting SVG to Bitmap #3881

Closed
philrich123 opened this issue Feb 13, 2020 · 4 comments · Fixed by #5414
Closed

ImageMagick not converting SVG to Bitmap #3881

philrich123 opened this issue Feb 13, 2020 · 4 comments · Fixed by #5414
Labels
build/meson Requires Meson build tool support build/rust Requires rust build system enhancement request to enhance existing package

Comments

@philrich123
Copy link

For new Package Requests, see the guidelines

Setup

Package Name: ImageMagick
Package Version: 7.0.8-4

NAS Model: DS413
NAS Architecture: FREESCALE QorIQ P1022
DSM version: DSM 6.2.2-24922 Update 4

Expected behavior

Possibility to convert SVG files to bitmap

Actual behavior

Not possible to convert SVG files to Bitmap one. Trying to do so generate errors.

Steps to reproduce

1. loggin with ssh client
2. have a svg file to convert : "my_drawing.svg" for example
3. try command : convert my_drawing.svg my_drawing.jpg
4. you'll get the error :

convert: UnableToOpenConfigureFile 'delegates.xml' @ warning/configure.c/GetConfigureOptions/677. convert: NotAuthorized 'MVG' @ error/constitute.c/IsCoderAuthorized/408. convert: NoImagesDefined 'dessin.jpg' @ error/convert.c/ConvertImageCommand/3258.

@DigitalBox98
Copy link
Contributor

Convert SVG format from ImageMagick requires rsvg-convert (from librsvg)
I don't think rsvg-convert is available for Synology (not cross compiled so far)

@hgy59
Copy link
Contributor

hgy59 commented Feb 16, 2020

I can confirm that librsvg will be a huge task to add. It depends on additional libraries and some of them are hard to build.

  • cross/glib
  • cross/libxml2
  • cross/libcroco (not yet available, succeded to build for x64)
  • cross/gdk-pixbuf (has other dependencies, needs meson build system)
    • cross/libjpeg-turbo (not yet available, includes asm code/depends on NASM and yasm)
    • cross/libpng
    • cross/shared-mime-info (not yet available)
  • cross/cairo (available with PR Add ntopng #3856)
  • cross/pango (available with PR Add ntopng #3856)
  • rustc (oh yes! librsvg was ported from c to rust)

hard facts:

So there is little hope, that there will be an update of imagemagick spk to support svg image conversion.

@ymartin59
Copy link
Contributor

@hgy59 So only remains Meson build support for cross-compilation to hope to get it available...

@hgy59 hgy59 added the build/meson Requires Meson build tool support label Nov 16, 2020
@hgy59 hgy59 added enhancement request to enhance existing package build/rust Requires rust build system build/meson Requires Meson build tool support and removed build/meson Requires Meson build tool support labels Dec 27, 2020
@hgy59 hgy59 mentioned this issue Jan 8, 2022
3 tasks
@hgy59
Copy link
Contributor

hgy59 commented Nov 19, 2022

@philrich123 hold on, an update is on the way with #5414 and svg is supported incl. for qoriq (only ARMv5_ARCH and OLD_PPC_ARCHS will not support svg in imagemagick)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build/meson Requires Meson build tool support build/rust Requires rust build system enhancement request to enhance existing package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants