[solved] No such file or directory

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?".
Post Reply
francoise_user
Posts: 2
Joined: 2017-01-18T05:44:44-07:00
Authentication code: 1151

[solved] No such file or directory

Post by francoise_user »

Hello, please, I am an old Ubuntu Linux user (actually in Xenial LTS), and I'm not in computing (no informatics), just a normal user. Even if I read many threads about this topic, I have absolutely not understood how to fix No such file or directory issue in command line. Images are mine for myself.

Code: Select all

fran@earendil-light:~/Desktop/all my brain 2016/test$ identify -verbose * | grep Format
  Format: DCM (Digital Imaging and Communications in Medicine image)
  Format: DCM (Digital Imaging and Communications in Medicine image)

fran@earendil-light:~/Desktop/all my brain 2016/test$ mogrify -format dcm *.jpg
mogrify: unable to open image `*.jpg': No such file or directory @ error/blob.c/OpenBlob/2712.

fran@earendil-light:~/Desktop/all my brain 2016/test$ convert -version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2016-11-29 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib
Last edited by francoise_user on 2017-01-18T08:55:33-07:00, edited 1 time in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: No such file or directory

Post by snibgo »

The reported error is "unable to open image `*.jpg': No such file or directory". This says you have no JPG files.

Your "identify -verbose *" tells you that the only images are DCM format. You have none in JPG format.

You then "mogrify -format dcm *.jpg ", which would create DCM files from any JPG files. If you had any, but you don't.
snibgo's IM pages: im.snibgo.com
francoise_user
Posts: 2
Joined: 2017-01-18T05:44:44-07:00
Authentication code: 1151

Re: No such file or directory

Post by francoise_user »

thanks, it works =)

Code: Select all

mogrify -format jpg *.dcm
Post Reply