-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 BUG: Image resizing is not supported by wrangler2 dev
#534
Comments
Is this using "sites" functionality? If so, I believe the problem is that in Wrangler2, for |
@petebacondarwin We still use the edge for Sites, uploads and all, so I don't think that's the issue here. |
Here we go: https://github.com/ptim/wrangler2-repro-534
Nope, confident I haven't done either 馃憤 BTW - unrelated feedback:
HTH! |
BTW, as a related FR, I'd love to receive warning (maybe a response header?) if image resizing is not enabled - this had me super confused for a while :) #barrier-to-entry |
We haven't fleshed out proper support for zoned workers just yet, that should be incoming soon. Thanks for the report! We should just fix the image resizing thing. Sorry about that, we'll do it soon. |
The latest beta has better support for zoned workers, feel free to give that a spin and let us know if it worked? We'll have a look at the image cache issue in a bit. |
@ptim - I just upgraded my account to do image resizing and ran your reproduction (https://workers.bacondarwin.com/wrangler2-repro-534?url=https%3A%2F%2Fi.imgur.com%2FtuJY33L.png). Can you please check with the latest alpha? |
By the way, I took at look at the headers returned from a request that was resized and I see these items that do not appear if the resizing did not happen:
In the case where the resizing did not happen we only get:
So I think you could use that as a marker for whether image resizing is turned on. |
This was probably fixed in #544, since wrangler dev now uses domain entitlements correctly. |
Thanks - this is working for me now! |
Great! Glad you are unblocked. Thanks @threepointone for the fix. |
What version of
Wrangler
are you using?0.0.17
What operating system are you using?
Mac
Describe the Bug
Any requests for a resized image passes through to the source image (returns "content-type: image/whatever").
This is easily seen when requesting format='json'...
Is this due to wrangler2 using miniflare under the hood? I'm accustomed to this behaviour in local dev with miniflare, and have a "canary fetch" to a known-good image early in my debug handler to remind me of this situation...
I'm expecting that when I run
wrangler2 dev
, live image resizing will occur, as it does withwrangler1 dev
(BTW, my wrangler.toml for the env under test points to an enterprise enabled domain with image-resizing activated)
I couldn't find any mention of "image" in the project, 2.0 milestone, or issues - hth!
Regards, ptim
The text was updated successfully, but these errors were encountered: