Page 1 of 1

convert command and convert version in Ubuntu.

Posted: 2009-06-23T08:56:11-07:00
by Marconato
Hi all,

I have two issues.
First one is about the convert version of imageMagic that i have installed in ubuntu and that is different from the version of the installation machine of the application. The version i have in ubuntu is this:
convert -version
Version: ImageMagick 6.3.7 06/04/09 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC

while latest version is 6.5.3-10 as reported on the site.

How do i upgrade to the latest version in ubuntu? apt-get upgrade doesn't do anything
So much for the first issue.

Seeing that i use the imageOver option of convert, because of the version problem a command doesn't work that in windows, having the version 6.4.2 of convert the imageOver option works correctly. What can i do? is there an older command that does the same as imageOver?


Hi
Thanks in advanced

Diego (Venice)

Re: convert command and convert version in Ubuntu.

Posted: 2009-06-23T08:59:24-07:00
by magick
Take a look at http://www.imagemagick.org/script/advan ... .php#linux for instruction on installing ImageMagick from source under Linux.

Re: convert command and convert version in Ubuntu.

Posted: 2009-06-23T20:08:09-07:00
by anthony
Unfortunatally the instructions is for Fedora/Centos package management.

I have no details on how to creat ubuntu DEB packages. :-(

Re: convert command and convert version in Ubuntu.

Posted: 2009-06-24T02:58:31-07:00
by Marconato
Hi,

I think that is also a problem of using single quotes viroglette and, in Ubuntu I can not run this command:

convert -size 1024x768 xc:skyblue -draw 'image Over 0,0 1024,768 "/home/marilyn/example/sfondo.jpg" ' -font Arial -fill #ffff00 -pointsize 40 -draw text 240,79 'test' -font Arial -fill #ff0000 -pointsize 26 -draw text 252,161 'test' -quality 100 /home/marilyn/example/result.jpg
convert: no encode delegate for this image format `-fill'.


This command takes as input a 1024x768 image, then generates another image output with the written text.
Where:
input: /home/marilyn/example/sfondo.jpg
output: /home/marilyn/example/result.jpg

But alert this error: convert: no encode delegate for this image format `-fill'.

Help me! Any idea....

Hi
Thanks in advanced.

Diego (Venice)

Re: convert command and convert version in Ubuntu.

Posted: 2009-06-24T23:02:30-07:00
by anthony

Code: Select all

convert -size 1024x768 xc:skyblue -draw 'image Over 0,0 1024,768 "/home/marilyn/example/sfondo.jpg" ' -font Arial -fill #ffff00 -pointsize 40 -draw text 240,79 'test' -font Arial -fill #ff0000 -pointsize 26 -draw text 252,161 'test' -quality 100 /home/marilyn/example/result.jpg
Better alternative that should do the same thing...
convert /home/marilyn/example/sfondo.jpg \
-resize 1024x768\! -background skyblue -flatten \
-font Arial -fill '#ffff00' -pointsize 40 -annotate 240,79 'test' \
-font Arial -fill '#ff0000' -pointsize 26 -annotate 252,161 'test' \
-quality 100 /home/marilyn/example/result.jpg

The error is probably due to the "#" charcter which is typically a comment start.