Re: [Gimp-developer] JPEG comment in existing files

2001-06-03 Thread Lourens Veen

Peter wrote:
 
 I found how to change the comment in a JPEG when I save as, and how to
 change the default for the save as, but I could not find how to view
 the comment in an input file or edit the comment prior to performing a
 normal save.

I think this is built in the save routines, I don't think there is a
separate comment attached to an image. It sounds like a useful feature
to me though.
 
 I found how to change the compression level in a JPEG when I save as
 but could not find out how to view or change the compression level prior
 to a normal save. I think, from what I see of the JPEG format, the
 compression level is not stored anywhere but it could be indicated by
 displaying something like the colour range (I do not remember the JPEG
 term, it is the part that indicates the 24,000,000 colours are squashed
 down to an actual range of n colours.

There is no such thing. Indeed, JPEG uses vector quantisation, but it's
a little bit more complicated than just making a palette. The encoder
has a q factor (ranging from 0.0 to 1.0 in Gimp) which determines the
quality, but other than that 0.0 is worst and 1.0 is best, it's
undefined and may vary in meaning from encoder to encoder. I think that
if you Save As with a certain q factor, and the save the same file again
with Save, you get the same q factor again. If you want to save with a
different q factor, use Save As.
 
 I also could not find out how to change the default JPEG quality setting
 from .75 to 1 and only discovered the setting when I found a few files
 were damaged after minor adjustments.

damaged. You mean they were saved at a lower quality? Please note that
a q factor of 1 does not mean lossless compression. There is indeed a
lossless JPEG mode, which is prediction based and totally different from
the lossy DCT and vector quantisation scheme that is used in Gimp. AFAIK
Gimp cannot save lossless JPG's. If you want to save your files
losslessly then I recommend PNG, it has good compression, is an open
standard and works with web browsers.
 
 Which leads to the next thing. If I start with a JPEG that has zero
 compression then edit the file then save as a jpeg with 25% compression,
 I see the change image from editing but not after compression. Is it
 possible to view the file as saved to disk, without having to close the
 file then open the saved file?

Yes, when you save it there is checkbox preview in image window. Make
sure it's checked, and watch the image window. Note that a q factor of
0.75 does not mean 75% filesize or 75% of the quality. It is a
meaningless number.
 
 I am looking forward to replacing some more proprietary software with
 open source and Gimp is 98% of what I need for image editing.

Good! Feel free to ask.

Lourens
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



Re: [Gimp-developer] JPEG comment in existing files

2001-06-03 Thread Marc Lehmann

On Sun, Jun 03, 2001 at 03:39:39PM +0200, Lourens Veen [EMAIL PROTECTED] wrote:
 I think this is built in the save routines, I don't think there is a
 separate comment attached to an image. It sounds like a useful feature
 to me though.

actually, there is standard for that (and it's even implemented), in that the
gimp-comment parasite stores the comment.

this is not currently editable (AFAIK, unless you call save as a
comment-editor), but it will be in a future version.

-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED]  |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



Re: [Gimp-developer] JPEG comment in existing files

2001-06-03 Thread Peter

Marc Lehmann wrote:
 
 On Sun, Jun 03, 2001 at 03:39:39PM +0200, Lourens Veen [EMAIL PROTECTED] wrote:
  I think this is built in the save routines, I don't think there is a
  separate comment attached to an image. It sounds like a useful feature
  to me though.
 
 actually, there is standard for that (and it's even implemented), in that the
 gimp-comment parasite stores the comment.
 
 this is not currently editable (AFAIK, unless you call save as a
 comment-editor), but it will be in a future version.

I look forward to the future version.

Looking at JPEG images already on the web, all I see in the comment
field are a few adverts for Photoshop, yet the field is easily
accessible (at least in PHP) so could hold copyright statement and/or
the text for an img tag alt= parameter. 

There is also something called the EXIF header for population by digital
cameras and the example shown on the PHP site is:
 CameraMake: Eastman Kodak Company
 CameraModel: KODAK DC265 ZOOM DIGITAL CAMERA (V01.00)
 DateTime: 1999:06:14 01:37:36
 Height: 1024
 Width: 1536
 IsColor: 1
 FlashUsed: 0
 FocalLength:  8.0mm
 RawFocalLength: 8
 ExposureTime:  0.004 s (1/250)
 RawExposureTime: 0.004001899898
 ApertureFNumber: f/ 9.5
 RawApertureFNumber: 9.512288818
 FocusDistance: 16.66m
 RawFocusDistance: 16.65847412
 Orientation: 1
 ExifVersion: 0200

In my opinion, having been a professional photographer way back before
the invention of digital cameras (or electricity :-)), the information
is useful if I can refer to it when first editing a shot and should be
removable when merging images, so that the final image does not end up
with something misrepresenting the result.

Your responses to my questions are prompt and useful. I will direct
Windows users to look at Gimp before PaintShop Pro and a couple of other
tools.
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer