factorio-prints icon indicating copy to clipboard operation
factorio-prints copied to clipboard

Error: Please use a direct link to an image like https://imgur.com/{id} or https://i.imgur.com/{id}.png

Open cellularmitosis opened this issue 1 year ago • 2 comments

Not sure what I'm doing wrong, but I keep getting this error, despite using an imgur URL (https://imgur.com/a/UbFrF8Z, or https://i.imgur.com/1QyjcMF.jpg)

cellularmitosis avatar Nov 06 '24 09:11 cellularmitosis

Parsing issue, you can bypass by removing the preceding 'i' and '.png' from your link if you don't want to wait for the pr to be merged. Interesting though, the error says .png but imgur supports more than png. Maybe the regex should take this into consideration..... It looks like imgur handles the redirect for that itself so it actually doesn't matter. For example, https://imgur.com/1QyjcMF.png, https://imgur.com/1QyjcMF, and https://imgur.com/1QyjcMF.jpg

All resolve to the same resource.

There I just changed the PR to accept all imgur extension types

dazemc avatar Nov 08 '24 11:11 dazemc

@dazemc fixed the issue in the Create page. It's still a problem in the Edit page, so I'll leave this issue open for now.

FactorioBlueprints avatar Nov 12 '24 14:11 FactorioBlueprints