1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-12-23 22:11:10 +02:00
Commit Graph

111 Commits

Author SHA1 Message Date
Victor Sokolov
3d14c85de3 IMG-13: http.Header, *ImageData -> ImageData (#1473)
* ImageData.Headers()

* *ImageData -> ImageData

* withmatt -> httpheaders of our own

* .Clone() headers, nil

* NewFromBytesWithFormat -> nil

* svg.go -> do not Clone()
2025-08-01 15:44:21 +02:00
DarthSim
80fe152509 Replace imgagedata.ImageData.meta with format; Add imagedata.NewFromBytesWithFormat 2025-07-31 19:59:22 +03:00
Victor Sokolov
efbea5fde5 New imagedata interface (#1471) 2025-07-31 18:18:13 +02:00
Viktor Sokolov
676cd7088c Removed ico.go and bmp.go 2025-07-23 19:47:22 +06:00
DarthSim
08678c8d49 Add real check for icoload_source 2025-07-11 22:25:32 +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
Viktor Sokolov
762177b63c vips_source_read leftovers 2025-07-11 15:21:14 +03:00
Victor Sokolov
61f08c20ac Fix: 24 bit image with non-zero alpha mask treated fine (#1457)
* bytes per pixel

* Fix alpha condition

* has_alpha logic

* Fixes condition bpp

* Minor
2025-07-11 18:08:56 +06:00
DarthSim
c3eb1b9633 Optimize loading bottom-up BMPs 2025-07-11 17:11:11 +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
f971fb428a %v 2025-07-02 12:11:36 +02:00
Viktor Sokolov
22778f020d varargs for vipsError 2025-07-02 11:59:49 +02:00
Viktor Sokolov
99cdb54411 vipsError 2025-07-02 11:48:53 +02:00
Viktor Sokolov
7561b1bb51 vips_error_go 2025-07-02 11:22:47 +02:00
DarthSim
92a281f834 Simplify WebP preset config 2025-06-30 18:28:31 +03:00
Viktor Sokolov
2fcf9ff0cc AsyncSource -> ImgproxySource 2025-06-30 15:35:20 +02:00
Viktor Sokolov
27e867141e All methods replaced with source load 2025-06-27 17:09:14 +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
3550042a16 Apply new errors processing to more code parts 2025-02-18 17:35:13 +03:00
DarthSim
528ece8da1 Revised errors for better error reporting 2025-02-17 22:11:40 +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
Thomas Maroschik
0e53f7d8db Fix ld: error: undefined symbol: ceil on FreeBSD
When building on FreeBSD the compilation errors because it cannot find the math library. This single line links it.
2024-12-10 15:11:37 +01: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
54313eb207 Add AWS Lambda adapter to the Docker image; Set workers and vips concurrency when running in AWS Lambda 2024-01-22 18:47:48 +03:00
DarthSim
22e16ebe56 Fix loading animated images with a huge number of frames 2023-12-20 19:34:29 +03:00
DarthSim
ed6050dcce Use VIPS_META_PALETTE for palette detection if available 2023-11-22 20:22:55 +03:00
DarthSim
b897a63203 Remove explicit vips_vector_set_enabled 2023-11-22 11:45: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
dc86a5e3a2 Fix vips_allocs OTel metric unit 2023-10-06 01:31:59 +03:00
DarthSim
4c82ec28e2 Better detect image loading errors 2023-09-14 20:07:01 +03:00