Mikolaj Machowski on wrote...
| Ashley M. Kirchner scripsit:
| >
| > I'm working on a page that displays a couple of images and refreshes
| > every 60 seconds. One large one plus five (or more) smaller ones.
| > Essentially I'm taking the large format of some files, create thumbnails
| > and display them below the large one. What I'd like to know is, those
| > thumbnails that I'm creating, do I have to save the data to disk? Since
| > they're only being displayed temporarily in the browser window and I
| > don't really care for doing the on-the-fly conversion every time, is
| > there any way I can process the images, push them out to the browser (or
| > html page) and not have to save them to disk? This is all going to be
| > done in PHP by the way.
|
| In latest Konqueror and FF2.0 works this::
|
| <html>
| <body>
| <p>
| <object type="image/jpeg" data="data:image/jpeg;base64, ... base64 data
..."></object>
| </p>
| </body>
| </html>
|
| But I don't know how to create base64 version of jpeg file with IM :)
|
Base 64 encoding is NOTHING to do with ImageMagick.
All it is, is a way to encode binary files using 64 ascii characters in
a completely reversable way and which completely ignores whitespace. It
is often used as part of MIME mail encodeing, as well as the HTML and
HTTP protocols.
It is also very closely related to the even older uuencode/uudecode
functions.
The old metamail program has options to encode/decode this format.
It has been incorperated into the perl module MIME::Base64. You can use
that module to encode your JPG file into base64 data. Remember
white-space is ignored by this format, making it easier to handle in
text editors.
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
`` I want my skin to be its yellowist! '' -- Bart Simpson
-----------------------------------------------------------------------------
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