Using a canvas instead of <img>

Posts: 4 · Views: 59
  • 15439

    Hi, Sometimes ago I asked for a feature to allow firefox to download images in a saner way. It got rejected with good reason. I have a workaround that might help add new features, help with duplicate images and fix my problem with firefox being a dumb browser.

    If you use a canvas to display images you can allow for downloading its content directly, solving my initial problem, you can also add/move features like rotate, HSL manipulation, cropping, ... to the download page later.

  • 15441

    What kind of problem do you expect that to solve? I've never had any trouble with image downloads in firefox.

    edit: By the way we're kind of already using that for the cropping feature. If you check the sidebar you'll find an item "Crop & Scale". This feature uses an invisible canvas to do the resizing and scaling. If you enter the original wallpaper size it might just do exactly what you're hoping for.

    Last updated
  • 15442

    Firefox redownloads images when you 'download' them from the context menu. It's been a bug since 2001 or something. They just don't care enough to fix it. Let's add a javascript pdf reader instead and make sure that we still support gopher because users need that. /rant

    Well, the whole point was to use less bandwidth and do things with less clicks, I don't think that can actually help much but I'll give it a try. Thanks.

  • 15444

    I remember now, we've been there before. This is not getting "fixed" because it's not a bug. Caching strategies vary but FF decided that there was no point in stashing massive pictures just in case you'll need them again and they didn't change on the server. In order to verify the latter the browser will have to send a request anyway. Whether or not you agree with that decision is a different matter but it's certainly not due to laziness.

Message