libgimp*, pdb, plug-ins: remove deprecated GIMP_PRECISION_*_GAMMA.

These were the last deprecated values in libgimp AFAICS.
This commit is contained in:
Jehan
2024-11-03 20:18:52 +01:00
parent 6ac920542e
commit 2559138931
6 changed files with 4 additions and 50 deletions

View File

@ -332,8 +332,8 @@ def export_ora(procedure, run_mode, image, file, options, metadata, config, data
else:
w, h = max(w*256/h, 1), 256
thumb_layer.scale(w, h, False)
if thumb.get_precision() != Gimp.Precision.U8_GAMMA:
thumb.convert_precision (Gimp.Precision.U8_GAMMA)
if thumb.get_precision() != Gimp.Precision.U8_NON_LINEAR:
thumb.convert_precision (Gimp.Precision.U8_NON_LINEAR)
store_layer(thumb, thumb_layer, 'Thumbnails/thumbnail.png')
thumb.delete()