How to optimize/downscale already attached images?


Is there a plugin or secret feature that allows to downscale or optimize (e.g. lower quality) for already attached images to reduce their size?

The goal is to optimize space used by Joplin resources and particularly images.


1 Like

You can't change the image quality/file size (in base Joplin at least) but you can change how it is displayed by using an HTML tag rather than the markdown one:
<img src=":/4d3038829ac35a048e2c67ea143c365d" width="400">
rather than

Otherwise you could always just run a batch image converter over your resources folder, so long as the names remain the same then it should work (just back it up first, it isn't something I've tried).

Hey @Daeraxa . Thanks for your reply, but I don't mean just "showing" a different size. My goal is to optimize space used by Joplin resources and images take the largest space. Do you know if after I will convert images in resources/ as per your suggestion, will it be properly synchronized to other devices? In other words, does Joplin track resource file changes?

Thats a good point. It definitely tracks changes if you open the resource from the note but I don't know if it will create a new sync if you just change the file sizes en masse.
Depending on how essential it is, you could manually replace the resources directory on your sync target with your new, smaller one from your profile directory then it should work as they should be identical- with a massive caveat that you do so at your own risk after backing up as much as you can.

Hello there, here's definitely not a secret but recent plugin that lets you replace your resources including images.

It works like that:

  • You install the plugin
  • You write down the path of the folder in the plugin settings where you will save your new reduced in size files
  • You copy your Joplin files in resource directory to the path you wrote in the settings
  • You use some quality/size reducing tool to all file in that copied folder (could be done with images in bulk via RawTherapee or lightroom)
  • You click "Replace resources" from tool menu in Joplin
  • Done, your new files are now in Joplin and will be synced with the cloud.

The advantages of this method:

  • Works in bulk of any size
  • Works with any file format
  • Once setup you can run it multiple times: periodically (every sync) or until you get the result you need
  • There's less risk messing data due to user error

@graphit0 Thanks! Looks very interesting and kind of what I need!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.