Mirco Miranda
9b1fafe29b
Fix wrong alpha conversion
...
and use tif for image comparison in this particular one instead of png
BUG: 468288
2023-04-12 20:34:33 +00:00
l10n daemon script
fa673b5df8
GIT_SILENT Upgrade ECM and KF version requirements for 5.105.0 release.
v5.105.0
v5.105.0-rc1
2023-03-31 09:08:23 +00:00
Mirco Miranda
e96b43aef5
psd: Fix alpha blending (KF5)
...
PSD files are saved with as alpha premultiplied. The problem is that alpha refers to white instead of black so it requires transformation formulas. Then, to conver PS premultiplied to QImage premultiplied you have to use the following formula:
* V = Alpha + Vps - Max (C, M, Y, K, R, G, B, Gray, L\* components)
* V = Vps + (Alpha - Max + 1) / 2 (a\*, b\* components)
Where Max is the maximum value depending on the image depth and Vps is the valued read from the file.
This is a port of MR !143 to KF5.
2023-03-29 17:58:09 +00:00
l10n daemon script
64f3303ef0
GIT_SILENT Upgrade ECM and KF version requirements for 5.104.0 release.
v5.104.0
v5.104.0-rc1
2023-03-04 10:04:16 +00:00
l10n daemon script
63056c52f9
GIT_SILENT Upgrade ECM and KF version requirements for 5.103.0 release.
v5.103.0
v5.103.0-rc1
2023-02-05 09:22:42 +00:00
Mirco Miranda
2997f7ae8d
psd: conversion speed improvements (kf5)
...
- Improved performance converting CMYK files by \~10% by replacing divisions with multiplications.
- Improved performance converting LAB files by \~50% by replacing std::pow with fastPow (approximated pow function).
2023-02-03 20:55:49 +00:00
Freya Lupen
0b4741f4b7
Fix writing TGA alpha depth flag
...
Correctly write alpha channel depth as 8-bit.
(cherry picked from commit 20cec27ae8a3e1ac16d09ee586ace3e739f631c6)
2023-02-02 01:11:32 +01:00
Mirco Miranda
bc52c03981
HDR support removed from RAW plugin
2023-01-30 21:59:09 +00:00
Daniel Novomeský
c1c57d9a11
heif: reject invalid files with zero size
2023-01-29 16:21:01 +01:00
l10n daemon script
4c6d2b92b6
GIT_SILENT Upgrade ECM and KF version requirements for 5.102.0 release.
v5.102.0
v5.102.0-rc1
2023-01-07 00:28:55 +00:00
Albert Astals Cid
05bd9397b3
raw: tweak seek implementation
...
libraw uses fseek when doing files, which allows seeking past the end
without problems, so do the same, otherwise when we report oss-fuzz
issues they say "give me an example to reproduce" and since our seek
and their seek don't behave the same it's hard to convince them
to fix their code
2022-12-14 23:56:20 +01:00
Daniel Novomeský
f4ca3f6783
heif: fix error handling
2022-12-13 11:11:38 +01:00
Daniel Novomeský
a30f043e5d
heif: rewrite plugin to use only libheif C API
...
Using C-API instead of C++ libheif API has following advantages:
- More libheif features available (for ex.: strict decoding)
- Linking with static build of libheif is possible
- No need to enable exceptions
2022-12-05 22:43:41 +01:00
l10n daemon script
7af4eea253
GIT_SILENT Upgrade ECM and KF version requirements for 5.101.0 release.
v5.101.0
v5.101.0-rc1
2022-12-03 09:47:44 +00:00
Mirco Miranda
a3049f6740
Fix missing DCI-P3 color space set
2022-11-24 15:02:31 +01:00
Daniel Novomeský
3b1e8f7054
minor tweaks in HEIF and AVIF plugins
...
It is mostly only about casting between types.
2022-11-19 11:38:49 +00:00
Mirco Miranda
dcab3a06ab
raw: LibRaw_QIODevice::read: fixed possible partial reading of an item
...
- If the size of an item is greater than 1 byte, it must be ensured that it is not partially read.
- In many readings, LibRAW gives an error if a partial number of items are read so I always try to read everything.
2022-11-19 10:14:16 +00:00
Mirco Miranda
361f9e867e
PSD multichannel testcases
2022-11-15 16:25:22 +00:00
Mirco Miranda
35883aa604
Support to MCH with 4+ channels (treat as CMYK)
2022-11-15 16:25:22 +00:00
Mirco Miranda
50846f224f
avif: Check if encoder/decoder is available in capabilities()
...
The plugin can be compiled even with decoder libraries only. In a similar way of HEIC plugin I check if an encoder or a decoder is available.
2022-11-15 13:14:09 +00:00
Nicolas Fella
9ad82ed608
Fix condition for installing desktop files
2022-11-07 00:37:09 +01:00
l10n daemon script
c9f32a226f
GIT_SILENT Upgrade ECM and KF version requirements for 5.100.0 release.
v5.100.0-rc1
2022-11-05 12:28:10 +00:00
Nicolas Fella
a0df142408
Don't install desktop files for image formats when building against Qt6
...
These are only for kdelibs4support/KServiceTypeTrader
2022-11-03 21:36:38 +01:00
Albert Astals Cid
8586bb4719
raw: Don't seek back if we were asked to read too much
...
Otherwise we will return false when LibRaw::derror
calls for eof() when it is actually that we have reached eof
2022-10-30 23:59:55 +01:00
Daniel Novomeský
d734f28727
jxl: indicate when all frames have been read
...
and return correct loop count
2022-10-18 17:58:40 +02:00
Daniel Novomeský
afa7399b36
avif: minor fixes
...
libavif 0.11.0 uses new default dimension limit 32768 pixels,
we allow 65535 which was used by us previously.
Minor tweaks in jumpToNextImage, jumpToImage
to handle rare situations.
2022-10-18 15:05:15 +02:00
Daniel Novomeský
bfb12093ad
avif: indicate when all frames have been read
2022-10-15 20:08:39 +02:00
Fushan Wen
1190e53e9b
avif: always indicate endless loop
...
avif does not support loops but endless loop was the behavior before
460085 was fixed, so a workaround is added.
See also: https://github.com/AOMediaCodec/libavif/issues/347
CCBUG: 460085
2022-10-15 14:11:56 +08:00
Fushan Wen
350ce1b990
avif: return false
in canRead()
when imageIndex >= imageCount
...
Otherwise when `cache: false` is set in AnimatedImage, QMovie will try
to read the image forever.
BUG: 460085
FIXED-IN: 5.100
2022-10-15 14:02:38 +08:00
Daniel Novomeský
bcbf45e23a
Add JXL test files corresponding to 8 EXIF orientation values
2022-10-13 15:47:04 +02:00
Daniel Novomeský
c71a7984d6
Add AVIF test files with rotation and mirror operations
2022-10-12 15:39:27 +02:00
Daniel Novomeský
b1f3a87896
Auto-rotate input images in readtest
...
Currently, there is no difference in the tests but in the future
we will add images with various transformations defined.
2022-10-12 15:33:08 +02:00
Daniel Novomeský
8af9a0f9d9
jxl: remove C-style casts
2022-10-11 15:38:55 +02:00
Daniel Novomeský
3790a89cd1
avif: Use reinterpret_cast instead C cast
...
No longer using int for QByteArray size because Qt6 uses qsizetype
2022-10-11 15:05:20 +02:00
Daniel Novomeský
f475a4b24a
avif: revert 9ac923ad09316dcca0fc11e0be6b3dfc6cce6ca0 commit
...
Changes to libavif's avifImageRGBToYUV() API were reverted too.
2022-10-11 14:36:17 +02:00
Daniel Novomeský
d2f38b8b9c
heif: replace C cast with static_cast
2022-10-10 09:28:41 +00:00
Daniel Novomeský
9ab64dbf22
heif: use heif_init/heif_deinit with libheif 1.13.0+
...
In recent libheif, application should use
heif_init/heif_deinit calls. Unfortunately, these calls are
not thread-safe in released 1.13.0 version yet (will be in the
future) and HEIFHandler is often created in different threads.
So we have to guard their use with a mutex.
2022-10-10 09:28:41 +00:00
Friedrich W. H. Kossebau
20f74ce5e6
FindLibRaw: fix include dir, should not contain prefix libraw/
...
See also the examples at https://www.libraw.org/docs/API-CXX.html
BUG: 460105
2022-10-08 02:15:18 +02:00
Mirco Miranda
54129819d5
Fix duplicated tests
2022-10-02 06:01:23 +00:00
Mirco Miranda
181eb253c6
ANI partial test and PIC test added
2022-10-02 06:01:23 +00:00
Mirco Miranda
c5f7ea7eac
PSD: impreved support to sequential access device
2022-10-02 06:01:23 +00:00
Mirco Miranda
ea14882ff7
Fix messages
2022-10-02 06:01:23 +00:00
Mirco Miranda
f8bfdce285
CMakeLists: enable EXR test
2022-10-02 06:01:23 +00:00
Mirco Miranda
524f083ee4
Added EXR test image
2022-10-02 06:01:23 +00:00
Mirco Miranda
c96ad6ba8a
Fixes for sequential devices
2022-10-02 06:01:23 +00:00
l10n daemon script
49bd131eef
GIT_SILENT Upgrade ECM and KF version requirements for 5.99.0 release.
v5.99.0
v5.99.0-rc1
2022-10-01 13:17:36 +00:00
Laurent Montel
2a25ec7a56
Add Qt6 windows CI support
2022-09-27 15:15:36 +00:00
Aleix Pol
a8a477ae67
pcx: Do not support sequential devices
...
We need QIODevice::pos() to work in QDataStream &operator>>.
BUG: 459541
2022-09-24 03:45:21 +02:00
Mirco Miranda
2f27dff48b
Fix maximum number of channels (testcase added)
2022-09-22 21:17:10 +00:00
Friedrich W. H. Kossebau
72a1cc23b1
Use consistently std::as_const instead of qAsConst
...
NO_CHANGELOG
2022-09-22 15:59:15 +02:00