Commit Graph

1916 Commits

Author SHA1 Message Date
DarthSim
f23cf5b2f9 Merge branch 'master' into version/4 2025-08-20 18:38:10 +03:00
DarthSim
f50176f95b TIFF supports color profiles 2025-08-20 18:35:01 +03: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
b5185bd3a0 Update changelog 2025-08-20 15:54:07 +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
0ddefe1b85 Add expected data length to asyncbuffer to allow seeking from the end without waiting for reader 2025-08-20 00:32:26 +06:00
DarthSim
c95725b12f Don't use io.ReadFull in io.Reader wrappers 2025-08-19 18:46:56 +06:00
DarthSim
62565c79db Use NewGoroutine when starting a NewRelic segment 2025-08-18 20:44:38 +03:00
DarthSim
677b5e4872 Merge branch 'master' into version/4 2025-08-16 21:31:17 +03:00
DarthSim
46ba23a775 Sort log keys by both priority and name; Add priority for "source" key 2025-08-16 21:30:00 +03:00
DarthSim
bb07cb8f2e Remove svg.SanitizeError check from processing handler 2025-08-16 20:25:12 +03: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
DarthSim
61418f55b8 Add priority to imagetype detectors 2025-08-16 02:28:56 +06:00
DarthSim
aff48f97b5 Return error from SVG detector unless it is EOF or parser.Error 2025-08-16 02:06:57 +06:00
DarthSim
bd5751737c Return detector errors from imagetype.Detect 2025-08-16 02:06:57 +06:00
DarthSim
f8e22be4a2 Fix imagedata.registry.detect 2025-08-15 21:59:04 +03:00
DarthSim
2f40a9b430 bufreader: fix Rewind+Read after EOF; Fix too much data read in fetch 2025-08-15 22:50:42 +06:00
DarthSim
a3c633f884 Remove debug Println 2025-08-15 18:40:33 +03:00
DarthSim
c8b67610e4 Fix possible call to nil finishFn in asyncbuffer 2025-08-15 14:02:04 +03:00
Victor Sokolov
af890f8b71 IMG-46: Call finishFn on download finished (metrics) (#1487)
* Skip goes to processing

* Call finishFn on download finished

* defer DownloadFinished in DownloadSync
2025-08-15 12:43:57 +02: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
2236bd8170 IMG-23: replace an old imagetype with the new one (#1482)
* imagetype (new) -> imagetype

* Always fallback in C-D, GetTypeMap -> GetTypeByName

* Do not send origin ContentType
2025-08-13 11:36:25 +02:00
Victor Sokolov
2cb9aea995 IMG-23: split imagetype (#1484)
* Image type (new)

* bufreader, RegisterFormat updated

* Remove StemExt

* Unknown = 0

* Joined imagedetect and imagetype

* Use regular []byte in bufreader
2025-08-13 11:29:06 +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
DarthSim
e7187ea51f Stabilize asyncbuffer.Cond tests 2025-08-07 12:35:24 +03:00
Victor Sokolov
0015e88447 IMG-13: pauseThreshold in AsyncBuffer + close behaviour (#1477)
* pauseThreshold in AsyncBuffer

* Additional close() condition

* io.ReadCloser in buffer

* ticker + fixes

* Minor fixes for asyncbuffer

* Renamed ticker to cond

* warn if close of upstream reader failed

* ticker -> chunkCond

* Fix io.EOF behaviour
2025-08-06 18:45:53 +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
DarthSim
52ecfeaf8b Merge branch 'master' into version/4 2025-08-05 19:49:22 +03:00
DarthSim
4d19d89ac0 Ignore http.ErrBodyNotAllowed error during streaming 2025-08-05 19:48:28 +03:00
DarthSim
2609144cb4 Pass If-Modified-Since header during streaming` 2025-08-05 19:44:40 +03: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
e40851e460 Merge branch 'master' into version/4 2025-07-31 23:08:52 +03:00
DarthSim
8967bf7f82 Fix Vary header when JPEG XL supoprt detection is enabled 2025-07-31 23:08:01 +03:00
DarthSim
86b727b706 Update changelog 2025-07-31 23:04:43 +03:00
DarthSim
80fe152509 Replace imgagedata.ImageData.meta with format; Add imagedata.NewFromBytesWithFormat 2025-07-31 19:59:22 +03:00
Viktor Sokolov
c59ef97a2a Remove head filter 2025-07-31 22:30:18 +06:00
Victor Sokolov
efbea5fde5 New imagedata interface (#1471) 2025-07-31 18:18:13 +02:00
Victor Sokolov
dd3b430f87 transport isolated, imagefetcher introduced (#1465) 2025-07-25 12:26:21 +02:00
Victor Sokolov
0e0714b5a1 async reader + test (#1464) 2025-07-25 11:29:53 +02:00
Viktor Sokolov
a95c0bcd66 Use clang-format-20 on CI 2025-07-24 13:21:21 +02:00
Victor Sokolov
aa91342686 IMG-33: adds simple integration tests for image.Load() (#1462)
* Load() integration test

* Added test-images as submodule
2025-07-23 19:09:49 +02:00