Re: [Gimp-user] Script-Fu: remove Exif, thumbnail, color profile when saving PNG



After Open the Image, Get width and height.
Copy the image.
Create a new image using the values.
Add a new layer from the copy into the new image.
Export to the file.

OR

Set metadata-string to NULL ("")
Do pdb gimp-image-set-metadata
(Notice; Only Remove EXIF)

Example on Console

(define metadata-string "")
metadata-string
(define image 1)
image
(gimp-image-set-metadata image metadata-string)
(#t)

2022年8月25日(木) 11:27 Sam Lee via gimp-user-list <gimp-user-list gnome org>:

On 2022-08-24 18:52 +0200, Ofnuts via gimp-user-list wrote:
Why do you use Gimp for this... You script would run faster using
ImageMagick (for the conversion) and ExifTool (to remove the Exif data):

convert in.png PNG8:out.png
exiftool all= out.png

I am not using GIMP specifically to remove an image's Exif data, its
thumbnail, and its color profile. The script that I have given in the
first email is just an example. I just want to remove such data when
saving PNG files using Script-Fu in general. Options are available to
omit such data when saving interactively in the GUI. Is there a way to
do this non-interactively using Script-Fu?
_______________________________________________
gimp-user-list mailing list
List address:    gimp-user-list gnome org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]