124 Commits

Author SHA1 Message Date
DarthSim
08d225ccbf Fix vips.Image.IsAnimated when only one page is loaded 2025-09-02 18:22:20 +03:00
DarthSim
ac48257772 Refine processing.ProcessImage 2025-09-02 19:52:56 +06:00
Victor Sokolov
697c2ddcd6 IMG-52: rename metrics to monitoring (#1498)
* Removed bufpool

* metrics -> monitoring

* metricsMeta -> monitoringMeta

* monitoring.Meta -> Filter
2025-08-20 17:17:18 +02:00
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
DarthSim
cac693c2db Merge branch 'master' into version/4 2025-08-16 18:14:41 +03:00
DarthSim
6d36ccba6d Fix getImageSize for animated images 2025-08-16 18:06:16 +03:00
Victor Sokolov
d47eeee6ad IMG-44: move skip to processing, remove imath.Min/Max (#1485)
* Removed imath.Min/Max

* Skip goes to processing

* no svg_processing error category

* should report SVG
2025-08-15 12:38:16 +02:00
Victor Sokolov
e14e054471 DownloadSync/DownloadAsync (#1480)
* DownloadSync/DownloadAsync

* No bufpool in svg

* Added ImageData.Error()

* Header ordering in respondWithImage

* Check originData.Error only if processing failed

---------

Co-authored-by: DarthSim <darthsim@gmail.com>
2025-08-11 20:09:54 +06:00
Victor Sokolov
f7a13c99de IMG-13: separate http.Headers from ImageData (#1475)
* Separate headers from ImageData

* processing.Result
2025-08-06 16:46:35 +02:00
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