summaryrefslogtreecommitdiff
path: root/src/jpeg-utils.c
AgeCommit message (Collapse)AuthorFilesLines
2019-09-20generators: Force even base image dimensions for fractional HiDPI sizesTomas Bzatek1-2/+2
In case a dimension of the base image is not even and fractional HiDPI size is to be generated, the resulting image size computes to a non-integer values. Rounding in browsers may vary so let's stick with safe values and force even base image dimensions. This may result in slight crop applied before resize, generally imperceptible. Tested on Chromium 69 and Firefox 52.
2019-05-13jpeg-utils: Don't override Exif.CanonSi.ApertureValueTomas Bzatek1-2/+0
Newer exiv2 versions don't like it. Sadly this will fail whole metadata write, stating plain "Failed to write image" error.
2019-05-13Plug some memory leaksTomas Bzatek1-2/+3
2019-05-13jpeg-utils: Port to gexiv2Tomas Bzatek1-0/+992
The gexiv2 library is just a GObject wrapper around exiv2 library. It's a healthy project that continually keeps up with exiv2 API changes. Adopted by e.g. GIMP there's certain guarantee of future maintenance. This allows us to get rid of C++ code, making it more readable and predictable.