Permission denied...?

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
indiconvert
Posts: 2
Joined: 2012-04-01T23:42:07-07:00
Authentication code: 8675308

Permission denied...?

Post by indiconvert »

Hello,

I'm new to this... When I try to convert an image under Ubuntu 11.10 using the Terminal I get e.g.

test.png: Permission denied

I get this with both mogrify and convert.

Since I am not really familiar with the command line, I don't know if this is an Ubuntu permission problem or if what I write in the Terminal is not quite right.

What I do:

- drag/drop the first image from the folder I need to be converted to the Terminal for getting the right path
- and after that I add: />mogrify -format png *.dpx

The result is always Permission denied. I also tried to deinstall, restart, reinstall ImageMagick.

Any ideas? Thanks!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Permission denied...?

Post by anthony »

It means your file permissions are not correct either for the action (trying to execute an image!) or simple reading.

Not just for the file but also the directory!

A long list EG: ls -l will show permission flags.
You change them using chmod.

See the man pages for these command eg: man chmod

You may also like to consider a beginning UNIX tutorial (there are lots of them on the net!)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
indiconvert
Posts: 2
Joined: 2012-04-01T23:42:07-07:00
Authentication code: 8675308

Re: Permission denied...?

Post by indiconvert »

Thanks for the answer!

Unfortunately for me this probably means I will have to get my .dpx files converted by someone...

For the developers: I am working under Ubuntu 11.10 that came preinstalled on the System 76 laptop that I got a couple of months ago. I did not make any significant changes to the system in terms of permission as far as I am aware of (I did only security updates and installed some basic software). It would be really helpful if ImageMagick was to work out of the box without having to deal with Linux permission problems first, having to use the terminal for image conversion is already quite adventurous...

So thanks again for the answer!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Permission denied...?

Post by anthony »

The permission failure is not with ImageMagick...
It is with your image data file.
It would not matter what software you are using the permission problem will still remain!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply