ImageMagick 6.5.9-10=unable to open image virtual-pixel

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
sysakmin
Posts: 5
Joined: 2010-02-19T02:44:31-07:00
Authentication code: 8675308

ImageMagick 6.5.9-10=unable to open image virtual-pixel

Post by sysakmin »

When i execute the following command in RHEL 5.5, it throws the following error

[root@linuxserver team]# convert 2_crop.png -set option:distort:viewport 300x235+0+0 \ -virtual-pixel tile -filter point -distort SRT 0 \ tile_distort.jpg
convert: unable to open image ` -virtual-pixel': @ error/blob.c/OpenBlob/2484.
convert: unable to open image `tile': @ error/blob.c/OpenBlob/2484.
[root@linuxserver team]#

and

Version is ImageMagick 6.5.9-10 2010-12-24 Q16.

This is my Imagemagick configuration linux

FYI - I have compiled the imagemagick and installed

=========================================================================================================
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type: x86_64-unknown-linux-gnu
Build system type: x86_64-unknown-linux-gnu

Option Value
-------------------------------------------------------------------------------
Shared libraries --enable-shared=yes yes
Static libraries --enable-static=yes yes
Module support --with-modules=no no
GNU ld --with-gnu-ld=yes yes
Quantum depth --with-quantum-depth=16 16
High Dynamic Range Imagery
--enable-hdri=no no

Delegate Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
Dejavu fonts --with-dejavu-font-dir=default none
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FFTW --with-fftw=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=yes yes
FreeType --with-freetype=yes yes
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (8.15.2)
Ghostscript fonts --with-gs-font-dir=default /usr/share/fonts/default/Type1/
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=yes no
LQR --with-lqr=yes no
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes no
PERL --with-perl=yes /usr/bin/perl
PNG --with-png=yes yes
RSVG --with-rsvg=yes yes
TIFF --with-tiff=yes yes
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=yes no
X11 --with-x= yes
XML --with-xml=yes yes
ZLIB --with-zlib=yes yes

X11 Configuration:
X_CFLAGS =
X_PRE_LIBS = -lSM -lICE
X_LIBS =
X_EXTRA_LIBS =

Options used to compile and link:
PREFIX = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.5.9
CC = gcc -std=gnu99
CFLAGS = -g -O2 -Wall -W -pthread
CPPFLAGS = -I/usr/local/include/ImageMagick
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS =
MAGICK_LDFLAGS = -L/usr/local/lib
LIBS = -lMagickCore -ltiff -lfreetype -ljpeg -lpng -lfontconfig -lXext -lXt -lSM -lICE -lX11 -lbz2 -L/lib64 -lrsvg-2 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lxml2 -lz -lm -lpthread
CXX = g++
CXXFLAGS = -g -O2 -Wall -W -pthread
=========================================================================================================
Could you please help me on this issue.

Regards,

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

Re: ImageMagick 6.5.9-10=unable to open image virtual-pixel

Post by anthony »

sysakmin wrote:When i execute the following command in RHEL 5.5, it throws the following error

[root@linuxserver team]# convert 2_crop.png -set option:distort:viewport 300x235+0+0 \ -virtual-pixel tile -filter point -distort SRT 0 \ tile_distort.jpg
convert: unable to open image ` -virtual-pixel': @ error/blob.c/OpenBlob/2484.
convert: unable to open image `tile': @ error/blob.c/OpenBlob/2484.
[root@linuxserver team]#

You escape the space before the option as such IM is not seeing "-virtual-pixel" but " -virtual-pixel"
Note the space! That it regards as being an non-option and as such it is an image, which does not exist!
Then it sees "tile" which is also not-an-option so is again treated like an image to read.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply