Allow inline image optimization (show image size to know when optimization is advisable)

1 votes

Anyone that has worked with animated gifs knows that page load times can quickly become a problem, especially for those without the luxury of city broadband connections.

Published notes almost never need images larger than 500kb, and having such images in a note can make it slow to load for those in low or medium-bandwidth environments. For this plugin, parse all images in a note and replace them with smaller versions if they are bigger than 500kb.

There are probably many image APIs that could be called to accomplish this, but the scaling can possibly also be done directly in Javascript with an image object? Uploading the revised image might use https://www.amplenote.com/help/developing_amplenote_plugins#note.insertContent

Under consideration 💰bounty Suggested by: Bill Upvoted: 31 Mar, '23 Comments: 3

Comments: 3