Convert command from ImageMagick does not work, and saying convert: unable to open image :
-
- Posts: 26
- Joined: 2017-11-11T19:57:59-07:00
- Authentication code: 1152
Convert command from ImageMagick does not work, and saying convert: unable to open image :
Hi,
I’m trying to use convert command from ImageMagick like below by placing in.JPG right under httpdocs, and had an message like below. I’ve also tried to place the files several other directories in order just to test to find out what will happen and the results were the same.
[root@server-XXXXXXX-X ~]# convert in.JPG –strip out.JPG
convert: unable to open image `in.JPG': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: missing an image filename `out.JPG ' @ error/convert.c/ConvertImageCommand/3015.
I do not think that the problems come from the directory issues, and have no idea what is casing this. I would appreciate if you could give me some tips.
OS:centos-6 (x86_64)
Plesk 17.0.17
ImageMagick-6.7.2.7-6.el6.x86_64
ImageMagick-devel
php-devel
PECL imagick
I’m trying to use convert command from ImageMagick like below by placing in.JPG right under httpdocs, and had an message like below. I’ve also tried to place the files several other directories in order just to test to find out what will happen and the results were the same.
[root@server-XXXXXXX-X ~]# convert in.JPG –strip out.JPG
convert: unable to open image `in.JPG': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: missing an image filename `out.JPG ' @ error/convert.c/ConvertImageCommand/3015.
I do not think that the problems come from the directory issues, and have no idea what is casing this. I would appreciate if you could give me some tips.
OS:centos-6 (x86_64)
Plesk 17.0.17
ImageMagick-6.7.2.7-6.el6.x86_64
ImageMagick-devel
php-devel
PECL imagick
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Convert command from ImageMagick does not work, and saying convert: unable to open image :
What happens if you do "ls in.JPG" immediately before the convert?
snibgo's IM pages: im.snibgo.com
-
- Posts: 26
- Joined: 2017-11-11T19:57:59-07:00
- Authentication code: 1152
Re: Convert command from ImageMagick does not work, and saying convert: unable to open image :
snibgo
Thanks for your reply,
I tried and had results like below,
[root@server-XXXXXXX-X ~]# convert ls in.JPG -strip ls out.JPG
convert: unable to open image `ls': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: no decode delegate for this image format `ls' @ error/constitute.c/ReadImage/532.
convert: unable to open image `in.JPG': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: unable to open image `ls': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: no decode delegate for this image format `ls' @ error/constitute.c/ReadImage/532.
convert: missing an image filename `out.JPG' @ error/convert.c/ConvertImageCommand/3015.
Thanks for your reply,
I tried and had results like below,
[root@server-XXXXXXX-X ~]# convert ls in.JPG -strip ls out.JPG
convert: unable to open image `ls': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: no decode delegate for this image format `ls' @ error/constitute.c/ReadImage/532.
convert: unable to open image `in.JPG': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: unable to open image `ls': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: no decode delegate for this image format `ls' @ error/constitute.c/ReadImage/532.
convert: missing an image filename `out.JPG' @ error/convert.c/ConvertImageCommand/3015.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Convert command from ImageMagick does not work, and saying convert: unable to open image :
"ls" is a Unix command, not part of IM. "ls" will show the filename, if it exists.
I am suggesting you try the Unix command "ls in.JPG" before the IM convert command.
I am suggesting you try the Unix command "ls in.JPG" before the IM convert command.
snibgo's IM pages: im.snibgo.com
-
- Posts: 26
- Joined: 2017-11-11T19:57:59-07:00
- Authentication code: 1152
Re: Convert command from ImageMagick does not work, and saying convert: unable to open image :
snibgo,
Thanks. I tried below and had the result like below which simply indicates that there's not in.JPG there.
[root@server-XXXXXXX-X ~]# ls
id_rsa.pub parallels plesk_installer
Now, how can I change the below command line using the directory where I know there is in.JPG?
[root@server-XXXXXXX-X ~]# convert ls in.JPG -strip ls out.JPG
Thanks. I tried below and had the result like below which simply indicates that there's not in.JPG there.
[root@server-XXXXXXX-X ~]# ls
id_rsa.pub parallels plesk_installer
Now, how can I change the below command line using the directory where I know there is in.JPG?
[root@server-XXXXXXX-X ~]# convert ls in.JPG -strip ls out.JPG
-
- Posts: 26
- Joined: 2017-11-11T19:57:59-07:00
- Authentication code: 1152
Re: Convert command from ImageMagick does not work, and saying convert: unable to open image :
snibgo,
Trying to be more simple,
How should I write convert command line knowing there is in.JPG under the below directory?
[root@server-XXXXXXX-X ~]#
/httpdocs/upload/temp_image/in.JPG(and out.JPG)
Trying to be more simple,
How should I write convert command line knowing there is in.JPG under the below directory?
[root@server-XXXXXXX-X ~]#
/httpdocs/upload/temp_image/in.JPG(and out.JPG)
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Convert command from ImageMagick does not work, and saying convert: unable to open image :
try
if that does not work then put the full path to convert.
Or
Code: Select all
convert /httpdocs/upload/temp_image/in.JPG -strip /httpdocs/upload/temp_image/out.JPG
Or
Code: Select all
cd /httpdocs/upload/temp_image/
convert in.JPG -strip out.JPG
-
- Posts: 26
- Joined: 2017-11-11T19:57:59-07:00
- Authentication code: 1152
Re: Convert command from ImageMagick does not work, and saying convert: unable to open image :
fmw42,
Thanks. Great information.
I've tried like below and still have same messages saying No such file or directory. What could the problem be here?
[root@server-XXXXXXX-X ~]# convert /httpdocs/upload/temp_image/in.JPG -strip /httpdocs/upload/temp_image/out.JPG
convert: unable to open image `/httpdocs/upload/temp_image/in.JPG': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: missing an image filename `/httpdocs/upload/temp_image/out.JPG' @ error/convert.c/ConvertImageCommand/3015.
[root@server-XXXXXXX-X ~]# cd /httpdocs/upload/temp_image/ convert in.JPG -strip out.JPG
-bash: cd: /httpdocs/upload/temp_image/: No such file or directory
[root@server-XXXXXXX-X ~]# convert /httpdocs/in.JPG -strip /httpdocs/out.JPG
convert: unable to open image `/httpdocs/in.JPG': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: missing an image filename `/httpdocs/out.JPG' @ error/convert.c/ConvertImageCommand/3015.
[root@server-XXXXXXX-X ~]# cd /httpdocs/ convert in.JPG -strip out.JPG
-bash: cd: /httpdocs/: No such file or directory
Thanks. Great information.
I've tried like below and still have same messages saying No such file or directory. What could the problem be here?
[root@server-XXXXXXX-X ~]# convert /httpdocs/upload/temp_image/in.JPG -strip /httpdocs/upload/temp_image/out.JPG
convert: unable to open image `/httpdocs/upload/temp_image/in.JPG': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: missing an image filename `/httpdocs/upload/temp_image/out.JPG' @ error/convert.c/ConvertImageCommand/3015.
[root@server-XXXXXXX-X ~]# cd /httpdocs/upload/temp_image/ convert in.JPG -strip out.JPG
-bash: cd: /httpdocs/upload/temp_image/: No such file or directory
[root@server-XXXXXXX-X ~]# convert /httpdocs/in.JPG -strip /httpdocs/out.JPG
convert: unable to open image `/httpdocs/in.JPG': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: missing an image filename `/httpdocs/out.JPG' @ error/convert.c/ConvertImageCommand/3015.
[root@server-XXXXXXX-X ~]# cd /httpdocs/ convert in.JPG -strip out.JPG
-bash: cd: /httpdocs/: No such file or directory
Re: Convert command from ImageMagick does not work, and saying convert: unable to open image :
I would say this is a Plesk problem and nothing to do with Imagemagick. So I would ask the question on a Plesk forum - possibly permissions?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Convert command from ImageMagick does not work, and saying convert: unable to open image :
The answer is: there is no such file or directory. As you can't "cd /httpdocs/", how do you know that directory exists? Does it exist?PleskQuestion wrote:No such file or directory. What could the problem be here?
snibgo's IM pages: im.snibgo.com
-
- Posts: 26
- Joined: 2017-11-11T19:57:59-07:00
- Authentication code: 1152
Re: Convert command from ImageMagick does not work, and saying convert: unable to open image :
snibgo,
Thank for your reply.
So it's a directory issue instead of a permission, or...
Sorry but, I'm still confused of what I should do.
I placed in.jpg like below which,I think, means that there are files and directories exist.
/httpdocs/in.jpg(and out.jpg)
/httpdocs/upload/temp_image/in.jpg(and out.jpg)
What should I do or what convert command line should I exactly write now considering the kind of messages I have been getting?
Thank for your reply.
So it's a directory issue instead of a permission, or...
Sorry but, I'm still confused of what I should do.
I placed in.jpg like below which,I think, means that there are files and directories exist.
/httpdocs/in.jpg(and out.jpg)
/httpdocs/upload/temp_image/in.jpg(and out.jpg)
What should I do or what convert command line should I exactly write now considering the kind of messages I have been getting?
Re: Convert command from ImageMagick does not work, and saying convert: unable to open image :
You should see the in.jpg image in your browser if you go to www.your site name/upload/temp_image/in.jpg as long as those folders ar not restricted in any way.
-
- Posts: 26
- Joined: 2017-11-11T19:57:59-07:00
- Authentication code: 1152
Re: Convert command from ImageMagick does not work, and saying convert: unable to open image :
Bonzo,
Thanks for your time.
I could see the image with below.
http://xxxxx.com/upload/temp_image/in.jpg
I could not see the image with below.
http://xxxxx.com/in.jpg
Thanks for your time.
I could see the image with below.
http://xxxxx.com/upload/temp_image/in.jpg
I could not see the image with below.
http://xxxxx.com/in.jpg
Re: Convert command from ImageMagick does not work, and saying convert: unable to open image :
So the image is there and in the correct path.
It looks like you just need to get the correct path in your command line; try:
I see you have .jpg and .JPG in different places but you are on a Windows server so it should should not matter but would on a Linux server?
It looks like you just need to get the correct path in your command line; try:
Code: Select all
convert upload/temp_image/in.jpg –strip upload/temp_image/out.jpg
-
- Posts: 26
- Joined: 2017-11-11T19:57:59-07:00
- Authentication code: 1152
Re: Convert command from ImageMagick does not work, and saying convert: unable to open image :
Bonzo
Thanks.
I tried as you explained and had results like below.
[root@server-XXXXXXX-X ~]# convert upload/temp_image/in.jpg -strip upload/temp_image/out.jpg
convert: unable to open image `upload/temp_image/in.jpg': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: missing an image filename `upload/temp_image/out.jpg' @ error/convert.c/ConvertImageCommand/3015.
Now, someone suggested me to try command line below to find out the permission and found that root does not have httpdocs.
Does this suggest you the kind of covert command line I should use in order not to receive the error?
[root@server-XXXXXXX-X ~]# ls -la /
total 132
dr-xr-xr-x 24 root root 4096 Nov 13 06:37 .
dr-xr-xr-x 24 root root 4096 Nov 13 06:37 ..
-rw-r--r-- 1 root root 0 Nov 13 06:37 .autofsck
-rw-r--r-- 1 root root 0 Oct 27 14:16 .autorelabel
dr-xr-xr-x 2 root root 4096 Nov 9 20:19 bin
dr-xr-xr-x 3 root root 4096 Mar 28 2016 boot
drwx------ 2 root root 4096 Mar 28 2016 .cpt_hardlink_dir_a920e4ddc233afddc9fb53d26c392319
drwxr-xr-x 8 root root 2140 Nov 13 06:37 dev
drwxr-xr-x 98 root root 12288 Nov 13 06:37 etc
drwxr-xr-x 3 root root 4096 Oct 27 14:26 home
dr-xr-xr-x 9 root root 4096 Nov 9 20:19 lib
dr-xr-xr-x 8 root root 12288 Nov 9 20:20 lib64
drwx------ 2 root root 16384 Mar 28 2016 lost+found
drwxr-xr-x 2 root root 4096 Sep 23 2011 media
drwxr-xr-x 2 root root 4096 Sep 23 2011 mnt
drwxr-xr-x 3 root root 4096 Oct 27 14:25 opt
drwxrw---- 3 root root 4096 Oct 27 14:18 .pki
dr-xr-xr-x 92 root root 0 Nov 13 06:37 proc
-rw------- 1 root root 1024 Oct 27 14:25 .rnd
dr-xr-x--- 5 root root 4096 Nov 11 21:16 root
dr-xr-xr-x 2 root root 4096 Nov 9 20:19 sbin
drwxr-xr-x 2 root root 4096 Sep 23 2011 selinux
drwxr-xr-x 2 root root 4096 Sep 23 2011 srv
drwxr-xr-x 7 root root 0 Nov 13
drwxrwxrwt 4 root root 20480 Nov 14 22:06 tmp
drwxr-xr-x 13 root root 4096 Nov 9 20:20 usr
drwxr-xr-x 22 root root 4096 Nov 9 20:19 var
Thanks.
I tried as you explained and had results like below.
[root@server-XXXXXXX-X ~]# convert upload/temp_image/in.jpg -strip upload/temp_image/out.jpg
convert: unable to open image `upload/temp_image/in.jpg': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: missing an image filename `upload/temp_image/out.jpg' @ error/convert.c/ConvertImageCommand/3015.
Now, someone suggested me to try command line below to find out the permission and found that root does not have httpdocs.
Does this suggest you the kind of covert command line I should use in order not to receive the error?
[root@server-XXXXXXX-X ~]# ls -la /
total 132
dr-xr-xr-x 24 root root 4096 Nov 13 06:37 .
dr-xr-xr-x 24 root root 4096 Nov 13 06:37 ..
-rw-r--r-- 1 root root 0 Nov 13 06:37 .autofsck
-rw-r--r-- 1 root root 0 Oct 27 14:16 .autorelabel
dr-xr-xr-x 2 root root 4096 Nov 9 20:19 bin
dr-xr-xr-x 3 root root 4096 Mar 28 2016 boot
drwx------ 2 root root 4096 Mar 28 2016 .cpt_hardlink_dir_a920e4ddc233afddc9fb53d26c392319
drwxr-xr-x 8 root root 2140 Nov 13 06:37 dev
drwxr-xr-x 98 root root 12288 Nov 13 06:37 etc
drwxr-xr-x 3 root root 4096 Oct 27 14:26 home
dr-xr-xr-x 9 root root 4096 Nov 9 20:19 lib
dr-xr-xr-x 8 root root 12288 Nov 9 20:20 lib64
drwx------ 2 root root 16384 Mar 28 2016 lost+found
drwxr-xr-x 2 root root 4096 Sep 23 2011 media
drwxr-xr-x 2 root root 4096 Sep 23 2011 mnt
drwxr-xr-x 3 root root 4096 Oct 27 14:25 opt
drwxrw---- 3 root root 4096 Oct 27 14:18 .pki
dr-xr-xr-x 92 root root 0 Nov 13 06:37 proc
-rw------- 1 root root 1024 Oct 27 14:25 .rnd
dr-xr-x--- 5 root root 4096 Nov 11 21:16 root
dr-xr-xr-x 2 root root 4096 Nov 9 20:19 sbin
drwxr-xr-x 2 root root 4096 Sep 23 2011 selinux
drwxr-xr-x 2 root root 4096 Sep 23 2011 srv
drwxr-xr-x 7 root root 0 Nov 13
drwxrwxrwt 4 root root 20480 Nov 14 22:06 tmp
drwxr-xr-x 13 root root 4096 Nov 9 20:20 usr
drwxr-xr-x 22 root root 4096 Nov 9 20:19 var