[EMAIL PROTECTED] on  wrote...
| Based on this and hours of debugging, this is what I now have:
|
| convert -background none -page 1680x1050 bg.jpg image1.png image2.png  
| image3.png image4.png image5.png -flatten tempfile.ppm - convert  
| newimage.bmp
| 
This does not make sense. The last few arguments that is.
Though this does..
  convert -background none -page 1680x1050 bg.jpg \
       image1.png image2.png image3.png image4.png image5.png \
        -flatten ppm:- | convert - newimage.bmp

I have noted this in IM example notes for thr BMP format
Which will update in a few hours
   http://imagemagick.org/Usage/formats/#bmp


| It currently executes in 2-3 seconds which is acceptable and the resulting  
| image seems to be a valid bmp image that can be used as a windows  
| background. It would be nice to avoid using a temporary PPM file, but it  
| seems to be a format specifically made for this kind of thing and it  
| works.
|
| Wikipedia has this to say about the format: "The portable pixmap  
| file format (PPM), the portable graymap file format (PGM) and the portable  
| bitmap file format (PBM) specify rules for exchanging graphics files. They  
| provide very basic functionality and serve as a least-common-denominator  
| for converting pixmap, graymap, or bitmap files between different  
| platforms. Several applications refer to them collectively as the PNM  
| format (portable anymap)."
| 
Actually that is NOT quite true..

The package has programs to converting images to and from a very basic,
bare minimum 'image data only' format, which are known as PMB, PGM, PPM,
PNM, and for the latest HDRI handling PFM.  It then provides seperate
programs to modify image data in that format, either serially (pixel by
pixel, or line by line) or as a whole image read in all at once.

PNM was way of specifying a specific PbmPlus program could handles ANY
of the normal PBM, PGM, and PPM formats. The Package is still called
PbmPlus.

It was never designed as a image converter.

IM was designed as a image convertor, doing so as a complete, all in one
command. This includes the correct handling of non-image data.

| I'm fairly satisfied with this solution. I only have two more small  
| questions.
| 
| 6. Could the above be accomplished without piping the ouput of one convert  
| command to another convert command? It definetly seems like something that  
| should be done in one shot.
| 
You could try using   -strip   to remove any extra image meta-data.
I can't test it myself as I don'e have the propriate images to test it
on.

| 7. Since I never actually see the tempfile.ppm being written to disk, am I  
| right in assuming that everything is being done in memory and that it  
| doesn't really matter if everything is accomplished in one or two  
| commands? (Refer above question)
| 
The way you have your command, it looks like you try to read that image,
not write it!

A '-' on its own will generally output the image as the image format
being used for the source information which in your case would (as a
guess on my part) be JPEG.   If the base image has no format (it was
generated such as 'XC:none' as you use to use) the it uses MIFF: the
Magick Internal File Format, which would include all meta-data.

See my fix of the above command.  Rememebr to try using -strip
and let me know if that works.  Remember I am not a windows user.

| P.S. For anyone interested. I'm finished with the first beta version of  
| this program. It's a free program to make use of wallpaper clocks from  
| www.vladstudio.com/wallpaperclock and can be downloaded here at the  
| moment: www.sitadella.com/SitaShots/Install_Wallpaperclock.exe
| 
Wow. I like the way you fade it slightly before putting up the next
frame :-)

Ever though of animating the famous painting with the melted clock?


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
   Tunnels stretched off in all directions: up, down, side-ways, and
   yesterday and tomorrow if the Research Department had come up with
   anything since breakfast.  -- Larry Niven and Steven Barnes, "Dream Park"
 -----------------------------------------------------------------------------
     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

Reply via email to