"Novice Programmer" on wrote... | hello All, | | I am new to image magick. i am performing a very primitive taks using Magick | but still failing to do it.. | i am trying ot convert image to its 320x240 thumbnail... | | Here is the command that i enter: | | convert -thumbnail 320x240 test.jpg thumbnail.jpg | | and i get the error which says as: | convert : unable to open image test.jpg : No such file or directory | convert : missing an image filename 'thumbnail.jpg' | | if i change the command to | | convert -thumbnail 320 * 240 test.jpg thumbnail.jpg then every thing works | fine except that i have an image having width of 320 and arbitrary height... | | i want to control the height as well... Please help.. what is wrong with the | command which gives me erros.. | | i am using magick on windows xp. | What version of IM are you using? What OS and system?
The error seem to indicate that it was not able to open test.jpg and yet you say the next given command works fine when that should produce all sorts of errors. Note that '*' would have expanded to the list of files in the current directory. Make sure the filenames are correct. I have a feeling you are getting caught by non-ascii UTF characters. Like maybe it has a UTF-8 '.' or some other weirdness in it. The second command would have work then because '*' expanded to match the filename in the current directory correctly. Also it is a good idea to read the image BEFORE trying to resize it. that is give the command line options in the order you want them applied. For example convert test.jpg -thumbnail 320x240 thumbnail.jpg this avoids problems with the backward compatible legacy system. Finally read IM Examples, Basics. http://imagemagick.org/Usage/basics/ Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- When an elf uses human courtesies, you know you are in trouble. -- Rick Cook, "The Wizardry Compiled" ----------------------------------------------------------------------------- Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
