[Gimp-developer] ANNOUNCE: GIMP 2.9.4 released

2016-07-13 Thread Michael Natterer
Hi,

We just released the second development snapshot in the
GIMP 2.9.x series leading to GIMP 2.10.

This is an unstable development preview and might crash
or do whatever. If you try it for work, please save your
images more often.

For a complete list of changes since 2.9.2 please see the
"Changes" section below. We will also post more detailed
news about GIMP 2.9 on www.gimp.org soon, stay tuned.

Happy GIMPing,
--Mitch


Download


  GIMP 2.9.4 is available from:

  http://download.gimp.org/pub/gimp/v2.9/

  and from the mirrors listed at:

  http://www.gimp.org/downloads/#mirrors

  Please use the torrent, it distributes
  the download bandwidth across all mirrors:

  http://download.gimp.org/pub/gimp/v2.9/gimp-2.9.4.tar.bz2.torrent

  The checksum of the tarball is:

  6b3d425a7949110eeb532badedf721f3  gimp-2.9.4.tar.bz2


Overview of Changes from GIMP 2.9.2 to GIMP 2.9.4
=

Core:

  Color Management:
  - add new GimpColorTransform object to create abstraction from
    LittleCMS
  - now color-managed:
- layer/image/color palette/gradient/pattern previews
- Color Picker tool
- color buttons of GimpColorHistory
- GimpFgBgEditor, as used e.g. in the toolbox
- color selectors
- DND widget
- painting tools
- copying layers/paste buffer between images
- Colors applied to images
- GimpColorPanel and its color dialog (color widgets in dialogs)
- color areas created from menu actions
  - color management for grayscale images, including setting preferred
ICC profile
  - add fast switching between color managed display and soft-proofing
  - add a per-image "is color managed" switch and show the image's
"is color managed" state in the window title string
  - add basic support for creating images with color profiles
  - add "Optimize" options for display and soft-proofing to optionally
speed-up rendering at the cost of color fidelity
  - add Image -> Color Management -> Save Color Profile to File...
  - improve the naming of generated ICC profiles
  - add a shortcut to the profile chooser dialog on OS X too
  - don't let display color management settings affect file import
  - enable color management when a profile is assigned to the image
  - enable color management when the image is converted from/to 
    grayscale
  - pass the right color profile around in gimp_selection_float()
  - hardcode the CMYK selector's conversion parameters, as well as NTSC
parameters in babl/GEGL/GIMP
  - have all previews track the monitor they are on

  Core:
  - add "Select -> Flood" select action
  - add "Select -> Remove Holes" action
  - add "Border style" combo to the "Select -> Border..." dialog
  - do not request xcf compat mode when compat_toggle not sensitive
  - initialize fontconfig in the background to be able to show a 
    pulsing progress bar when rebuilding the list of fonts (typically,
    the first time GIMP runs)
  - fix the Behind blending mode
  - make Burn mode output match Gimp 2.8 (partial revert of bug 744265)
  - improve file magic matching
  - add a custom guide concept
  - improve updating the statusbar messages and icons


GUI:

  Menus:
  - move the image-duplicate action next to image-new
  - add Image -> Color Management -> Color Management Enabled
  - change "Select _Custom Color..." to "_Custom Color..."
  - change "Export" to "Export..." in the File menu

  Dialogs:
  - include recently used colors in the Dockable Colors dialog
  - add RGB-based Luminance channel to the Histogram dialog
  - fix remembering the order of dockable dialogs

  Preferences:
  - reorder the prefs categories tree and rename some pages
  - move "Snap Distance" to the prefs dialog's "Snapping" page
  - add configuration for undo preview size
  - clean-up Preferences -> Color Management
  - add "Shortcut [some modifier] + Mousewheel" for changing pen size

  Themes:
  - rename theme "Default" into "System"
  - add new GUI themes: Lighter, Light, Gray, Dark, Darker

  Icons:
  - add icon theme selection and make the icon theme path configurable 
    in prefs
  - preserve 2.8 pixel-perfect icon theme under the name "Legacy"
  - add new symbolic icon theme for GIMP
  - add a scalable icon theme and a configure option --enable-vector-
    icons

  Widgets:
  - add new GimpBufferSourceBox widget and use it in GimpOperationTool

  View/Display:
  - fix various bugs related to rotated canvas
  - make GIMP not ignore 'Maximized' hints on startup in Windows
  - enable a pulsing progress bar in the splash
  - make new images jump around much less
  - fix image position when entering/leaving fullscreen mode
  - make layer boundary re-drawn correctly on scrolling
  - make images not appear completely black when images dockable is 
    visible
  - have all previews track the monitor they are on


Tools:

  Fuzzy Select:
  - add "Diagonal neighbors" option

  Foreground Select:
  - fix ghost brush outline

  Bucket Fill:
  

[Gimp-developer] Converting Plug-ins

2016-07-13 Thread Gregg Hauser

I'm investigating converting existing plug-ins from 2.8 to use GEGL.

It appears that one would implement the calculations in GEGL, leave the 
interface and parameter input code pretty much as is, and then pass the 
parameters to the GEGL code from GIMP plug-in code (making two plug-ins, 
actually). Am I missing something?


Handling previews effectively seems like a task better left to GEGL or a 
generalized GIMP callback than being done in each plug-in.


Algorithm question, using despeckle.c as a starting point:

The "median" algorithm uses luminance of the pixels around the point of 
interest, creates a histogram of 256 levels of luminance, throws those 
below and above a user specified threshold out, finds the median level 
of luminance, and then chooses randomly from the pixels that have that 
level of luminance. This would seem to choose a random color with an 
appropriate luminance from the region. Seems to me this makes the 
algorithm useful for gray scale images that are not black and white. Only


The literature is full of other despeckle algorithms. The code itself 
mentions 4, including "adaptive" but appears to implement none of them. 
Handling the following all seem worthy at some point 1) black/white 
images, 2) maintaining detail and contrast while smoothing larger areas 
of more closely matching pixels, 3) separating luminance or value from 
color.


Questions:

Is renaming for example despeckle to despleckle-median easy to do in the 
future or is it somehow easier during the initial conversion process? My 
own preference would be to use a new more specific name in GEGL and keep 
the old despeckle name for now in GIMP, though adding a method parameter 
could also work for the GEGL code.


If I do take on a conversion, is it acceptable if I include comments 
explaining the algorithm, or will they just be deleted?


If I include comments about when the algorithm seems useful, will those 
just be deleted?


___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] ANNOUNCE: GIMP 2.9.4 released

2016-07-13 Thread C R
Thanks to everyone for making this happen! I'm certainly looking forward to
trying out the new toys, fixes and revisions.

Cheers, and great work!
-C

On Wed, Jul 13, 2016 at 2:12 PM, Michael Natterer  wrote:

> Hi,
>
> We just released the second development snapshot in the
> GIMP 2.9.x series leading to GIMP 2.10.
>
> This is an unstable development preview and might crash
> or do whatever. If you try it for work, please save your
> images more often.
>
> For a complete list of changes since 2.9.2 please see the
> "Changes" section below. We will also post more detailed
> news about GIMP 2.9 on www.gimp.org soon, stay tuned.
>
> Happy GIMPing,
> --Mitch
>
>
> Download
> 
>
>   GIMP 2.9.4 is available from:
>
>   http://download.gimp.org/pub/gimp/v2.9/
>
>   and from the mirrors listed at:
>
>   http://www.gimp.org/downloads/#mirrors
>
>   Please use the torrent, it distributes
>   the download bandwidth across all mirrors:
>
>   http://download.gimp.org/pub/gimp/v2.9/gimp-2.9.4.tar.bz2.torrent
>
>   The checksum of the tarball is:
>
>   6b3d425a7949110eeb532badedf721f3  gimp-2.9.4.tar.bz2
>
>
> Overview of Changes from GIMP 2.9.2 to GIMP 2.9.4
> =
>
> Core:
>
>   Color Management:
>   - add new GimpColorTransform object to create abstraction from
> LittleCMS
>   - now color-managed:
> - layer/image/color palette/gradient/pattern previews
> - Color Picker tool
> - color buttons of GimpColorHistory
> - GimpFgBgEditor, as used e.g. in the toolbox
> - color selectors
> - DND widget
> - painting tools
> - copying layers/paste buffer between images
> - Colors applied to images
> - GimpColorPanel and its color dialog (color widgets in dialogs)
> - color areas created from menu actions
>   - color management for grayscale images, including setting preferred
> ICC profile
>   - add fast switching between color managed display and soft-proofing
>   - add a per-image "is color managed" switch and show the image's
> "is color managed" state in the window title string
>   - add basic support for creating images with color profiles
>   - add "Optimize" options for display and soft-proofing to optionally
> speed-up rendering at the cost of color fidelity
>   - add Image -> Color Management -> Save Color Profile to File...
>   - improve the naming of generated ICC profiles
>   - add a shortcut to the profile chooser dialog on OS X too
>   - don't let display color management settings affect file import
>   - enable color management when a profile is assigned to the image
>   - enable color management when the image is converted from/to
> grayscale
>   - pass the right color profile around in gimp_selection_float()
>   - hardcode the CMYK selector's conversion parameters, as well as NTSC
> parameters in babl/GEGL/GIMP
>   - have all previews track the monitor they are on
>
>   Core:
>   - add "Select -> Flood" select action
>   - add "Select -> Remove Holes" action
>   - add "Border style" combo to the "Select -> Border..." dialog
>   - do not request xcf compat mode when compat_toggle not sensitive
>   - initialize fontconfig in the background to be able to show a
> pulsing progress bar when rebuilding the list of fonts (typically,
> the first time GIMP runs)
>   - fix the Behind blending mode
>   - make Burn mode output match Gimp 2.8 (partial revert of bug 744265)
>   - improve file magic matching
>   - add a custom guide concept
>   - improve updating the statusbar messages and icons
>
>
> GUI:
>
>   Menus:
>   - move the image-duplicate action next to image-new
>   - add Image -> Color Management -> Color Management Enabled
>   - change "Select _Custom Color..." to "_Custom Color..."
>   - change "Export" to "Export..." in the File menu
>
>   Dialogs:
>   - include recently used colors in the Dockable Colors dialog
>   - add RGB-based Luminance channel to the Histogram dialog
>   - fix remembering the order of dockable dialogs
>
>   Preferences:
>   - reorder the prefs categories tree and rename some pages
>   - move "Snap Distance" to the prefs dialog's "Snapping" page
>   - add configuration for undo preview size
>   - clean-up Preferences -> Color Management
>   - add "Shortcut [some modifier] + Mousewheel" for changing pen size
>
>   Themes:
>   - rename theme "Default" into "System"
>   - add new GUI themes: Lighter, Light, Gray, Dark, Darker
>
>   Icons:
>   - add icon theme selection and make the icon theme path configurable
> in prefs
>   - preserve 2.8 pixel-perfect icon theme under the name "Legacy"
>   - add new symbolic icon theme for GIMP
>   - add a scalable icon theme and a configure option --enable-vector-
> icons
>
>   Widgets:
>   - add new GimpBufferSourceBox widget and use it in GimpOperationTool
>
>   View/Display:
>   - fix various bugs related to rotated canvas
>   - make GIMP not ignore 'Maximized' hints on startup in Windows
>   - enable a pulsing progre