98 39
Contact Author Sign in to rate

ImageResizer

0.01MB. Updated 2022-07-15.
The author has shared 3 other item(s).

Description

For any one who is encountering the repetitive updating prompts, please follow the steps in https://github.com/mankinence/ImageResizer/issues/23#issuecomment-855164875 to fix it. Introduction ImageResizer is a simple Anki add-on used to resize images. So images that are too big or too small to be used in reviewing are not a problem anymore. Before resizing After resizing Usage Install ImageResizer, and that's it! Images will be automatically resized on pasting or drag-and-dropping. Settings You can change the shortcut and the size of the image etc. from Tools --> Image Resizer The Settings window will pop up. 1. Check Resize on pasting so that images will be resized automatically. Uncheck it if you only want images to be resized when pressing the shortcut. 2. Check Disable upscaling if you only want to make images smaller. 3. Smooth transformation may produce a higher quality image, but may also take a longer time than the fast transformation. Choose the one that suits you. 4. You can also set the shortcut to paste the resized images, it's Ctrl + Shift + v by default. 5. You can set the width or height of the resized image. If you select scale to width and keep ratio, ImageResizer will resize the image according to the width you specified, and the height value here will be ignored. The same goes to scale to height and keep ratio. Notice that it will always keep the original image's ratio, either by width or height. There's also a third option, scale to the maximum dimension and keep ratio, if this option is chosen, ImageResizer will scale to width if width > height, and will scale to height if height > width, this option is useful when the ratio of height/width of the image is extreme. Improvement or bug report If you have any issues or requests, please visit the new GitHub repo to submit a pull request or open an issue. UPDATE: the repo has a new maintainer and location on GitHub! If you don't know how to use GitHub, you can also send an email to mycityofsky@gmail.com, I will try my best to help you solve the problem.

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:

1214357311

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools->Add-ons menu item, then click on Get Add-ons and paste in the code.

All Anki 2.1.x Add-Ons Contact Author

Reviews

on 1676377964
I had an issue with pasting (it wouldn't let me!) when I updated to Anki version 2.1.57
I deleted all my add-ons one by one and checked each time if I could paste. I only regained the ability to paste when I deleted this add-on!

Just to help you guys so it doesn't happen to you!
on 1672842517
I'm using Anki version ⁨2.1.55
ImageResizer works perfectly on scaling images down, but not on scaling images up. Combining it with the maximum images height add-on allows me to work with it. I don't know what's wrong with my Anki, but it's been weird since I updated my OS to Monterey 12.6.2, so it's possible that the issues with the add-on are related to that. I'm really not sure what's going on, but image sizes (and lost ability to expand the window to see what it looks like) are all messed up. I've spent 4 hours trying to troubleshoot and I'm ready to give up.
on 1666479119
Doesn't seem to work at all on Anki ⁨2.1.54. The Ctrl-Shift-F shortcut does nothing (I checked the options menu and this is the default) and pasted images don't get resized even though I had it configured to automatically resize them.
on 1666352494
Just neede to uninstall and reinstall after upgrading Anki version (collapsed any copy and paste as people stated)
on 1661876515
Unable to paste image or text with this add-on enabled on Version ⁨2.1.54
on 1660253456
All seems to be working as expected on 2.1.54:
Resize on paste / Resize on paste with hotkey / Pasting plain text content - all good.
Thx.
on 1659561441
You cannot copy and paste text with this add-on with the 2.5+ versions of anki. You do not want this add-on.
on 1659191708
Completely broke the copy/paste function as other users have stated; additionally can't open the config menu to fix it myself when I try to open it from the addon window.
on 1655830598
Unfortunately, disable upscaling doesn't seem to be working in 2.1.49. That was the main thing I was going to use this for.
on 1655405240
Why did you decide to make ctrl + shift + v the default shortcut for pasting the resized images?
It broke the original ctrl+shift+v, which is supposed to paste unformatted text. It took me very long to figure out that this plugin is the reason why that shortcut was broken.
Please change that in the next update, so people don't get confused, why their original shortcuts don't work anymore
on 1651409675
This add on broke my shortcut ctrl + shift + v
on 1649745705
Great addon! People who complain about the quality are just too incompetent to configure it. You can control the resolution and the quality how you like it in the settings. And it is quite easy and self-explaining. You can define maximum resolutions for width and height and whether you want smoothing. If it's too pixelated and too small just activate smoothing and increase the resolution. Simple.

I ran into a problem and maybe others have it too, here's how to solve it:

The addon didn't work for me after upgrading from Anki 2.1.15 to 2.1.49 on Windows 10. Addon was updated too.
On pasting Anki threw an error message and the pasting didn't work (not even for plain text):

Debuginformationen:
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-10-30 18:03:51

Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 41, in cmd
File "aqt\webview.py", line 142, in _onCmd
File "aqt\webview.py", line 595, in _onBridgeCmd
File "aqt\editor.py", line 438, in onBridgeCmd
File "aqt\editor.py", line 882, in onPaste
File "aqt\editor.py", line 1137, in onPaste
File "aqt\editor.py", line 1131, in _onPaste
File "decorator.py", line 232, in fun
File "anki\hooks.py", line 89, in decorator_wrapper
File "anki\hooks.py", line 86, in repl
TypeError: _processMime_around() got multiple values for argument '_old'

After seaching around in the GitHub bugtracker of the addon I discovered that the addon upgrade doesn't seem to have worked correctly. I disabled the addon and deleted it (without disabling it couldn't be uninstalled, Anki threw another error message). After that I installed it again. Now it works.

I also have the problem that I can't reach the config dialogue of the addon from the addon list in Anki, the addon window doesn't seem to allow it to get the focus. I have to close the window of the addon list first. You can also reach the config from the menu, that works all the time.
on 1648736301
after pasting my pictures, their resolution is quite bad so I cannon read certain (important) details).... already tried to change settings in various ways,
on 1648290027
Works well and is very useful. I use "smooth resizing" which works well to maintain the quality of smaller images.
on 1646922497
The addon breaks the ability to copy and paste text and images with Anki 2.1.50. Please fix it if you can, thank you
on 1642049373
I lose resolution on my desktop with this addon, and I have tried changing the settings around but nothing works. Sadly, taking screenshots of images on my phone and adding them to my card while reviewing allows me to have better quality images.
on 1634795519
How do I restore my original images?
or can I change the dimensions of the images after creating the cards?
on 1628132808
Great addon, just installed it for the first time on Anki ⁨2.1.44 and it's working.
on 1627124080
This add-ons works well but with few restrictions like if there is deterioration in quality of image after pasting; THEN copy the image from source and then paste with the shortcut of this add-on, this solves the problem. For those who are having problem even after re-installing, try after restarting the PC, this may work, after installing restart the anki.

Even after doing all stuff the add-on doesn't work then there are ALTERNATIVE add-ons like Image editor and Image style editor.
on 1626742911
It works but it butchers the image quality. Tried messing around the settings but nothing helped
on 1625926529
It's a great addon. For the people that say it's not working try to delete and reinstall the addon. I had that problem I reinstalled it and now it works. Thanks for the addon
on 1625478760
At first the addon didn't work with Anki version 2.1.44. But I tried this: I started Anki holding the shift key and I deinstalled the ImageResizer. After restarting Anki again I re-installed ImageResizer and now everything works perfectly fine.

The addon is perfect :-)
on 1625049903
One of the best add ons ever... Until it stopped working with 2.1.44 anki update on mac. Please help!!!!
on 1624695728
It doesn't work.
on 1623772620
Stopped working recently.
on 1623710065
doesn't work, at all!
on 1623693518
Messes up image quality (very poor).
on 1623666853
This can save me up to 100MB of storage just by resizing images. But is there any options to mass resizing?
on 1622686851
Works wonderfully. Thanks
on 1621314803
not automatically resize when drag-and-dropping pictiures
on 1620721889
A great idea to optimize space/size but...
it disables the CTRL-Shift-V function to copy without format in anki
hope it gets fixed
on 1619031833
Causes Anki to not be able to copy and paste with this add-on enabled on
Version ⁨2.1.37 (6d596c8f)⁩
Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
on 1618159752
Shortcut doesnt work
on 1617286603
Should be implemented in Anki
Must have add-on
on 1616077640
doesn't work at all wtf
on 1615359631
Does what it is supposed to …

However, the default Shortcut is already taken by Anki and does not work for ImageResizer (at least not for me); I changed it to 'Alt+Shift+Y'.

This is easily pressed with one hand and works fine (again, at least for me).
on 1614787273
get an error message when pasting. i love this add on before though!
on 1614469354
Broke Anki for me today. Was not able to paste images from lecture into my cards. Had to slowly disable all add ons to narrow it down to this one.
on 1614310277
这个扩展会改变原图片的像素/大小,所以会降低图片的清晰度,所以我还是决定选用下面这个
https://ankiweb.net/shared/info/229181581
on 1611951910
Thanks for this add-on, but I was also wondering if it also supported gifs resizing?
on 1610104383
I can not paste while using this add-on. Please fix!
on 1610040315
To get rid of the repeated update notifications uninstall the addon and then reinstall it.
on 1609776190
good
on 1609677684
Very useful. So easy that it feels like built in.
on 1609133703
Hoping to see an option to resize without keeping aspect ratio. :D
on 1609090649
Notification to update pops up--- every. single. day. No matter how many times I update it, it happens again the next day. I finally got fed up today and attempted to uninstall. I get an error informing me that it can't be uninstalled. I'm no programmer, but I'd say this thing doesn't work correctly. Save yourself a headache and don't install.
on 1608485111
good
on 1607946748
Anki doesn't allow me to paste anything when using this add-on. Took me some time to figure out that it was this add-on.
The issue is also relevant for others: https://www.reddit.com/r/Anki/comments/kawh77/cant_copy_paste_error_message/

Can you please fix it? I can change my rating after. Thanks.

Error message:
Anki 2.1.36 (c505894b) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-12-13 17:19:32

Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 35, in cmd
File "aqt\webview.py", line 124, in _onCmd
File "aqt\webview.py", line 569, in _onBridgeCmd
File "aqt\editor.py", line 442, in onBridgeCmd
File "aqt\editor.py", line 949, in onPaste
File "aqt\editor.py", line 1067, in onPaste
File "aqt\editor.py", line 1061, in _onPaste
File "<decorator-gen-8>", line 2, in _processMime
File "anki\hooks.py", line 89, in decorator_wrapper
File "anki\hooks.py", line 86, in repl
TypeError: _processMime_around() got multiple values for argument '_old'
on 1607682600
nao permite copiar e colar texto para novos cards
on 1607160266
Great
on 1606342707
Brilliant add on. Is there a way of resizing gif files?
on 1605305057
Works as expected. Very handy!
on 1604770031
Awesome!
on 1600007219
Works perfectly
on 1599345943
This is useful.
on 1598141088
Great.
on 1598015418
Does the job its designed for. 10/10
on 1596824704
Great add-on!
on 1594102241
Simple and effective to use!
on 1589173124
Amazing!
on 1588650285
güzel
on 1587775344
very helpful
on 1584882041
very useful for viewing on mobile!
on 1577104308
it works now thank you!
on 1576409645
There is this bug with high dpi screen https://imgur.com/tElF3ZD
Comment from author
Thanks for submitting this. I just took over maintenance of the add-on and I'll look into it!

What operating system is this? What version of Anki are you using? Also, what exactly is the bug you're referring to? Without knowing your settings or what you expected to see, I'm not sure how to help. If you see this and are still interested in a fix, please go to the GitHub and comment on the Issue I've opened up for this.
on 1575322589
Great job, thank you so much ! It's fast and easy !!

Would it some possibility to make the image's name "human understeable" ? For instance "word".jpg, from our field...

Thanks again !
Comment from author
I'm happy to hear it's working for you! I just took over maintenance of the add-on because the creator didn't have the time. I'll look into the image naming and see what I can do
on 1573651975
Thanks!
on 1570042781
Great addon.

Would it be possible though to grab the (new) filename from a field?

Right now it's just a chaotic hash.

Also, ever since Anki 2.1 (and long ago on Droid/iOS) WEBP has been supported, which offers vastly superior compression both lossy over JPEG and lossless over PNG.
Comment from author
Happy to hear you enjoy it! I just took over maintenance of the add-on because the create didn't have the time. I'll look into the naming and look into the compression. Thanks for the feedback!
on 1568592941
very useful app
on 1563475943
amazing this is just what i needed, a lot of the images i add to my cards are too large this addon makes it effortless to fix that. Thank you to the developers! Used Anki for the USMLE step1 now i'm studying for step2 keep up the good work guys!
on 1563038548
Essential to keep the backup manageable.
on 1563023981
thank you very much. Another option is you directly add a folder action ( on Macos) to the media container folder in library, which function is to resize all types of picture when a new picture is added.
on 1562870368
Unfortunately, pasting does not work anymore. In former times, it used to work like a charm.

EDIT: uninstalled and reinstalled the addon. working again.

EDIT2: issue reliably reappears after some hours.
on 1561243605
I have followed all instructions and messed with the settings and cannot get this add-on to do anything. No matter what the settings are, no matter whether I drag an image into the card, paste it in with regular paste shortcut, or with their keyboard shortcut, the images are always still the same. If I'm doing something wrong somehow I would love to change my rating, but since I've gotten this I haven't been able to use it and the images are still huge.
on 1560357925
Don't want to downvote this add-on since it might just be a problem I'm having but I can't seem to paste the resized image not matter how many times I hold down Ctrl+Shift+V. I've changed the shortcut keys multiple times and still nothing seems to work. Anyone else having this problem?

Edit: Never mind, solved the problem and it works fine now.
on 1560069031
It removes animation from gifs. Can you please develop one where gifs are resized without killing the animation
on 1559961288
It works really well. Thanks a lot!
on 1559221585
Not good for 4K displays. When I paste a picture, it becomes blurry (smooth resize setting) or pixelated (fast resize setting). However, when I changed my display settings to full HD, it was much less noticeable. But for 4K it turns images blurry at best, illegible at worst.
on 1559034244
Cannot use it !
on 1555476927
Is it possible to get this to work with GIFs?

Otherwise great add-on
on 1555228992
Works great for big pictures! Although note that you should turn this off when pasting pictures with words in it.
on 1555106848
Thanks.
on 1554272014
work like a charm!
on 1553443311
Thanks
on 1550751901
It is very helpful
on 1548863705
works, just remember to adjust the settings if you have issues with resolution
on 1548536756
Simple and useful
on 1547827982
awesome addon - def would like a quicker way to go about changing resizing settings, or at least when I change it, make it so you can hit enter instead of having to click Ok with the mouse. My dream ask is once I paste it in, I can scale it within the answer/ extra box to I can make it work with existing images in the box.
on 1546967994
Makes pictures blurry to a point where text is unreadable. It works for pictures without text but it would be great if at least some quality could be retained.
on 1545237923
Love this addon. It would be great if you could have a shortcut macro to access the addon easier rather than having to manually click tools-> image resizer
on 1540026636
After I install this, when I paste words, it becomes an picture that cannot be edited.
on 1537755519
Blurs picture when resized, even if you resize it smaller than the original.
on 1533826144
Awesome! Easy to use.
on 1532539129
perfect
on 1531815529
Flawless and really useful! Would love a conversion to 2.1!
on 1531788974
Hope you add it to 2.1.
on 1530528077
awesome idea
on 1529407541
great
on 1526947200
Needs 2.1 :(((((.
on 1525996800
This is what i need. Thank you
on 1520553600
Could really use this as a 2.1 add-on. o:-)
on 1516147200
Very useful, saves me a lot of time. Before, I had to load the image in GIMP, resize it there and copy it back to anki.
Definitely a feature that should be included per default!

Though, not yet perfect. One improvement would be the image quality. Sometimes, the resized or even the normal pictures get quite "JPEG-y" and have compression artefacts.
on 1516060800
Do I need a reason? It's obvious why this add-on is awesome! Now I don't have to open paint, resize the imagine I wanna import into Anki, SAVE IT, and then import it.
on 1512000000
Quick and easy. Mostly replaced my old setup (Linux - Shutter - Keybindings...)
on 1510012800
on 1505088000
on 1504396800
on 1501891200
Easy

Seems to be working great. I only wish that there was a simple way to resize images on old cards. Even a button that would resize all images on a current card would be helpful.
on 1501804800
on 1501027200
on 1500854400
on 1499904000
on 1499558400
on 1499040000
on 1498003200
on 1497916800
on 1497398400
Great tool, it can be better with some improvements

A guy told that he is not able to use with .jpg. Try this: Image Resizer>Grab the shortcut(choose anything, I choose Ctrl+J), then you try with .jpg images. It works here.
As suggestion: It would be nice a function to review all my cards and resize them.
The bad point that I perceive is that we can't go to our saved cards and copy then paste to take the resized image.
on 1496793600
Pretty Good

It works fine and is simple... but attention: it doesn't work with .JPG, at least for me (on my win 10)... maybe it's a case for future updating...
on 1495497600
on 1493251200
on 1492560000
on 1492128000
on 1488240000
on 1487203200
on 1486857600
on 1485043200
Great idea

Have been using this for several months now without any issue whatsoever. Makes it much easier to keep your media collection size at bay when adding external images.
on 1481155200
on 1475366400
works as expected!

nice stuff! Now my problem is:

when I paste a big picture it seems to reduce the quality. It seems like to me that it makes the picture smaller but it doesn't retain its pixel density. I want to be able to keep the image small, but upon review I can zoom in and out and still read the small text in the picture....


If you have any suggestions that can address my problem above: Fireaway, i'm open for anything... if you feel you can hardcode it. then Hope you can figure that one out on your next drop. Thanks!
on 1473120000
on 1466467200
Good add-on but…

…it suddenly stopped working for me: Pressing Shift+Ctrl+V doesn't do anything anymore and reinstalling doesn't help. Enabling "Automatically resize when pasting" didn't do the trick either – the image is inserted at its full size when I press Ctrl+V. No idea what's going on here…

Before that it used to work well, though, except for the fact that it doesn't work with transparent images (pngs I think) and automatically sets their background to black (instead of white – which is what I'd expect).
on 1465084800
on 1464048000
on 1462579200
on 1459987200
on 1459296000
on 1456012800
on 1453680000
Great add-on

This add-on does exactly what it says. Anki should do this (resize/scale images) by default, like the mobile app does, but it doesn't. I use Anki to study pathology so I prefer so set it to scale to a height so then all my images show up side by side at the same height and it all fits on the screen without having to scroll.