gmic icon indicating copy to clipboard operation
gmic copied to clipboard

feature: work on selection

Open Antonio-52 opened this issue 8 months ago • 5 comments

Hi all!

I mainly use GmicQt as Digikam plugin and in many cases I'd like to apply Gmic filters to a part of the image. Is it possible to implement a selection tool to apply filters only to a specific area?

Thank you in advance!

Antonio-52 avatar Mar 05 '25 18:03 Antonio-52

Hello Antonio. This is something that already exists when using the plug-in in GIMP or Krita (or Photoshop). If you work on a selection, then the filter is applied only on the selection. Not sure how this could work with Digikam, but only @cgilles can tell.

dtschump avatar Mar 06 '25 12:03 dtschump

Hi,

Yes, a selection can be done previously on image editor and typically used by a plugin. I don't yet checked recently if this feature work as expected with Gmic-Qt.

Note: there is no layer in digiKam image editor as with Gimp. So only the selected image data will be processed.

Best

Gilles Caulier

cgilles avatar Mar 06 '25 12:03 cgilles

Hi,

working with digiKam-8.6.0-20250301T190107-Qt6-x86-64-debug.appimage I tried to select a part of the editiong image, then apply a Gmic-Qt filter, but the filter effect is applied to the whole image.

Best

Antonio Angelo

Antonio-52 avatar Mar 07 '25 18:03 Antonio-52

Hi Antonio,

This must do the job:

https://github.com/cgilles/digikam-gmic-qt/commit/2f84d59c0060964f36271dbcf13b86d33e95f6ee

Changes will be available from next digiKam 8.6.0 pre-release appimage build today.

Screenshot: https://imgur.com/a/F7huFUB

Best

Gilles Caulier

cgilles avatar Mar 08 '25 05:03 cgilles

Hi Gilles. Now GmicQT works fine with selection. Thank you!

Antonio Angelo

Inviato da Proton Mail Android

-------- Messaggio originale -------- 08/03/25 06:31, HumanDynamo ha scritto:

Hi Antonio,

This must do the job:

@.***(https://github.com/cgilles/digikam-gmic-qt/commit/2f84d59c0060964f36271dbcf13b86d33e95f6ee)

Changes will be available from digiKam 8.6.0 pre-release appimage build on today.

Screenshot: https://imgur.com/a/F7huFUB

Best

Gilles Caulier

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

[cgilles]cgilles left a comment (GreycLab/gmic#110)

Hi Antonio,

This must do the job:

@.***(https://github.com/cgilles/digikam-gmic-qt/commit/2f84d59c0060964f36271dbcf13b86d33e95f6ee)

Changes will be available from digiKam 8.6.0 pre-release appimage build on today.

Screenshot: https://imgur.com/a/F7huFUB

Best

Gilles Caulier

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

Antonio-52 avatar Mar 08 '25 16:03 Antonio-52