Skip to content

Releases: xRyul/obsidian-image-converter

1.1.7

23 Oct 20:41
Compare
Choose a tag to compare

New Features

  • You can now convert, compress, and resize all internal images in the current note or across your entire vault while making sure all links are updated too.
    • A few things to keep in mind:
      • This does not download externally embedded images.
      • Currently, for safety reasons, it does not support selecting the Output location.
      • Depending on your system specs, and amount of images in your vault - this might take some time to process! If you are ever stuck feel free to check status bar or the console log for the progress. Occasionally processing might stop due to files being locked (macOS), lack of file permissions, corrupted or truncated, hence console log might point us to the right direction, showing which filed caused the error.

Image 1 Image 2

image



  • Multi-drop: Many thanks @dotkt for this PR! Ability to drop multiple images at the same time. All dropped images will be converted, compressed, resized and saved in your desired location.

Improvements

  • External Links: several updates to improve the handling of external images:
    • Fixed a bug that caused external images to be clicked upon when hovered over. Hovering over images will no longer open external links, and it will no longer auto-open them if e.g. used in conjunction with Image Toolkit plugin.
    • Updated the regex for link and size detection.
    • Fixed an issue where custom sizing was applied even when it was turned off in the settings.
    • Fixed an issue which caused |size to be reapplied every time you copy pasted the same link. Now, only one |size should be displayed.
    • Fixed a bug that replaced one image link with another when using SHIFT+SCROLLWHEEL. Now, SHIFT+SCROLLWHEEL only works on one image at a time. To resize an image, hold shift + scrollwheel; to resize another image, let go of shift and hover over another image you wish to resize.
    • Made a slight update to scrollwheel-image-resizing; zoom should now try to follow the cursor.
    • Fixed a small bug where in certain cases pasting from clipboard external links would not get custom | size applied. Now, external images are parsed as HTML which are then converted into Markdown links. This allows us to handle many more external websites with edge cases.
    • When pasting external images from the clipboard, their link will be cleanedup in the clipboard before pasting.
  • Current Active Note: Small UI and accessibility changes when processing current active note e.g.: show title of the note in which images will be processed.
  • A few ms shaved off from the plugin load times. More incoming in future updates.
  • Autorename: When enabled, it should now follow users system time.

1.1.6

04 Oct 22:13
Compare
Choose a tag to compare
  • On drop/paste: Auto apply | size.

  • On drop/paste: Ability to turn off the conversion by adding new option: Same as original. When selected, it allows to keep the original image format, but still compress/resize/rename the file as needed.

  • On drop/paste: Ability to turn off compression. Allows to convert to WEBP, PNG, JPG but without compressing the file. To use, simply set: Quality to 100 to disable compression.

  • Non-destructive resize: Added ability to resize external and base64 encoded images non-destructively e.g. by dragging edge of an image or using the scrollwheel.

  • A bit of code cleanup: Changes to how additional settings appear e.g.: depending on what user selects from the dropdown.

  • Small changes to right-click-context menu which hopefully improve accessibility.

  • Added some description to Image resize mode and non-destructive resize.

  • BASE64: Fix unable to delete base64 encoded images, which were modified by the resize handle. E.g. which use

  • RIGHT-CLICK: Fix right-click-delete not deleting images from Vaults with spaces in its name.

  • Non-destructive resize: Resize by dragging edge of an image and Resize with shift+ scrollwheel now use rounded numbers

  • Improved unloading and memory allocation

  • Small changes to how images get detected on drop/paste

2 out of 3 output settings are now out of Beta. Keeping "In subfolder under current folder" still as an experimental feature, simply because I still can't figure out how to tell Obsidian to disable the their default-folder-creation-behaviour on image drops in "Settings -> Files & Links -> In subfolder under current folder".

1.1.5

25 Sep 06:06
Compare
Choose a tag to compare

New Features

Context Menu:

  • Copy as Base64 encoded image”: You can now right-click on an image to copy it with Base64 encoding. Although, resizing of Base64 encoded images is not currently supported.
    base64

  • "Delete image from vault": Added the ability to ‘Delete image from vault' via the context menu. It will remove the image from the vault, If you are in Live Preview then it will also remove its markdown link. If you are in Reading Mode, it will keep the link.
    delete
    It can also be used to delete Base64 encoded images from Live Preview:
    deletebase64

  • Context Menu Toggle: Option to disable the right-click context menu.

Improvements

  • Image Detection: Improvements to how images are detected on drop/paste.
  • Image Resizing: The right-click-resize feature now auto-updates the note with the resized image, eliminating the need to manually switch between notes.
    resizeRefresh

Bug Fixes

  • Image Renaming: Fixed an issue where images were being renamed during sync or git pull.

  • Image Resizing: Resolved a bug where right-click-resize was not resizing images that were not in the root folder.

  • Image Transparency: small fix for PNG and WEBP files with transparency. Now, images with transparency that were dropped into the note should retain their transparency.
    Transparent Imagery example

  • Renamed Image Notification: Notifications of renamed images should now correctly show the decoded filename.

1.1.4

21 Sep 23:38
Compare
Choose a tag to compare
  • fix: 🐛 bug where plugin was not loading on Mobile #1

  • fix : 🐛bug which removed anything on the same line with the image being resized e.g.: 2 images on the same line, or image inside ordered list #8

  • Add support for filenames with special characters #4

  • fix: 🐛 Now cursor will change its icon only when hovered over the edge of an image. It wont allow you to resize an image when hovering over the center of an image.

  • Small improvements to drag resize

  • Better handling of right-click context-menu. It worked fine in Reading Mode, but sometimes it failed to show up in Live Mode, now -should be fixed.

  • [beta] Added some more flexibility to select where to save converted images:

    • a) DEFAULT - Follow default obsidian attachment settings (e.g. save all types of attachments in 1 location, either in your root folder, specific folder, or right under your note)
    • b) Save image files: either in your root folder, specific folder, or right under your note (e.g. useful when you want to separate images from video and pdf etc.).

    If official Obsidian Attachments settings specifies 1 folder, but the plugin specifies completely different - this will save image in the path as defined by the plugin, but occasionally it will also create folder as defined inside "Files & Links" -> "Default location for new attachments". Thus to prevent it from happening, it is best to keep Obsidian Settings: "Default location for new attachments" at "Vault Folder" which will allow plugin to do the rest of the work.

1.1.3

23 Aug 16:53
Compare
Choose a tag to compare
  • Added ability to convert HEIC and TIF files into WEBP/JPG/PNG.

1.1.2

15 Aug 00:01
Compare
Choose a tag to compare

Added 2 new non-destructive image resize methods:

  • Resize by dragging edge of an image (similar to Notion)
  • Resize with a scrollwheel + shift

Added "Resize Image" to the right click context menu. This method resizes the original image. This allows to change image size simply by clicking on an image and defining new dimensions. This method always keeps the aspect ratio of an image. And it is possible to resize only by width or only by height.

1.1.1

12 Aug 22:08
Compare
Choose a tag to compare
  • Adds an option to "Copy Image" into clipboard via right-click context menu.

1.1.0

10 Aug 20:09
Compare
Choose a tag to compare

Ability to resize dropped images based on 6 modes:

  • Fit
  • Fill
  • Longest Side
  • Shortest Side
  • Width
  • Height

1.0.0

03 Aug 12:12
1b81c57
Compare
Choose a tag to compare

Initial release