"Matt Sephton" <[EMAIL PROTECTED]> writes:

Hi Matt

> Is it possible to specify the order of segments when saving a JPEG
> using PEL?

No, this is not something I've never though about...

But as you can see in PelJpeg::getBytes(), the sections are simply
written out in the same order as they appear in the (private)
$sections field.

You can get the field using the getSections() method, maybe there
should be a setSections() method too? Then you could manipulate them
as you wish and insert them afterwards.

Let me know if you think this would be an advantage and I'll add such
a method.

> I am trying to write JPEGS that are compatible with my digital
> camera, but are not photos taken using it.
> Specifically, I would like to write in this order:
> APP0
> SOF0
> --END
> It is most important that there is only one DQT entry, containing
> two tables.

I know very little about how JPEG actually works... I know just enough
to parse the files and to write them out again afterwards :-)

Martin Geisler  ---  <[EMAIL PROTECTED]>  ---  http://mgeisler.net

Read, write, create Exif data in PHP with PEL:       http://pel.sf.net
Take control of your webserver with PHP Shell:  http://phpshell.sf.net

Attachment: pgphzMUsDgtHs.pgp
Description: PGP signature

This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
PEL-devel mailing list

Reply via email to