xryul / obsidian-image-converter Goto Github PK
View Code? Open in Web Editor NEW⚡️ Convert and compress images from one format to another by drag'n'dropping or pasting files into the note.
License: MIT License
⚡️ Convert and compress images from one format to another by drag'n'dropping or pasting files into the note.
License: MIT License
Could you add a functionality to do that?
It would be also a nice feature to input the resizing on percentage units by inputing a number followed with the percentage symbol (%) to perform a relative size resize.
Thanks for the nice plugin !
On obsidian version 15.3/
Added support for embedded .avif files.
Hi,
Is there a way to include the subfolder in the name of the file for compatibility purposes? For examples, if I ask to put the file in the "images" subfolder, the file is stored there but the Markdown does not include the subfolder name. So if I open the file in a different app, the contnt is missing.
Thanks,
L
Resizing image deletes any other links to images in the same line. There should be an easy way to fix it
Plugin version 1.1.3
If the image file names contains special characters like german umlauts like "Bäume.jpg" and you create a link to the image e.g. "[[Bäume.jpg]]" resizeing the image with dragging the edges replace the image link with "[[B%C3%A4ume.jpg]]" and you get an error message like "B%C3%A4ume.jpg is not created yet".
Thank you for creating the helpfull plugin.
Hi, I have a some problem when I sync my note. The image converter plugin always auto image attachments files. It will mix the sync file like png and jpg files.
So could you add a function that it can switch to auto image converter.
Hi
I use the borders to scale the image in the page, it works initially but after that it resets back to the original size. I am not why that is the case.
I use it on Win 11, Obsidian 1.4.16
When using auto rename
, the generated file name has a suffix which is supposed to have the format YYYYMMDDHHMMSS, but I got three more digits. For example, in the file name my_note-2023-10-20231021102417842.jpg
, "842" is the three extra digits. Is there a way to remove them?
Or even better: Is it possible to use regular expression to specify the format of the converted file name? Thanks a lot.
When Image Converter is used in combination with "Custom Attachment location" plugin.
It does nothing.
It doesn't matter if I paste the image or if I drag and drop it. It just doesn't do anything. The image that ends into the vault is the same file format as the original image and has the same name.
There is no error in the console.
Thanks for the great plugin!
Hi,
Is it possible to use the basename of the image when renaming instead of using the name of the file? So if I paste (or drag and drop) this file
my_very_long_name.png
I would like it to be renamed as
my_very_long_name.webp
Thanks,
L
that would be so useful
Your plugin is great, sometimes I insert reference images from my mobile and they take up a lot of space. This is very practical.
It would be possible to do something similar with videos? (using ffmpeg for example)
Hi, thank you so much for this wonderful plugin - it lets me feel much easier when adding images to my vault because I don't have to worry about file sizes too much thanks to it!
One thing I noticed is that Image Converter also operates on PDF thumbnails, which I think is unexpected.
Per title. Have just installed and playing around but I noticed that the resizes are only temporary and are not saving the resize anywhere. Leaving the note and coming back in resets the image. Is that intended?
At the moment, if I share an image to an Obisian note using the "share" option in a given program, like the Android gallery app, the Obsidian Image Converter does not convert the image automatically. This would be useful to me.#
Thanks!
plugin doesn't load on my android app (v.1.4.6)..
i hope it will be fixed soon..
thankyou for building this amazing plugin..
Hey,
Congratulations to all for the great project and progress.
I would like to know when you are planning to release all the latest advances in development.
I see lots of new additions to the code that are pending release.
Thank you again!
Settings > Non-destructive > Custom Size
Checkbox: Set Obsidians display width (e. g. [image.jpg|400]) to the width of the image file.
btw: Thank you very much for this very helpful plugin!
If I select "Open in new window" for a given note, this plugin doesn't convert any images pasted into that window. Same is true of any tabs in that same separate window.
it's very nice ,it save my time,it save my life!
thank you very much.
I would love an option for this to work with animated images as well.
I.E. for a .gif to convert to .webp
That said, thank you for the plugin.
Hello,
A very simple bug, the renamed filename has URI encode at the notification on the top right.
It can be noticed, the original filename has a space
, and the renamed filename has %20
.
The final filename is correctly set with the proper space
, but the notification has this small error.
Regards,
Juan Pedro
PD: Great plugin.
Plugin version: 1.1.4
Obsidian version: 1.4.14
Edition Windows 11 Pro
Version 22H2
OS build 22621.2283
Experience Windows Feature Experience Pack 1000.22662.1000.0
I'm making a pintrest board of some sort in canvas and tried to use the plugin there. When first trying in a normal note it converted into .webp fine but when i copied a image from google and pasted it directly into a canvas it was still a .png.
When using auto rename
, the timestamp of the pasted image is always set to UTC time, regardless the actual timezone of the computer. In my case (UTC + 2), there is always an offset of two hours.
I set up the system time using the following command in order to cope with dual boot (Ubuntu 22 and Windows 10):
timedatectl set-local-rtc 1
BTW, the timestamp of another plugin obsidian-paste-image-rename works properly.
I have custom css tags for my images such as:
img[alt*="center"] {
display: block;
margin-left: auto;
margin-right: auto;
}
If I apply them to an image ([image.png|center]
) and then resize with the image-converter resizing tool, they get removed. See the attached clip:
A temporary workaround is to first resize and then center.
I just installed this plugin, and finally, it looked like Obsidian has a simple way to resize images. But at least on my Windows machine, I have some problems with it.
My settings are below. Any advice?
I hope that when an image is pasted, a window can pop up for people to make a choice, as people's requirements are not always the same. If this can be achieved, I would both know that I need to perform an operation on the image to avoid accidental actions and have the option to choose how to handle the image differently.
Feature request:
It would be great to add the possibility of converting existing images in the vault and replacing the links with the proper file name in the notes.
The converter works perfectly; however, a user's vault can already have a huge size due to existing image files stored in less effective formats like .png. It is relatively easy to convert all image files with a script; however, all notes that refer to the converted image need to be updated as well.
Thank you for this great plugin!
When I paste in any more than 2 large .HEIC images at one time, they do not get converted to the format selected.
When an image link has a path like:
![[../assets/where which.png]]
or
![[../assets/where which.png|300]]
etc. ,
on resizing by dragging the edge of the image, or even when using Shift + Scrollwheel, the link (number part) doesnt get changed to reflect the new sizes.
But when using just the name of the image, it works fine, like:
![[where which.png]]
or
![[where which.png|300]]
etc.
This issue does not exist when copy pasting an image into a note as the name in the link will just have the image's filename, but when manually entering a link with a chord like: ![[whe<Enter>
, it gets changed to ![[../assets/where which.png]]
with an entire filepath, by default, forcing me to manually remove the path so that resizing works.
Would like to be able to disable the plugin in reading view to not accidentally resize images.
As the title states, do you think it would be possible to add batch converting when several images are draged at the same time into a obsidian note?
Thank you for your project, amazing job!
Please add:
Hello,
Great plugin. Thank you for refreshing the previous plugin by musug.
I would like to propose a feature, where the images have a maximum image size (horizontal) of X. In a non-destructive way.
My use case:
I tend to copy and paste lots of images into my Obsidian.
I don't want to reduce the size of the images.
But I don't want the images to take all the note space.
My proposal:
Instead of having to resize (non-destructive) each image individually, the plugin could check the image size and if it's bigger than X, apply an image size.
Using ![[Pasted image 20230924161352.jpg|1000]]
the |
.
Like "Image resize mode", but non-destructive.
Thank you for your consideration.
On mac os, when the mouse slides over an image, a window to adjust the image size will automatically open, which greatly affects the reading experience.It seems to be due to conflict with image tookit https://github.com/sissilab/obsidian-image-toolkit
example
original
! [[Drawing 2024-01-18 13.27.33.excalidraw]]
Complete the resizing
! [[Drawing 2024-01-18 13.27.33.excalidraw|200]]
https://i.imgur.com/xFQHP1U.jpg
I tried to compress the image on the canvas but for some reason it doesn’t find the images, what am I doing wrong?
First of all, thanks for this amazing plugin.
Thanks to the compression, my images are now only a third its size.
And being able to specify a default size is also something that I greatly appreciate (its how I found this plugin at first :D).
Anyway, there is a small inconvenience.
After pasting an image the cursor is now behind the image link.
Which means I have to move my cursor again to the front to continue writing.
Nothing big, but it would improve my quality of life a little bit, if it were possible to fix that. : )
Thanks for your work
Video to demonstrate the inconvenience:
See cloudy9101/obsidian-image-inserter#24 . Basically, image-converter causes to select the hovered image instantly and without click
Because I set the attachment to be in the assets folder under the subfolder that uses the attachment
Convenient management
Hopefully, you can change the image format and still put it where it belongs
Allow user to specify the format used to rename it.
Most of the time Shift + Scollwheel for page sidescrolling.
The difficulty occurs when images are stretched along the horizontal axis, so if u want to sidescroll u need to hover with the mouse over an empty canvas space.
Can be tricky not to hit the scale-shift-scroll event when there are some images stacked.
If its possible a toggle between Alt and Shift would be great!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.