Commit Graph

97 Commits

Author SHA1 Message Date
DarthSim
ac03563506 NewDefaultConfig returns value, not pointer; Nested configs are defined as value 2025-09-06 01:56:53 +03:00
DarthSim
11a17aea33 Provide actual ctx and processing options to watermark.Get in applyWatermark 2025-09-05 18:22:56 +03:00
Victor Sokolov
37a6ea2bf7 IMG-49: Get rid of global watermark image and fetcher (#1515)
* Get rid of global watermark image

* imagedata.Factory, removed global Fetcher
2025-09-05 16:22:57 +02:00
DarthSim
7aec46f146 processing.transformAnimated doesn't need imgdata 2025-09-02 19:39:18 +03:00
DarthSim
ac48257772 Refine processing.ProcessImage 2025-09-02 19:52:56 +06: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
Victor Sokolov
15bd00b221 IMG-51: router -> server ns, handlers ns, added error to handler ret val (#1494)
* Introduced server, handlers, error ret in handlerfn

* Server struct with tests

* replace checkErr with return
2025-08-20 14:31:11 +02:00
DarthSim
e5c72270bb Don't check dimensions for vector formats; Simplify guard scale of vector images 2025-08-16 19:54:50 +03:00
DarthSim
cac693c2db Merge branch 'master' into version/4 2025-08-16 18:14:41 +03:00
DarthSim
7bdae0fb0a Fix X-Result-Height debug header for animated images 2025-08-16 18:12:05 +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
09a25f8966 IMG-23: Replace imagemeta with imagedetect (#1483)
* Replace imagemeta with imagedetect

* Removed imagemeta package

* 1 page in the check
2025-08-13 11:49:48 +02: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
Victor Sokolov
efbea5fde5 New imagedata interface (#1471) 2025-07-31 18:18:13 +02:00
DarthSim
a5a587eb39 Add IMGPROXY_MAX_RESULT_DIMENSION config and max_result_dimension processing option 2025-06-06 19:29:39 +03:00
DarthSim
810cad5d26 Calculate all sizes at the start of processing pipeline 2025-06-05 20:28:09 +03:00
DarthSim
dccfe80349 Fix the extend processing option when only one dimension is set 2025-06-04 20:20:20 +03:00
DarthSim
08150dcc16 Add a comment about dprScale for future historians 2025-06-04 19:37:41 +03:00
DarthSim
3550042a16 Apply new errors processing to more code parts 2025-02-18 17:35:13 +03:00
DarthSim
edb050ed21 Fix handling ICC profiles with vips 8.15+ 2024-12-17 21:44:12 +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
750fdddc72 Clenup some smell 2024-11-22 01:36:58 +03:00
DarthSim
e7e7a43bb6 Refactor gravity a bit 2024-11-20 19:43:57 +03:00
DarthSim
7fd1d446cf Fix HEIC/AVIF dimension limit handling 2024-05-02 16:31:19 +03:00
DarthSim
b43c6a7db7 Fix watermark replication across animation frames 2024-04-24 21:55:16 +03:00
DarthSim
97217949a7 Fix watermarks overlapping animation frames in some cases 2024-04-24 21:42:29 +03:00
DarthSim
df75177481 Replace WatermarkOptions.Gravity with GravityReplicate 2024-04-24 19:35: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
cdde8918c1 Fix over-shrinking during scale-on-load 2024-04-14 18:46:22 +03:00
DarthSim
59ca483aa7 Remove LineCache diring animation images processing (issue is fixed in vips 8.15.2) 2024-03-22 17:01:29 +03:00
DarthSim
880d16f457 Reduce memory usage when scaling down animated images 2024-01-27 18:34:21 +03:00
DarthSim
22e16ebe56 Fix loading animated images with a huge number of frames 2023-12-20 19:34:29 +03:00
DarthSim
8cb93f8915 Fix relative watermark offsets when watermark is replicated 2023-12-02 22:23:19 +03:00
DarthSim
8eb04ea98b Allow relative values for gravity and watermark offsets 2023-12-01 18:23:24 +03:00
DarthSim
707a24e59d HEIC saving support 2023-11-18 21:03:17 +03:00
DarthSim
b90f73c4b5 Typo 2023-11-17 16:43:24 +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
756958d2ca Fix crashes during processing of large animated WebPs 2023-09-08 17:07:09 +03:00
DarthSim
890b4e3f7d Limit vector image sizes to IMGPROXY_MAX_SRC_RESOLUTION 2023-09-05 21:10:28 +03:00
DarthSim
46e63464f7 Remove ICC if source image is linear 2023-08-30 15:06:12 +04:00
DarthSim
136a5d093f Fix saving to JPEG when using linear colorspace 2023-07-02 22:58:32 +03:00
DarthSim
2e6a3c6dd1 Separate Photoshop and IPTC metadata parsing/dumping 2023-05-29 19:48:39 +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
85f790fb4b Optimize watermark application 2023-05-10 17:46:41 +03:00