convert command and convert version in Ubuntu.

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
Marconato

convert command and convert version in Ubuntu.

Post 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)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: convert command and convert version in Ubuntu.

Post by magick »

Take a look at http://www.imagemagick.org/script/advan ... .php#linux for instruction on installing ImageMagick from source under Linux.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert command and convert version in Ubuntu.

Post by anthony »

Unfortunatally the instructions is for Fedora/Centos package management.

I have no details on how to creat ubuntu DEB packages. :-(
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Marconato

Re: convert command and convert version in Ubuntu.

Post 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)
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert command and convert version in Ubuntu.

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply