summaryrefslogtreecommitdiff
path: root/src/jpeg-utils.cpp
AgeCommit message (Collapse)AuthorFilesLines
2013-03-10Add support for specifying custom dateTomas Bzatek1-33/+79
This essentially means faking the datetime, e.g. when you want to mask original picture date. This commit also changes little bit of datetime conversion, hopefully fixing DST issues. Needs more testing.
2013-03-10Add support for datetime/timezone shiftTomas Bzatek1-31/+139
Simple datetime shift, including EXIF data modification.
2012-12-27jpeg-utils: Tidy up get_exif_data_fixed() a bitTomas Bzatek1-26/+17
And change g_str_has_prefix() for key name comparison to g_str_equal() to prevent potential prefix clashes.
2012-12-27jpeg-utils: Use Exiv2::Exifdatum.count() for key presence testTomas Bzatek1-6/+2
2012-12-27Add support for EXIF Canon Camera temperatureTomas Bzatek1-0/+40
For the moment we're using Exif.CanonSi.0x000c key from Exiv2 namespace since it's an unknown tag to it. This may need little tweaking in the future when proper naming becomes upstream.
2012-04-15Add HAS_EXIF defineTomas Bzatek1-0/+35
This brings a new HAS_EXIF define which is present when EXIF information are available. Templates have been modified to inform user when not available. The test for EXIF metadata presence is fairly basic, we only look for aperture, focal length and exposure time attributes. This might be a subject to change in the future.
2012-04-15Change EXIF metadata handling into a registered functionTomas Bzatek1-175/+145
This allows much greater flexibility from templates regarding EXIF metadata handling, no more hardcoded symbols. It's possible to display essentially any attribute known to Exiv2. Please see http://exiv2.org/metadata.html This brings two new functions that can be called from templates: * get_exif_value (exiv2_attribute) * get_exif_value_fixed (exiv2_attribute) Both functions take a string argument of metadata attribute name from Exiv2 namespace. The difference is that get_exif_value_fixed() does some extra formatting for several basic attributes (e.g. datetime format).
2011-06-05jpeg-utils: Get rid of static variablesTomas Bzatek1-2/+5
2011-06-04Autorotate images according to EXIF Orientation infoTomas Bzatek1-3/+77
This comes with a cost of decoding full image when only getting image size.
2010-12-12jpeg-utils: Get rid of error handling macrosTomas Bzatek1-91/+79
2010-12-12jpeg-utils: Function data cleanupTomas Bzatek1-6/+5
2010-10-30Don't resize an image if it fits in desired sizeTomas Bzatek1-17/+22
2010-10-10Do crop and shave in one stepTomas Bzatek1-5/+1
Silly me, this can be easily done at once.
2010-10-09Add support for squared thumbnailsTomas Bzatek1-5/+27
Disabled by default, only very simple center crop implemented. The SQUARED_SIMPLE_SHAVE_AMOUNT constant may be slightly adjusted according to future experience. It's a really dumb algorithm which may not be suitable for every picture. Looking for a fast and smart algorithm to determine image weight center and radius, i.e. focus on object of interest. The OpenCV's face recognition features are worth to test and consider, though I fear the speed issues.
2010-10-06Fix day of the week in EXIF date stringTomas Bzatek1-0/+1
mktime() modifies tm_wday and tm_yday to correct values.
2009-05-10Remove #ifdef __DEBUG_ALL__Tomas Bzatek1-22/+0
2009-05-10Consolidate data typesTomas Bzatek1-73/+51
2009-04-11Print statistics in verbose modeTomas Bzatek1-4/+5
2009-03-28Multithreading supportTomas Bzatek1-4/+0
Also made progress output a little bit nicer default = 1 thread at once, for safety reasons I've encountered critical issues with ImageMagick compiled with OpenMP support. Hope that package maintainers are clever. ShittyMagickWandGenesis(), ShittyMagickWandTerminus() :-)
2009-02-27Fix exiv2 new api detectionTomas Bzatek1-0/+2
2009-02-26AutotoolizeTomas Bzatek1-0/+429