CR2 reading problem

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
yannick

CR2 reading problem

Post by yannick »

Hi,

I am wondering why the following command does not work:

convert cr2:/home/blaat/images/example.cr2 example.png

while the next command does work:

cd /home/blaat/images/
convert cr2:example.cr2 example.png

The same problem seems to appear when I use Magick++ to read a cr2 file. It only works when the cr2 files are in the same directory than the created executable. I am using the latest binary release ImageMagick-6.4.4-1-Q16-windows-dll.exe, and the mentioned command was entered making use of Cygwin.

Am I making a mistake or is this perhaps a bug?

Best regards,
Yannick
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: CR2 reading problem

Post by anthony »

The only difference betwwen these two command will be where the resulting image "example.png" will be saved. It may be the directory you were in is not writable!!!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
yannick

Re: CR2 reading problem

Post by yannick »

Unfortunately this seems not to be the problem. I have double checked if the directories were accessible, and they are. Also Magick++ returns already an error during the reading phase.
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: CR2 reading problem

Post by el_supremo »

What happens if you try:

Code: Select all

cd /home
convert cr2:blaat/images/example.cr2 example.png
Pete
yannick

Re: CR2 reading problem

Post by yannick »

The problem is solved now. Apparently, I mixed up 2 different ImageMagick versions, one Windows version and an older version on a Linux machine that doesn't support the CR2 file format. So some experiments were accidently done while I was logged on the Linux machine via ssh.

Thanks anyway!
Yannick
Post Reply