h a l f b a k e r y
Normal isn't your first language, is it?
add, search, annotate, link, view, overview, recent, by name, random
news, help, about, links, report a problem
or get an account
From what I understand, a JPG file stores each 8x8 pixel block of picture data intependently. It would be nice to have a program which could perform certain manipulations on a JPG file and write out each 8x8-pixel block exactly as it was in the original file (avoiding file-size-growth which would
result from rewriting the JPG with too high a quality setting and quality loss which would result from using too low a quality setting).
Functions I'd like to see supported: cropping off multiples of 8 pixels from any side, and rotation (I think the data munging required for rotation could be done losslessly). Additionally, for an image editor, I'd like the editor to keep for each unedited 8x8 pixel part of the picture the information required to rewrite that part of the picture exactly the same as it was in the original.
Does anyone know of any programs that do that?
Rotates, mirrors, crops without loss. I haven't actually used this product, but the description seems close to what you describe. [jutta, Dec 20 2000]
The Independent JPEG Group
Their jpegtran program (included in jpegsrc.v6b.tar.gz) performs various lossless transformations of JPEG files by working directly on the compressed data. This is part of the standard JPEG package that includes libjpeg, cjpeg and djpeg. [Ed Avis, Oct 11 2002]
Please log in.
If you're not logged in,
you can see what this page
looks like, but you will
not be able to add anything.
||What bad experiences have you had with JPEG? It's not the whizziest format around, but within its domain (lossy compression of photographic images), it does a pretty good job.
||A refinement I'd like to see with a jpeg editor would be the ability to change the amount of loss in different parts of an image. For instance if you've got a picture of a car, you could draw round the car and have that bit compressed without too much loss while the background is highly compressed.
Ah, just checked out jutta's link and lo and behold the feature regional compression.
||Gordon, Jutta: The JPEG wizard utility does precisely what you (and I) were looking for. It allows you to define up to 15 regions on a JPEG and adjust the sliders separately for each region. Additionally, it allows certain manipulations to be done to JPEGs losslessly (resizing, merging of JPG's, color adjustment, etc.) Way cool. And the best part of all is that the basic version that provides everything except automated batch processing is FREE.
||What I think would be preferrable, is for meta data to be stored inside JPEG files which define transformations to be performed on the image as it's displayed. This method would always preserve all of the original data while a variation could be stored as a few simple parameters such as brightness, contrast, gamma and so on.
A viewer could also support multiple transformation on each image, for example, a photo of one's ancestors could viewed as:
* The original
* Optimzed for general appearance
* Optimzed for recognition of the people
* With names of the people superimposed
* Several cropped selections
* Several thumbnail sizes
Storing all of the transformations listed above as separate files would be a needless waste of space when the parameters required for them would probably be less than 1 KB.
||I had a similar idea some time ago (so long in fact that I can't even find the forum posting).
||As people have said, lossless cropping and mirroring already exists.
However, I've never seen any program which will allow the editing of a jpeg with minimal corruption. That's actually pretty desirable.
||My proposal would be a program which would accept a jpeg and generate a lossless-format image from it (png, tiff, whatever). That can then be edited in any decent graphics package without additional data-loss. When you've finished, you'd give the new file back, and it would look for 8x8 blocks which hadn't changed; these could be copied over from the original file.
This way you can use your favourite graphic package; there's no need to re-implement every conceivable editing tool.
|| or 16x16 etc - there are various jpeg sub-types