Skip to content

Conversation

@AyedaOk
Copy link

@AyedaOk AyedaOk commented Jan 17, 2026

  • Added support for PNG raster masks (8/16-bit)
  • Added image folder chooser override for raster masks (can be set in the preferences).
  • Added relative path when using the image folder override.

The png support fixes issue #19667 and part of issue #19829.

The image folder possibly fix #19689

The relative path fixes issue #20088

@jenshannoschwalm
Copy link
Collaborator

jenshannoschwalm commented Jan 17, 2026

Aah :-) Had a quick first look right now with nothing appearing bad to me now. will review and check the next days.

Also, welcome to the party!

@jenshannoschwalm jenshannoschwalm added feature: enhancement current features to improve feature: new new features to add scope: image processing correcting pixels scope: DAM managing files, collections, archiving, metadata, etc. labels Jan 17, 2026
@TurboGit TurboGit added this to the 5.6 milestone Jan 20, 2026
Copy link
Member

@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not tested yet. Two points:

See 66d9708 for the updated _check_extension().

Also be prepared for conflicts when #20198 is merged.

Do we really want the extra complexity for enforcing the mask directory. Current behavior which is remembering the last used directory seems just fine to me.

All in all I think you should separate the work in two PR. One for supporting PNG and one for the root directory to be discussed.

TIA.


char *extension = g_strrstr(filename, ".");
char *ext_lower = extension ? g_ascii_strdown(extension, -1) : NULL;
const gboolean is_png = ext_lower && !g_strcmp0(ext_lower, ".png");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplify with : g_ascii_strcasecmp()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: enhancement current features to improve feature: new new features to add scope: DAM managing files, collections, archiving, metadata, etc. scope: image processing correcting pixels

Projects

None yet

3 participants