Interactive adjustment of image quality for lossy image formats ...

ForumsFor GIMP developers (read-only) ► Interactive adjustment of image quality for lossy image formats ...

Sent: 2008-11-15 15:21:50 UTC (about 3 years ago)

From: steve@advance-software.com

Interactive adjustment of image quality for lossy image formats ...

Hi guys,

Me again.

As previously discussed, in order for the new jpeg-2000 plugin to be
useful, it is
necessary to be able to save images with user selectable compression ratios.

I've taken a look at the jpg save setup in GIMP and have noted that there
is a quality
slider, but, unless I'm missing something (which is possible - I only had a
quick look),
it is not possible to interactively inspect the compressed image as the
slider is moved.

This is inefficient because artists won't know what the compressed image is
going to look
like until they open it up again. It would be far better to be able to
adjust the image
quality in real time.

So, my question - does GIMP provide the ability to do the above in some way
or do I need
to write code to open a temporary inspection window within the save
callback ?

Follow on - this is some way off at the moment ... Jpeg-2000 supports
rectangular regions
of interest (ROI) to enable some parts of an image to be compressed at
different levels
from others, so for example, a sign with text could be compressed at high
quality so you
can read it, whilst the background could be more fuzzy, as it's not so
important to be
able to make out the detail so accurately. Is there some way we can mark
rectangular
areas that don't get saved in the image, but that are available in the save
routine for
ROI optimisation ? Layers ?

Thanks in advance for any assistance you are able to offer.

Best regards,
Steve.

--------------------------------------------------------------------
mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange

_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Sent: 2008-11-15 15:24:33 UTC (about 3 years ago)

From: Martin Nordholts

Interactive adjustment of image quality for lossy image formats ...

steve@advance-software.com wrote:
> Hi guys,
>
> Me again.
>
> As previously discussed, in order for the new jpeg-2000 plugin to be
> useful, it is
> necessary to be able to save images with user selectable compression ratios.
>
> I've taken a look at the jpg save setup in GIMP and have noted that there
> is a quality
> slider, but, unless I'm missing something (which is possible - I only had a
> quick look),
> it is not possible to interactively inspect the compressed image as the
> slider is moved.

Hi Steve

Check the 'Show preview in image window' checkbox. The way it is
implemented is rather hackish IIRC but there's a preview at least.

- Martin

_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Sent: 2008-11-15 15:31:03 UTC (about 3 years ago)

From: steve@advance-software.com

Interactive adjustment of image quality forlossy image formats ...

Hi Martin,

Thanks for your prompt response.

Hackish is fine ...

Next job, locating the source to the jpeg plugin so I can grab the basics
and merge ...

Best regards,
Steve.

Original Message:
-----------------
From: Martin Nordholts enselic@gmail.com
Date: Sat, 15 Nov 2008 15:24:33 +0100
To: steve.williams@advance-software.com,
gimp-developer@lists.xcf.berkeley.edu
Subject: Re: [Gimp-developer] Interactive adjustment of image quality
forlossy image
formats ...

steve@advance-software.com wrote:
> Hi guys,
>
> Me again.
>
> As previously discussed, in order for the new jpeg-2000 plugin to be
> useful, it is
> necessary to be able to save images with user selectable compression
ratios.
>
> I've taken a look at the jpg save setup in GIMP and have noted that there
> is a quality
> slider, but, unless I'm missing something (which is possible - I only had
a
> quick look),
> it is not possible to interactively inspect the compressed image as the
> slider is moved.

Hi Steve

Check the 'Show preview in image window' checkbox. The way it is
implemented is rather hackish IIRC but there's a preview at least.

- Martin

_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://link.mail2web.com/mail2web

_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Sent: 2008-11-15 15:43:05 UTC (about 3 years ago)

From: Martin Nordholts

Interactive adjustment of image quality forlossy image formats ...

steve@advance-software.com wrote:
> Hi Martin,
>
> Thanks for your prompt response.
>
> Hackish is fine ...
>
> Next job, locating the source to the jpeg plugin so I can grab the basics
> and merge ...
>

The code for it is in plug-ins/file-jpeg/jpeg-save.c

- Martin

_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Sent: 2008-11-15 17:56:58 UTC (about 3 years ago)

From: Liam R E Quin

Interactive adjustment of image quality for lossy image formats ...

On Sat, 2008-11-15 at 15:24 +0100, Martin Nordholts wrote:
[...]
> Check the 'Show preview in image window' checkbox. The way it is
> implemented is rather hackish IIRC but there's a preview at least.

It temporarily adds a layer to the image, to do the preview.

You also need to have enabled preview to find out what the
file size will be -- a hassle when trying to get an image
as close as possible to just under 25 MBytes for uploading to
a stock place or for making a print somewhere with a limit...
you don't necessarily want to see the preview at that point.

But it's still useful, even if a little hackish with the layers :)

Liam

--
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org

_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Welcome!


Lost password?

Not a member? Sign up!

Random tutorials | Latest tutorials

  1. Hot Wallpaper with Flames Hot Wallpaper with Flames 52
  2. Creating an abstract chaos explosion Creating an abstract chaos explosion 10
  3. Create a simple Grunge-Stamp! Create a simple Grunge-Stamp! 7
  4. Ashes to ashes, dust to dust. Dissolve text into particles Ashes to ashes, dust to dust. Dissolve text into particles 3

Latest comments

2.6.12 crashes on startup in windows xp. 2.6.11 works fine. (2 days ago in Last stable 2.6 release: 2.6.12 has arrived)

Thank you! You really helped! The tutorial went great for me! Tha... (5 days ago in [AVATAR] Become a real Na'Vi using GIMP!)

maybe you still selected a channel or so? explicitly click a layer ... (5 days ago in Create cool rifts with translucent lights!)

Poll

Is GIMP an adequate application for you to create printed graphics like flyers, advertisments etc?

View results

Latest forum activities

Your Ad Here

facts & numbers

gimpusers.com RSS feed

48 identi.ca followers
749 Twitter followers

powered by bitfire it services