It is currently Fri Jul 26, 2024 9:25 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: G'MIC and JPEG chroma subsampling...
PostPosted: Sun Aug 18, 2013 12:05 pm  (#1) 
Offline
New Member

Joined: Aug 18, 2013
Posts: 2
Since JPEG is everywhere, it would be great to know how to specify the chroma subsampling, progressive loading and floating-point quantisation options that libjpeg takes when saving the image.

Is there a way already, or would this be something that needs adding?

Thanks!
Daniel


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: G'MIC and JPEG chroma subsampling...
PostPosted: Sun Aug 18, 2013 2:33 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
watchmaker wrote:
Since JPEG is everywhere, it would be great to know how to specify the chroma subsampling, progressive loading and floating-point quantisation options that libjpeg takes when saving the image.

Is there a way already, or would this be something that needs adding?

Thanks!
Daniel


I'm not sure why this is in GMIC discussion section. You can't export to Jpeg image directly from GMIC, it operates
in rgb color space and parses images back to GIMP. Exporting documents from GIMP has a few options for JPEGs chroma subsampling,
DTC, etc.

Image

If you need more in-depth libjpg specifications you are in the wrong place. This is something only gimp developers can answer.


Top
 Post subject: Re: G'MIC and JPEG chroma subsampling...
PostPosted: Sun Aug 18, 2013 2:39 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14730
Location: USA
K1TesseraEna wrote:
I'm not sure why this is in GMIC discussion section.


I believe this may be a script request for David to add to the G'MIC software.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: G'MIC and JPEG chroma subsampling...
PostPosted: Sun Aug 18, 2013 2:51 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Rod wrote:
K1TesseraEna wrote:
I'm not sure why this is in GMIC discussion section.


I believe this may be a script request for David to add to the G'MIC software.


Script request to export images directly from GMIC? Or gmic script to specify Jpeg options on gimp save?
I doubt either is possible.


Top
 Post subject: Re: G'MIC and JPEG chroma subsampling...
PostPosted: Sun Aug 18, 2013 2:57 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
I suppose that Daniel want to talk about the command-line interface of G'MIC instead.
There are indeed only an option to set the quality ratio, when saving a JPEG file with command -output.

I need to look more closely to the libjpeg library to see if this is easy to add more options.


Top
 Post subject: Re: G'MIC and JPEG chroma subsampling...
PostPosted: Sun Aug 18, 2013 2:59 pm  (#6) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
In general GMIC may read and save in a lot of formats, anyway none of those available options is implemented in the plugin version
It is gimp that load and save



1)
Did you look in the advanced options of the save-jpg dialogue.

2)
Gimp may also use RIOT to export
if the option(s) you want are not accessible from default "export" may be available from the RIOT plugin
RIOT http://registry.gimp.org/node/20778

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: G'MIC and JPEG chroma subsampling...
PostPosted: Sun Aug 18, 2013 7:25 pm  (#7) 
Offline
New Member

Joined: Aug 18, 2013
Posts: 2
[quote="Ronounours"]I suppose that Daniel want to talk about the command-line interface of G'MIC instead.
There are indeed only an option to set the quality ratio, when saving a JPEG file with command [i]-output[/i].

I need to look more closely to the libjpeg library to see if this is easy to add more options.[/quote]

Yes, the command line tool. Even just adding cinfo.dct_method = JDCT_FLOAT and cinfo.optimize_coding = TRUE by default may make sense generally, as typical G'MIC users have floating point hardware and adequate processing power.

[I had to remove the link to the libjpeg API documentation, due to the anti-spam measures]

Thanks,
Daniel


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group