Page 1 of 1

[solved] No such file or directory

Posted: 2017-01-18T06:04:19-07:00
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

Re: No such file or directory

Posted: 2017-01-18T06:30:28-07:00
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.

Re: No such file or directory

Posted: 2017-01-18T08:55:10-07:00
by francoise_user
thanks, it works =)

Code: Select all

mogrify -format jpg *.dcm