have a port of ImageMagick-6.8.8-10 for AmiCygnix here including "animate" and "display". Seems to be fully functional. If there is enough interest, I can publish a special AmiCygnix package.
Starting AmiCygnix just to display an image would seem a bit like the proverbial sledge hammer and nut!
I apologise for not noticing you were trying to identify a JPEG file. ilbmtoppm isn't needed for that.
Can you print the shell output you get when ilbmtoppm is installed? I suspect your .jpg (ballen-5d.jpg) isn't actually a JPEG but an ILBM in disguise. Load it up in a text editor and see if you have JFIF at the beginning.
In your first post, the file comment shows which site it comes from. I found that image here:
That is not 440,440 bytes like yours but 34,424 bytes.
Edit: I just tried the identify utility from the previous port (6.1.4) with an ILBM renamed to .jpg, and I get the exact same error you did in your first post. "MissingAnImageFilename".
I was not complaining that the netpbm executables were not in the archive. I got the idea there was something wrong with the program. Of course there was something wrong with that assumption.
If you have it nearly ready, why not? I guess saving a document with AbiWord under html, it can be usefull to manipulate the images you want to insert. Maybe Gimp users see an usage too ?
As ImageMagick is a CLI set of programs, don't we need a shell under AmiCygnix to run it?
When using caption, surround the parameter with quotes like:
"caption:one two three"
Instead of caption:'one two three'
The reason it wants to use gs is because you don't have the Arial font installed. Install the MS Core Fonts, reboot, delete the fontconfig directory (the one in the ImageMagick directory) and try again.
You can copy "gs" from SYS:Utilities/Ghostscript into the program directory but it doesn't work very well.
My first attempt to convert an ilbm file failed but I eventually got it to work by copying ilbmtoppm & ppmtoilbm from the NetPBM package to ImageMagick/bin/ AND changing the current directory to ImageMagick/bin/ before entering "convert ram:test.ilbm ram:test.png". Convert isn't finding the "delegates.xml" file when it's not in the current directory.
Therefore CDing to ImageMagick/bin/ and entering:
convert ram:test.ilbm ram:test.png
works but entering:
convert ram:test.ilbm ram:test.png
from another current directory doesn't work.
The ImageMagick commands might be more useful if they also search for required files in PROGDIR: (i.e. PROGDIR:delegates.xml).
Amiga X1000 with 2GB memory & OS 4.1FE + Radeon HD 5450
delegates.xml is in-built if it isn't found, but I'll take your suggestion and make it look in PROGDIR:. ilbmtoppm and ppmtoilbm can be put in C: or anywhere in your $PATH. You don't need to change into the bin directory if you do that.
@sinirus
If you want to you can take the fonts.conf from Odyssey, and put it in the fontconfig directory in the ImageMagick directory. The default path it looks for fonts is in Fonts:_TrueType/
Drop all of the Arial .ttf files there (all of the core web fonts should be installed in my opinion), then remove the cache files in the fontconfig directory (only the one in the ImageMagick directory), and re-run it. It should work this time. You might need to reboot first.
The font parameter is normally for selecting a font family name, but I had a quick look and it looks like you can select a font file too. If you had the Verdana fonts installed you could use -font "Verdana". You'd still need to have it in Fonts:_TrueType and a new cache built.
As for caption, I get the same extra images. If you look at examples for the caption parameter, there is no source image. annotate is used for overlaying text on top of images.
Edit (Oct '14): Best to use TypeManager to install .ttf files.
Edited by MickJT on 2014/7/17 4:08:05 Edited by MickJT on 2014/7/17 4:20:09 Edited by MickJT on 2014/10/28 13:58:50
This command generated two separate images, one with just the title. Can you help me?
The answer he gets has an added -composite parameter.
This works on AmigaOS4:
convert input.png -font Fonts:_TrueType/Arial.TTF -size 460x -background transparent -fill black -pointsize 40 -gravity center "caption:This is a multiline caption, This is a multiline caption, This is a multiline caption." -gravity center -composite output.png
I've fixed up a couple of things and some mistakes. I will be uploading that soonish.
Using delegated programs with wildcard matching in root directories (e.g DH2:) with Amiga-style paths now works. For example: convert DH2:test*.ilbm DH2:test.gif
.xml files are now also looked for in PROGDIR:
mogrify now works in root directories with Amiga-style paths when using delegated programs like ppmtoilbm. For example: mogrify -resize 100x100 DH2:test.ilbm (do not do this without making a backup of the image first).
Converting an image sequence TO an .mpg now works without an external delegates.xml. I forgot to fix the internal one.
I've also written a document to go with the source package that explains all of the changes made.
I've rushed to package this up. I'm going to be busy with other things for the next few days and might not get time to properly test it before uploading on OS4Depot.
So here's a quick fixed up version that has the changes I listed above: [removed]
Edit: I've stuck it up on OS4Depot, and also fixed another problem in mogrify. You can use the -path parameter with root directories now.