Anki add-on: ImageResizer

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. Update 1 : Add reset and log. Feb 8, 2016 Update 2 : Now you can copy the image files and paste it without opening them. Dropping works too. svg files work now. Feb 10, 2016 Update 3 : Make the resize work on Mac. Feb 13, 2016 Update 4 : Thanks to Glutanimate , scaling without turning on PNG pasting works now. Feb 18, 2016 Update 5 : Add another scaling option: scale to the maximum dimension and keep ratio. If width > height, it will scale to width, if width < height, it will scale to height. It would be useful if the width/height ratio of the image is extremely small(or large) April 20, 2017 Update 6 : Add an option to disable upscaling for small images. June 9, 2017 Update 7 : Fix the encoding/decoding error. July 23, 2017 Update 8 : Thanks to ChrisK91 , the smooth transformation is added. Dec 17, 2017 Update 9 : support files with uppercased extensions Update 10 : A big thanks to lgaborini for porting ImageResizer to Anki2.1. Jul 25, 2018 Update 11 : Fix the encoding issue in Anki 2.1. Sep 10, 2018 Update 12 : No functional change to the add-on. It now has a new maintainer and location on GitHub . April 23, 2020 Update 13 : Support 2.1.36+. Dec 18, 2020 Update 14 : Anki with PyQt5 doesn't work with this addon on Linux, and possibily, macOS, fix it. Mar 27, 2021 Update 15 : Enable SSL. April 11, 2021 Update 16 : Support Anki 2.1.50beta March 20, 2022 Update 17 : Fix the repetitive updating prompts on Windows, but it requires uninstalling the old version and installing the new version. After installing the new version, the repetitive bug won't occur anymore. Update 18 : Support PyQt6. Jun 7, 2022 Update 19 : 1. Make pasting audio files work. 2. Change the default shortcut to Ctrl+Shift+F. Jul 15, 2022 Update 20 : Support Anki 23.10 Dec 3, 2023 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. 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. Check Disable upscaling if you only want to make images smaller. 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. You can also set the shortcut to paste the resized images, it's Ctrl + Shift + v by default. 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.

GitHub repository: mankinence/imageresizer
Repository description: An Anki add-on used to resize images
Languages: Python, Shell, Batchfile