bluegreenmagick / image-editor Goto Github PK
View Code? Open in Web Editor NEWImage Editor addon for Anki
License: Other
Image Editor addon for Anki
License: Other
Caught exception:
Traceback (most recent call last):
File "aqt/webview.py", line 526, in handler
File "/Users/Nick/Library/Application Support/Anki2/addons21/307397307/annotation.py", line 141, in check_same_image_selected
fld_txt = self.editor.note.fields[self.editor.currentField]
TypeError: list indices must be integers or slices, not NoneType
Version 2.1.56 (07fd88dd)
Python 3.9.15 Qt 6.3.2 PyQt 6.3.1
macOS Ventura 13.3.1
Image won't save when edited when making new cards, I get the "Image Saved" notification at the bottom left after clicking "Save". It will however, save edits in the reviewer/Browser.
Hi there,
Im currently exploring the add-on, might be my oversight so I apologize. Is it possible to copy/paste image from clipboard onto the image editor?
If doesnt seem to be possible on 2.1.22 window 10, im not sure if this feature is supported... of if it just because the version is old
Thanks!
Is it possible to resize images with this add-on? I can't figure out how. This would be an incredibly useful feature.
After updating Anki on my desktop from 2.1.44 to 2.1.45, the Image Editor wouldn't allow me to drag to change any of the values presented on the right side and the "blue boxes" to indicate the borders of the selected object became really oversized:
I thought the issue was with my desktop because my laptop didn't have issues despite updating, but I've tried many different things - uninstalling + deleting all addon data from the %appdata folder and reinstalling 2.1.44 again, upgrading to later versions of anki, "reinstalling" windows, deleting all addons except Image Editor, and trying different video drivers - with the same bugs appearing. Just today, I've got a new hard drive and made had a clean install of Windows 10, and the same bug continues to happen despite being a completely new installation of the OS, program, and the addon.
If anyone can figure out what's happening I'll greatly appreciate it because I use the addon religiously and I'd love to be able to edit images in my desktop rather than using a small laptop monitor.
Debug info:
Anki 2.1.48 (fb07bad3) 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-09 17:01:48
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Button Colours Good Again ['2494384865', 2021-04-06T09:57, 'None', '']
Edit Field During Review Cloze ['385888438', 2021-07-31T00:57, '6.7', mod]
Image Editor ['307397307', 2021-09-10T05:41, 'None', mod]
Image Occlusion Enhanced for Anki 21 alpha ['1374772155', 2020-04-27T21:21, 'None', '']
After upgrading to Anki 2.1.45 (on Windows 10) I get an error message when saving with the 'replace all' box ticked. The images still save so it's not a big problem. Saving a single image works without problem.
Debug info:
Anki 2.1.45 (355e66e8) 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-08-06 11:09:22
Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 538, in handler
File "aqt\editor.py", line 492, in
File "C:\Users\bbx\AppData\Roaming\Anki2\addons21\307397307\annotation.py", line 212, in
n=new_name: s.replace_all_img_src(i, n))
File "C:\Users\bbx\AppData\Roaming\Anki2\addons21\307397307\annotation.py", line 245, in replace_all_img_src
cnt = self._replace_all_img_src(orig_name, new_name)
File "C:\Users\bbx\AppData\Roaming\Anki2\addons21\307397307\annotation.py", line 281, in _replace_all_img_src
replaced_cnt += mw.col.backend.find_and_replace(
TypeError: unsupported operand type(s) for +=: 'int' and 'OpChangesWithCount'
Image Editor Error: Unmatching image src
Please report the issue in this addon's github https:github.com/bluegreenmagick/image-editor
Src1: None
Src2: http://127.0.0.1:61130/paste-120940cdc0709161f39571331cf7169b66789b38.jpg
Note field content:
Dear the creator of the Image Editor,
Thank you for your reply!
I've checked
①my current Anki version is 2.1.49 and
②updated to the newest version
but still the issue lasts.
Sorry that I don't know what you mean by SCV and view > source direction,
but I tried to collect as many info as possible.
Below is the error message and how I got it
by typing 안녕하세요! (Hello!)
hope this helps.
Hello! Thank you for the quick response about the last report.
Unfortunately the addon is giving a new, different problem: for large images which do not fit the screen, if I try to change the zoom ratio most of the times the addon just freezes
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1
Platform: Mac 12.5.1
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-09-03 10:02:30
Add-ons possibly involved: Image EditorCaught exception:
Traceback (most recent call last):
File "aqt.webview", line 568, in handler
File "aqt.editor", line 561, in
File "/Users/Nick/Library/Application Support/Anki2/addons21/307397307/annotation.py", line 218, in
n=new_name: s.replace_all_img_src(i, n))
File "/Users/Nick/Library/Application Support/Anki2/addons21/307397307/annotation.py", line 254, in replace_all_img_src
cnt = self._replace_all_img_src(orig_name, new_name)
File "/Users/Nick/Library/Application Support/Anki2/addons21/307397307/annotation.py", line 291, in _replace_all_img_src
res = mw.col.find_and_replace(
File "anki.collection", line 688, in find_and_replace
File "anki._backend.generated", line 1510, in find_and_replace
File "anki._backend", line 146, in _run_command
anki.errors.InvalidInput:regex parse error:
(?i)(?P<img[^>]* src=)(?:"Dermatopathology\ (2018)\ 0025-00.jpg")|(?:'Dermatopathology\ (2018)\ 0025-00.jpg')(?P[^>]*>)
^^
error: unrecognized escape sequence
Version 2.1.62 (bf05fae9)
Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
MacBook Pro
13-inch, M1, 2020
macOS Ventura Version 13.2.1
No option to edit the image.
Is it possible to pre-set the shape color and opacity? I would save a lot of time with this possibility. Thanks!
When I try to use the image editor option on anki for the images that I have added on some cards I face this problem ( I have attached an image showing the error that I get ). On the other hand, when I use the image editor option for images already existing on the pre-made decks (images not added by me) it works as it supposed to. I would really appreciate any help and thank you so much!
Ps: whether I deleted the original image that I already attached or not, I still face the exact same problem!
Im not sure why, but when I uploaded a picture to anki and tried editing it, it gives an error message:
**Image Editor Error: Unmatching image src
Please report the issue in this addon's github https:github.com/bluegreenmagick/image-editor
Src1: http://127.0.0.1:52832/prokaryote%20cell.png
Src2: http://127.0.0.1:52832/prokaryote cell.png
Note field content:
I have a lot of snips from pdfs of my textbooks. I would love the ability to quickly highlight some texts as I review cards. However, in order to highlight, I have to create a shape, change color, change opacity, etc so it takes a lot of extra time and discourages me from using the add-on.
Image Editor Error: Unmatching image src
Please report the issue in this addon's github https:github.com/bluegreenmagick/image-editor
Src1:
Src2:
Note field content:
Hello, I am getting the following error, any idea how to solve?
Please report the issue in this addon's github https:github.com/bluegreenmagick/image-editor
Src1: http://<redacted>/Screen%20Shot%202020-11-13%20at%203.51.41%20PM.png
Src2: http://<redacted>/Screen Shot 2020-11-13 at 3.51.41 PM.png
Note field content: <img src="Screen Shot 2020-11-13 at 3.51.41 PM.png" class="" style="height: 920px; width: 1546px;">
Version 2.1.53 (f6ecddef)
Python 3.9.7 Qt 6.3.0 PyQt 6.3.0
Windows 10
If a field contains 2+ images and I use the addon to edit one of them, after clicking on 'Save' the following occurs:
So one image gets duplicated (1 unedited + 1 edited) and another gets lost.
This happens even if there are line breaks or even text to separate them.
No problem occurs if the field contains only 1 image or if I edit the last (rightmost/most bottom) one.
Your add-on is one of my absolute favorites! So useful...I also use "Resize images in editor" which allows drag and drop resizing of images in the editor and unfortunately, the two add-ons are not compatible.
Do you have any insights re what might be going on. I reached out to the author of that add-on but he/she said they didn't have time to figure it out currently.
Resize images in editor - https://ankiweb.net/shared/info/1103084694
Regardless, thank you so much for your contribution to the Anki community!
2.1.45 alpha changed a bunch of the editor and that's likely to stay. Here's the error I got:
Image Editor Error: Unmatching image src
Please report the issue in this addon's github https:github.com/bluegreenmagick/image-editor
Src1: None
Src2: http://127.0.0.1:56762/paste-5f2b27f35d9467e0b31b4559edecf5aefa9b81d1.jpg
Note field content:
Error message when attempting to edit photo:
Image Editor Error: Unmatching image src
Please report the issue in this addon's github https:github.com/bluegreenmagick/image-editor
Src1: None
Src2: http://127.0.0.1:58140/paste-3676492005880.jpg
Note field content:
Just enabled it in Anki 2.1.37 today. I previously pasted an image into a field in card-edit mode. Then I enabled the add-on. Then in a later card-edit when I right-click on the image and choose Edit Image, I get a new Image Annotation panel that shows only black or dark gray, with menu titles that are not responsive (the titles highlight but no commands drop down), with only the buttons at the bottom responsive -- so I can exit by clicking the Discard button.
Would love to have this working -- will provide any help that I can.
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.