Commit Graph

2924 Commits

Author SHA1 Message Date
skal
ecaf1dd478 Fix alpha bit detection in VP8L chunks
As per the spec ([1]), the alpha_bit is located on the 4th byte of the payload, just after the height.

This seems to fix the bug reported on GIMP ([2]) where an incorrect file was generated.



[1] https://developers.google.com/speed/webp/docs/webp_lossless_bitstream_specification#2_riff_header
[2] https://gitlab.gnome.org/GNOME/gimp/issues/1818
2018-11-26 16:43:55 +01:00
Luis Díaz Más
6e42c1b55e Fix #561. Use proper counter for the idx variable 2018-11-26 16:39:00 +01:00
Luis Díaz Más
34e411d2fc Fix 547: option -pR only available in Debug mode.
Note that the method Params::evalPrint() has been clang-formatted.
2018-11-22 18:19:08 +01:00
Luis Díaz Más
186352e295 conan: copy 3rd party dlls only if the conanDlls folder exists
Note that this folder will only exists if at least one of the conan packages managed with the shared option = True.
2018-11-20 22:02:05 +01:00
Robin Mills
89375979d8 https://github.com/Exiv2/exiv2/issues/555
I have restored the Macro EXIV2_TEST_VERSION in include/exiv2/version.hpp
I have added an option --version-test to exifprint.cpp to test/validate EXIV2_TEST_VERSION works as documented.
Version strings in Exiv2 v0.27 and later have a fourth digit to indicate the pre-release number of the build.
Pre-release builds should never be used for production purposes.
2018-11-19 11:38:26 +00:00
Luis Díaz Más
ee28e8ae15 CMake: Install public headers 2018-11-16 20:30:52 +01:00
Luis Díaz Más
8e5ee7a0e6 Fix debug flag preprocessor condition 2018-11-16 18:13:59 +01:00
Luis Díaz Más
9547cddbd1 Add protection around EXV_LOCALEDIR definition 2018-11-16 17:23:47 +01:00
clanmills
c5cd09bebe Fix getProcessPath() on Cygwin 2018-11-16 17:23:47 +01:00
clanmills
2f70ae4305 Fix getProcessPath() 2018-11-16 17:23:47 +01:00
Robin Mills
8a6cd5d24e Fix -vVg loops 2018-11-16 13:10:43 +01:00
Luis Díaz Más
0c871a5878 CMake: Align sources and headers in two columns 2018-11-14 19:53:59 +01:00
Luis Díaz Más
faa3a607ab CMake: Remove FREEBSD variable + Remove commented code
- Plus: EXV_LOCALEDIR is now defined only when needed.
2018-11-14 19:53:59 +01:00
Luis Díaz Más
5fc905a799 CMake: remove variable EXIV2_SRC 2018-11-14 19:53:59 +01:00
Luis Díaz Más
fa5f057f8c CMake: Remove useless source_group commands 2018-11-14 19:53:59 +01:00
Luis Díaz Más
b208bcef7d CMake: CURL does not need to be propagated 2018-11-14 19:53:59 +01:00
Luis Díaz Más
37538399d6 CMake: Modernize src/CMakeLists.txt by using target_sources. 2018-11-14 19:53:59 +01:00
Luis Díaz Más
9980107586 Only include zlib directory when building the exiv2lib 2018-11-14 19:53:59 +01:00
Luis Diaz Mas
e397f8f053 Fix #533 - Apply patch proposed by Dominique Nerriec 2018-11-14 07:55:21 +01:00
Luis Diaz Mas
83bb4aa80a code formatting 2018-11-14 07:55:21 +01:00
Luis Díaz Más
38b60a3e8e CMake: Simplify Intl finding 2018-11-13 20:12:58 +01:00
Luis Díaz Más
4ffc577e4e CMake: remove useless directory inclusions for exiv2
Note that ${CMAKE_SOURCE_DIR}/include is already passed to exiv2
through the exiv2lib target.
2018-11-13 20:12:58 +01:00
Luis Díaz Más
185bcaca05 Link exiv2 app againts libintl 2018-11-13 20:12:58 +01:00
Luis Díaz Más
aae84e4643 Add missing inclusions of cstdio and cstdarg 2018-11-11 12:27:26 +01:00
Luis Díaz Más
44a01863be Include unistd.h only where it is needed 2018-11-11 12:27:26 +01:00
Luis Díaz Más
38ed6de05d MSVC: Move compile definitions from config.h to CMake.
+ Also remove inclusion of <Windows.h> from config.h
2018-11-11 12:27:26 +01:00
Luis Díaz Más
8bf9ca8e6d MSVC: Delete deprecated stuff related to MSVC < 2008 2018-11-11 12:27:26 +01:00
Luis Díaz Más
d1c2e2f64f bindtextdomain point to relative path to bin directory 2018-11-11 12:27:26 +01:00
Luis Díaz Más
7485bb54d7 Create function getProcessPath and add unit test for it
Debugging: Relative and Absolute path alternatives
2018-11-11 12:27:26 +01:00
Luis Díaz Más
e20329b8e0 Remove EXV_HAVE_DLL and disable C4251 always on msvc. 2018-11-11 12:27:26 +01:00
Luis Díaz Más
417ad89e4b Pass argument by const reference 2018-11-07 23:17:26 +01:00
Luis Díaz Más
2203dce828 Fix compilation in clang 2018-11-07 23:17:26 +01:00
Luis Díaz Más
59ba209fe8 Move BlockMap to .cpp file (Remove it from API)
- Also make some BlockMap methods const
2018-11-07 23:17:26 +01:00
Luis Díaz Más
fab770887b Initialize member variables not initialized in the constructor 2018-11-07 23:17:26 +01:00
Luis Díaz Más
20a29cc9c4 Initialize variable in constructor initialization list 2018-11-07 23:17:26 +01:00
Luis Díaz Más
58a96d5908 Fix - Exception thrown in function that was declared not to throw 2018-11-07 23:17:26 +01:00
Luis Díaz Más
2d1e1fe6ef Reduce the scope of variables 2018-11-07 23:17:26 +01:00
Luis Díaz Más
dc7eb5008b Add explicit to constructors with 1 argument 2018-11-07 23:17:26 +01:00
Luis Díaz Más
1620198568 Update fujiColor tag with descriptions for new Fujifilm monochrome modes 2018-11-07 12:56:23 +01:00
Robin Mills
ac951622f4 Update DateTimeOriginal in NEF images 2018-11-06 19:28:11 +01:00
Luis Díaz Más
ae49250942 Check in Image::printIFDStructure if seek and reads are OK 2018-11-06 14:40:36 +01:00
Luis Díaz Más
59013f2e2f Formatting code 2018-11-06 14:40:36 +01:00
Luis Diaz Mas
b7c71f3ad0 PSD: enforce Length of image resource section < file size 2018-11-06 13:17:35 +01:00
Luis Diaz Mas
6896693251 PSD: Use Safe::add for preventing overflows in PSD files 2018-11-06 13:17:35 +01:00
Luis Díaz Más
933ce589a6 Fix infinite loop in getopt.cpp
Note that the getopt code was looping forever when one of the argument
options was incorrect. Example:
./exiv2 -A 20:00:00 -Y 2018 -O 11 -D 01 ad myImage.tiff
2018-11-04 20:50:48 +01:00
Robin Mills
b608ad9fdd Restore exiv2.pc in the mix (#497) 2018-11-01 22:20:27 +01:00
Luis Díaz Más
8b877d6ed6 SOVERSION is VERSION_MINOR as in 0.26 2018-11-01 17:40:39 +01:00
Luis Díaz Más
c34c545e31 Change back the library name to exiv2. Generate PDBs in CURRENT_BINARY_DIR.
We need to specify where to generate the PDB so that it does not clash with the PDB file generated
for the exiv2 application.
2018-10-30 15:26:23 +01:00
Luis Díaz Más
8d5d453c13 Use the MSYS CMake variable to determine when to use localtime.c 2018-10-30 15:26:23 +01:00
Luis Díaz Más
bc1c17fd78 Add back localtime.c implementation for MinGW 2018-10-30 15:26:23 +01:00