Commit Graph

71 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
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
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
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
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
edb050ed21 Fix handling ICC profiles with vips 8.15+ 2024-12-17 21:44:12 +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
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
b897a63203 Remove explicit vips_vector_set_enabled 2023-11-22 11:45:55 +03:00
DarthSim
707a24e59d HEIC saving support 2023-11-18 21:03:17 +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
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
DarthSim
756958d2ca Fix crashes during processing of large animated WebPs 2023-09-08 17:07:09 +03: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
a020a7603e Fix reporting image loading errors 2023-08-01 19:48:10 +03:00
DarthSim
136a5d093f Fix saving to JPEG when using linear colorspace 2023-07-02 22:58:32 +03:00
DarthSim
b3905c0cd3 Respond with 422 on error during image loading 2023-05-28 19:59:51 +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
aad0186b0a Enable vector optimizations in vips 2023-05-17 13:42:30 +03:00
DarthSim
85f790fb4b Optimize watermark application 2023-05-10 17:46:41 +03:00
DarthSim
723666ea1a Strip watermark meta and remove its palette depth 2023-04-26 18:24:20 +03:00
DarthSim
2c28252966 Fix the way the dpr processing option affects offsets and paddings 2023-04-16 20:56:17 +03:00
DarthSim
cae8af9ac5 Always import ICC if image is not RGB 2023-03-07 00:21:16 +03:00
Sasha Melentyev
4685e4e222 chore: Changing fmt.Errorf to errors.New when there is no formatting required (#1044)
Co-authored-by: Sergey Alexandrovich <DarthSim@users.noreply.github.com>
2022-12-15 21:03:08 +06:00
DarthSim
79e473798d Add CloudWatch metrics 2022-12-04 21:01:37 +06:00
Sergey Alexandrovich
36f67a6f96 OpenTelemetry support (#995) 2022-10-06 15:08:23 +06:00