Closed forgemo closed 2 years ago
This does look like a bug. Are you expecting the proxy to do image processing though? it's just a pass through proxy (with a concatenation bug)
I did indeed expect it to do image processing and cache the processed images, so that the image won't be processed again on the next request with the same params. Was this assumption wrong?
Sorry to raise an old issue. I'm doing some testings as well and would love some functionality like the one described above by @forgemo
The issue you are having is because permacache_proxy
doesn't process the images using ImageResizer4
API.
When using ir4_http
, images are saved locally to be processed, but then after the first download they are downloaded again and again after each request, instead of checking if the file is already present on disk and use that to run the processing (or at least it looks like its doing this).
We strongly suggest using Imageflow.NET Server instead of imageflow_server
On Sun, Feb 20, 2022, 1:04 PM mpw @.***> wrote:
Sorry to raise an old issue. I'm doing some testings as well and would love some functionality like the one described above by @forgemo https://github.com/forgemo
The issue you are having is because permacache_proxy doesn't process the images using ImageResizer4 API.
When using ir4_http, images are saved locally to be processed, but then after the first download they are downloaded again and again after each request, instead of checking if the file is already present on disk and use that to run the processing (or at least it looks like its doing this).
— Reply to this email directly, view it on GitHub https://github.com/imazen/imageflow/issues/584#issuecomment-1046310612, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA2LH22NR3DWWLLMSTGK6LU4FCOLANCNFSM424GCFYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>
I tried to start the latest docker image
imazen/imageflow_server_unsecured:latest
with the following enrtypointWhen trying to resize an image, I get a 404 response with the following rust logs.
I noticed in the logs, that the requested url by imageflow is missing the question mark for the url params.
I would expect it to be
or
I'm new to imageflow, but this seems like a bug to me.
When I use
ir4_http
instead ofpermacache_proxy_guess_content_types
everything seems to work as expected.When I use
permacache_proxy
I see the same behavior as withpermacache_proxy_guess_content_types
.Disclaimer: I just started to work with imageflow and docs.imageflow.io is broken #583. Maybe I'm missing some relevant bits that would have been mentioned in the docs.