Keep EXIF/IPTC/XMP tags after image modification
Thomas Ross
2 years ago
0 | 0 |
v0.11.0 - ???
|
|
1 |
BREAKING CHANGES
|
|
2 |
+ Require Exiv2, GExiv2, and GExiv2 Introspection Data.
|
|
3 |
|
1 | 4 |
CHANGES
|
2 | 5 |
+ Add keywords to mirage.desktop (Thanks Lucas de Castro Borges
|
3 | 6 |
<lucascastroborges@gmail.com>)
|
4 | 7 |
+ Use `gimp %F &` instead of `gimp-remote-2.4 %F` as the default
|
5 | 8 |
command to open with GIMP (Thanks Jakub Wilk <ubanus@users.sf.net>)
|
|
9 |
|
|
10 |
BUG FIXES
|
|
11 |
+ Keep EXIF/IPTC/XMP tags after image modification
|
6 | 12 |
|
7 | 13 |
v0.10.1 - June 04, 2020
|
8 | 14 |
BUG FIXES
|
5 | 5 |
(Required) PyGObject >= 3.29.3
|
6 | 6 |
(Required) PyGObject Cairo bindings
|
7 | 7 |
(Required) PyCairo
|
|
8 |
(Required) GExiv2 Introspection Data
|
|
9 |
(Required) GExiv2
|
|
10 |
(Required) Exiv2
|
8 | 11 |
(Required) GTK >= 3.24.0
|
9 | 12 |
(Extensions) python3-dev and libX11-dev (on some distros)
|
10 | 13 |
|
24 | 24 |
|
25 | 25 |
|
26 | 26 |
gi.require_version("Gtk", "3.0")
|
27 | |
from gi.repository import Gtk, Gdk, GdkPixbuf, GLib, Gio
|
|
27 |
from gi.repository import Gtk, Gdk, GdkPixbuf, GLib, Gio, GExiv2
|
28 | 28 |
import cairo
|
29 | 29 |
import os, sys, getopt, configparser, string, gc
|
30 | 30 |
import random, urllib.request, locale
|
|
1666 | 1666 |
0
|
1667 | 1667 |
].get_name()
|
1668 | 1668 |
if self.filetype_is_writable(filetype):
|
|
1669 |
metadata = GExiv2.Metadata.new()
|
|
1670 |
metadata.open_path(self.currimg_name)
|
1669 | 1671 |
self.currimg_pixbuf_original.savev(
|
1670 | 1672 |
dest_name, filetype, ["quality"], [str(self.quality_save)]
|
1671 | 1673 |
)
|
1672 | 1674 |
self.currimg_name = dest_name
|
|
1675 |
metadata.save_file(self.currimg_name)
|
1673 | 1676 |
self.image_list[self.curr_img_in_list] = dest_name
|
1674 | 1677 |
self.update_title()
|
1675 | 1678 |
self.update_statusbar()
|