question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

šŸ› BUG: Image resizing is not supported by `wrangler2 dev`

See original GitHub issue

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 with wrangler1 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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
petebacondarwincommented, Mar 25, 2022

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

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:

"cf-bgj": "imgq:0,h2pri",
"cf-cache-status": "HIT",
"cf-resized": "internal=ok/m q=0 n=58 c=10 v=2022.3.3 l=104",

In the case where the resizing did not happen we only get:

"cf-cache-status": "MISS",

So I think you could use that as a marker for whether image resizing is turned on.

1reaction
threepointonecommented, Mar 2, 2022

although wrangler.toml has workers_dev = false, hitting B opened up https://wrangler2-repro-534.my-org-com.workers.dev/ - not sure if thatā€™s expected - I donā€™t really use that functionality

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

feat: implement wrangler dev support for zoned workers #544
feat: implement wrangler dev support for zoned workers #544 ... on Mar 27. šŸ› BUG: Image resizing is not supported by wrangler2 dev...
Read more >
Troubleshoot Image Resizing problems - Cloudflare Support
Follow these steps to troubleshoot the most common issues with Image Resizing. Requests without resizing enabled Error responses from...
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Anyā€‘toā€‘PostScript filter aacgain 1.8 AACā€‘supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >
XdD - River Thames Conditions
Frontal squama image, Molloy bros reviews, Orion prelude wallpaper, October 23 1967 zodiac? ... Chrono cross iso not working, Lugo sabadell en directo?...
Read more >
G4G4N (@GaganSuie) / Twitter
5ļøāƒ£/6ļøāƒ£ Take advantage of code review, whether it's peer review or feedback from more experienced developers. This can help you identify mistakes andĀ ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found