Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Hey all, I am running into an issue in using a Ruby library called Scruffy, which in part uses RMagick, which uses ImageMagick. I am running into an error that looks something like this:
/usr/local/lib/ruby/gems/1.8/gems/scruffy-0.2.5/lib/scruffy/rasterizers/rmagick_rasterizer.rb:15:in `from_blob': unable to open file `/tmp/magick-XXaki1QC': No such file or directory (Magick::ImageMagickError)
from /usr/local/lib/ruby/gems/1.8/gems/scruffy-0.2.5/lib/scruffy/rasterizers/rmagick_rasterizer.rb:15:in `rasterize
/tmp is configured correctly, and I even tried changing MAGICK_TMPDIR, which results in the same error, but instead of /tmp, the directory I choose.
I suggest that you upgrade to the latest version of ImageMagick and then see if both problems are resolved. If upgrading doesn't fix the tmp file problem, report it to the Scruffy developers. If upgrading doesn't fix the convert problem, then post a link to the input .svg file here so that somebody else can try to reproduce it.
When I try to convert an svg to jpeg or png, here is what I get
convert circle1.svg out.png
ERROR: meta.c (179): wmf_header_read: this isn't a wmf file
convert: Delegate failed `"wmf2eps" -o "%o" "%i"' @ delegate.c/InvokeDelegate/1015.
convert: unable to open image `/tmp/magick-XXJqgQlR': No such file or directory @ blob.c/OpenBlob/2432.
convert: unable to open file `/tmp/magick-XXJqgQlR': No such file or directory @ constitute.c/ReadImage/565.
convert: missing an image filename `out.png' @ convert.c/ConvertImageCommand/2775.
Install rsvg, rsvg-devel, libxml2 and libxml2-devel RPMS first then rerun the ImageMagick configure script and verify that RSVG is validated (check the last 30-40 lines of output from the configure script). Once RSVG is validated and ImageMagick reinstalled you should be able to view / convert SVG.