11 Commits

Author SHA1 Message Date
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
Victor Sokolov
6f11d950fb imagefetcher -> fetcher (#1514) 2025-09-05 15:31:48 +02:00
DarthSim
d38720a0b8 Wrap asyncbuffer and imageDataAsyncBuffer errors 2025-08-21 21:27:45 +06: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
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
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
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