Code: Select all
convert -density 300 mypic.pdf -quality 90 mypic.png
Code: Select all
convert: no images defined 'mypic.png' @error/convert.c/ConvertImageCommand/3254.
ImageMagick 7.0.6-0 Q16 x86_64 2017-06-12
macOS Sierra 10.12.5
Code: Select all
convert -density 300 mypic.pdf -quality 90 mypic.png
Code: Select all
convert: no images defined 'mypic.png' @error/convert.c/ConvertImageCommand/3254.
Code: Select all
magick -version
Code: Select all
magick -version
Code: Select all
Version: ImageMagick 7.0.6-0 Q16 x86_64 2017-06-12 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib
Code: Select all
magick -version
Code: Select all
magick -density 300 mypic.pdf -quality 90 mypic.png
Code: Select all
magick -version
Code: Select all
magick -density 300 mypic.pdf -quality 90 mypic.png
Code: Select all
magick: no images for write '-write' 'mypic.png' at CLI arg 6 @ error/operation.c/CLINoImageOperator/4771.
magick: no image to apply a property "%w" @ warning/property.c/GetMagickPropertyLetter/2561.
magick: unknown image property "%w" @ warning/property.c/InterpretImageProperties/3499.
magick: no image to apply a property "%h" @ warning/property.c/GetMagickPropertyLetter/2449.
magick: unknown image property "%h" @ warning/property.c/InterpretImageProperties/3499.
magick: no image to apply a property "%m" @ warning/property.c/GetMagickPropertyLetter/2480.
magick: unknown image property "%m" @ warning/property.c/InterpretImageProperties/3499.
Sounds like it might be write permissions on the Emacs default directory. Try the command using the full path for your output image.
Code: Select all
convert: no images defined `/Users/evanaad/mypic.png' @ error/convert.c/ConvertImageCommand/3254.
Code: Select all
echo "Hello, world!" > myfile.txt
Code: Select all
magick input.jpg output.png
Code: Select all
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib
Code: Select all
gs --version
Code: Select all
gs --version
Code: Select all
9.21
Code: Select all
/bin/bash: gs: command not found
Code: Select all
(setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin/"))
(setq exec-path (append exec-path '("/usr/local/bin/")))
Code: Select all
pdf_link = "https://staging.shurpa.com/deliveries/BtrPsIxl/label.pdf"
file = Tempfile.new(['order', '.jpeg'])
p pdf_link
p file.path
im = ImageList.new(pdf_link)
puts "SUPP"
im.write(file.path.to_s)
Code: Select all
"https://staging.shurpa.com/deliveries/BtrPsIxl/label.pdf"
"/var/folders/qm/yk_w5d9545j_6wqk6100dhjm0000gq/T/order20170706-43294-
15myct1.png"
Magick::ImageMagickError: unable to open file `/var/folders/qm/yk_w5d9545j_6wqk6100dhjm0000gq/T/magick-43294MCNyzIu4Oenn': No such file or directory @ error/constitute.c/ReadImage/544from/Users/timnaughton/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rmagick-2.16.0/lib/rmagick_internal.rb:1616:in `read'
Code: Select all
"https://shippo-delivery-east.s3.amazonaws.com/b2a3e1cd070748cd80b492aa421832a3.pdf?Signature=nf6woycGiOydPI8eSnLcq3r0tEc%3D&Expires=1530816480&AWSAccessKeyId=AKIAJGLCC5MYLLWIG42A"