Commit Graph

73 Commits

Author SHA1 Message Date
DarthSim
08d20d46e6 Merge branch 'master' into version/4 2025-08-20 17:01:34 +03:00
DarthSim
83e64ff2d3 TransformColourProfile -> TransformColourProfileToSRGB 2025-08-20 17:00:54 +03:00
DarthSim
14bb84fa1f Merge branch 'master' into version/4 2025-08-20 16:40:29 +03:00
DarthSim
e1764ad580 Rename processing steps: importColorProfile -> colorspaceToProcessing, exportColorProfile -> colorspaceToResult 2025-08-20 16:35:37 +03:00
DarthSim
d7772499b9 Fix keeping copyright info in EXIF 2025-08-20 16:11:30 +03:00
Victor Sokolov
b18b678df2 IMG-25: load ICO files (#1458)
* disk_sink + fixes

* Always 4 bands for v3+ bmp on save

* bmpsave fixed (w/o orientation)

* fixed ico for target save

* icosave.c

* Removed leftover comments

* icoload.c

* Row buffer (skripatch) is not needed anymore

* Minor fixes for icoload/save

* Use wips_image_write instead of vips_copy

* Forgotten &

* Check resulting dimensions

* -debug printf
2025-07-12 00:00:08 +06:00
Victor Sokolov
0567655437 IMG-29: Save ICO using target (#1453)
* disk_sink + fixes

* Always 4 bands for v3+ bmp on save

* bmpsave fixed (w/o orientation)

* fixed ico for target save

* icosave.c

* Resolved conflicts

* Removed leftover comments

* Correct data_size
2025-07-11 22:39:12 +06:00
Victor Sokolov
90376b7261 IMG-28: Save bmp via target (#1452)
* RLE fixes

* disk_sink + fixes

* Always 4 bands for v3+ bmp on save

* bmpsave fixed (w/o orientation)

* fixed ico for target save

* cancel() comment

* No orientation anymore

* No orientation

* Fixed non-alpha save bug

* Fixed rebase artifact

* Fixed condition
2025-07-11 19:07:39 +06:00
Victor Sokolov
b5242725d5 IMG-24: load BMP via source (#1451)
* bmpload.c

* #ifdef VIPS_META_PALETTE

* int32 height/width

* Separate #ifdef for VIPS_META_BITS_PER_SAMPLE

* RLE fixes

* bufsize

* += fix

* Move rel to x

* Allocate load buffer in load()
2025-07-09 22:26:55 +06:00
Sergei Aleksandrovich
c0e61be05d Merge pull request #1441 from imgproxy/img-12-experiment-close-callback
img-12: load JPEG from source (bytes.Reader) instead of memory
2025-07-08 19:40:56 +06:00
DarthSim
3178e2b21d VIPS_CEIL => ceil 2025-07-02 20:02:44 +03:00
Viktor Sokolov
7561b1bb51 vips_error_go 2025-07-02 11:22:47 +02:00
Viktor Sokolov
2fcf9ff0cc AsyncSource -> ImgproxySource 2025-06-30 15:35:20 +02:00
Viktor Sokolov
55d5113c56 Extracted everything to source.* 2025-06-27 16:49:57 +02:00
Viktor Sokolov
ec5e4b2aae Load JPEG from source instead of memory 2025-06-27 13:21:45 +02:00
hossein
4d684fab0a feat(): Add libvips's equivalent options for configuring libwebp's effort and preset. 2025-06-08 23:34:12 +03:30
DarthSim
9b59fb2d53 Add C.RGB struct 2025-05-13 19:03:38 +03:00
DarthSim
cb599f97fd Fix blur and sharpen performance for images with alpha channel 2025-01-10 18:53:23 +03:00
DarthSim
edb050ed21 Fix handling ICC profiles with vips 8.15+ 2024-12-17 21:44:12 +03:00
DarthSim
301ca08236 Fix importing ICC profiles for 16-bit images with an alpha channel 2024-12-15 22:02:45 +03:00
DarthSim
d9abf2d3d7 Fix animated JPEG XL support 2024-12-08 21:07:36 +03:00
DarthSim
3f4edb91f7 JPEG XL (JXL) support 2024-12-08 19:02:08 +03:00
DarthSim
b43c6a7db7 Fix watermark replication across animation frames 2024-04-24 21:55:16 +03:00
DarthSim
aeb2c087d4 Ensure that the watermark is always centered when replicated 2024-04-24 21:41:20 +03:00
DarthSim
09e542517a Extract finalizing to a separate pipeline; Fix watermark colors on non-sRGB images 2024-04-18 19:51:40 +03:00
DarthSim
c56e9e64b9 Add IMGPROXY_PNG_UNLIMITED and IMGPROXY_SVG_UNLIMITED configs 2024-04-15 20:28:05 +03:00
DarthSim
880d16f457 Reduce memory usage when scaling down animated images 2024-01-27 18:34:21 +03:00
DarthSim
ed6050dcce Use VIPS_META_PALETTE for palette detection if available 2023-11-22 20:22:55 +03:00
DarthSim
37f4332cae Drop support of vips prior to 8.13 2023-11-18 21:03:18 +03:00
DarthSim
f79946905d Remove scRGB alpha tiff warning for vips 8.15+ 2023-11-18 21:03:18 +03:00
DarthSim
707a24e59d HEIC saving support 2023-11-18 21:03:17 +03:00
DarthSim
949c71dbf1 Fix build with libvips <8.15 2023-11-13 20:32:36 +03:00
DarthSim
07528dbecf Use palette-bit-depth for palette bitdepth instead of VIPS_META_BITS_PER_SAMPLE 2023-11-13 20:26:58 +03:00
DarthSim
33bbfd0ed9 Use vips_addalpha instead of vips_bandjoin_const1 2023-11-13 19:57:06 +03:00
DarthSim
1cd344cbb7 Use clang-format style in vips/vips.c 2023-09-08 17:08:46 +03:00
DarthSim
756958d2ca Fix crashes during processing of large animated WebPs 2023-09-08 17:07:09 +03:00
Marko Banusic
128b3c6f4c Update vips.c
When compiling from source on Ubuntu we get an error: 

# github.com/imgproxy/imgproxy/v3/vips
vips.c: In function ‘vips_fix_float_tiff’:
vips.c:247:3: warning: not enough variable arguments to fit a sentinel [-Wformat=]
  247 |   return vips_copy(in, out);
      |   ^~~~~~

vips_copy has more arguments and call needs to be terminated with null pointer.

This fixes that problem.
2023-09-07 16:51:50 +02:00
DarthSim
7111083649 Use clang-format style in C files 2023-08-30 17:09:56 +04:00
DarthSim
4e1d556458 Fix float TIFF opacity and linear BW TIFF colors 2023-08-30 15:09:31 +04:00
DarthSim
925dac28bb Create and destroy a tiny image during health check to check that vips is operational 2023-08-21 20:48:47 +03:00
DarthSim
9b6074094a Fix return value from vips_resize_go 2023-06-06 21:09:42 +03:00
DarthSim
39c436e527 Preserve GIF bit-per-sample 2023-05-23 19:09:30 +03:00
DarthSim
157843ccb3 Use VIPS_META_BITS_PER_SAMPLE image header instead of palette-bit-depth when available 2023-05-23 19:08:35 +03:00
DarthSim
3048c30e1e Cast to origin pixel format after premultiplication 2023-05-23 18:26:06 +03:00
DarthSim
85f790fb4b Optimize watermark application 2023-05-10 17:46:41 +03:00
DarthSim
2c28252966 Fix the way the dpr processing option affects offsets and paddings 2023-04-16 20:56:17 +03:00
DarthSim
a7e1b80ba9 Remove color-related EXIF data when stripping ICC profile 2023-01-30 17:13:39 +03:00
DarthSim
f89ced23e4 Speedup processing 2023-01-06 16:36:52 +03:00
DarthSim
fb330da045 Use adaptive filter for full-color PNGs 2022-11-22 18:50:33 +06:00
DarthSim
e233a60f6c Remove alpha after watermarking if image hadn't one before 2022-09-30 18:09:07 +06:00