ImageMagick convert problem
Sergey Lentsov (8268) 63 posts |
Hello, I downloaded ImageMagick from here https://www.riscos.info/packages/arm/Graphics/imagemagick_6.9.12-0-1_arm.zip and try to convert images in different format. I tried following commands: convert $.1.img/png -format “SPR” $.1.imgspr The source “img/png” is in the PNG format and has PNG (0xb60) file type. When I specify “-format” option then “convert” output following warning convert: UnableToOpenConfigureFile `delegates.xml' @ warning/configure.c/GetConfigureOptions/681. but delegates.xml is present in the $.Apps.Graphics.!ImageMagick.config directory Problem that “convert” utility output file with same format as source. Looks like it read the input, decode it but not do the conversion. When I tried to convert PNG to sprite or to GIF and it always produce PNG output but destination is different than source, it not just copy. |
Jean-Michel BRUCK (3009) 282 posts |
Hello Sergey dir <obey$dir> |
Stuart Swales (8827) 1257 posts |
Or just use a native tool like ChangeFSI! |
Steve Pampling (1551) 7967 posts |
Does ChangeFSI handle all the quirky variants? |
Sergey Lentsov (8268) 63 posts |
@Jean-Michel BRUCK |
Stuart Swales (8827) 1257 posts |
No, but nobody’s complained to me in the last decade or so that PipeDream 4 or Fireworkz hasn’t been able to import their images (both silently use ChangeFSI to transform many alien formats to Sprite, and no filename mangling to/from *nix-y format is required). ImageMagick may be great for Pi 4 etc., but is a VFP build, so no RPCEmu. [Edit: The one Sergey refers to above is indeed a non-VFP build] |
Steve Pampling (1551) 7967 posts |
Probably needs thorough testing, but JPG to PNG conversion seems to work on RPCEmu, possibly more esoteric effects struggle or go down in flames. |
Rick Murray (539) 13440 posts |
Seems rather par for the course for the GCC stuff – massive executables. Is it including the entire library within each program, or something? |
Stuart Swales (8827) 1257 posts |
A mere 9MB? My compare executable is 15.8MB! But it’s from PackMan (6.9.12.19-1_vfp) |
Rick Murray (539) 13440 posts |
They’re all 9MB in the archive linked above. Maybe that’s the “optimised” version? ;) Just did a quick test with the cog to the upper right. Neither ChangeFSI nor ImageMagick (tried various -alpha options) preserve the mask. |
Steve Pampling (1551) 7967 posts |
C stuff, summat about shared libraries (or not) ? |
Rick Murray (539) 13440 posts |
Isn’t the point of shared libraries………..? |
Steve Fryatt (216) 2056 posts |
If something is linked to UnixLib, it will include all of the libraries – unless it’s using the new Shared Libs system. If something is linked to the Shared C Library, with either GCC or Norcroft, then it won’t include the stuff that’s in the SCL. Given that ImageMagick is a port from posix-land, it is almost certainly using UnixLib and statically linked it. |