Coder Social home page Coder Social logo

image-editor's People

Contributors

bluegreenmagick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

image-editor's Issues

Getting error on 2.1.41beta3

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

Not saving edits

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.

Copy/Paste from clipboard

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!

Resize images?

Is it possible to resize images with this add-on? I can't figure out how. This would be an incredibly useful feature.

2.1.48: Cannot drag to change values + massive blue border boxes

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:
ImageEditor blueborder

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', '']

Error message in 2.1.45 on save and replace all

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'

The huge blue square that appears after writing a post

Hello, I am a user who really enjoys using this add-on.

When I write a single stroke to write the alphabet, a huge blue square appears (a
20231227160620
ttached photo), making it difficult to write continuously. Is there a way to get rid of that editing blue box?

Crash Bug Report

  1. Clicked an image to edit --> editor interface popped opens
  2. Then, I created a colored box somewhere onto the image using the tools on the sidebar.
  3. Then, I click command + C (copying on OSX) to copy the box (with intention to re-paste onto the same image).
  4. Anki crashes instantly upon attempting to copy.

Regarding the error in Korean

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.

Thanks for your help :)

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 "C:\Users\Ted\AppData\Roaming\Anki2\addons21\307397307\annotation.py", line 131, in on_bridge_cmd
self.load_img()
File "C:\Users\Ted\AppData\Roaming\Anki2\addons21\307397307\annotation.py", line 160, in load_img
img_data = json.dumps(img_path.read_text())
File "pathlib.py", line 1236, in read_text
UnicodeDecodeError: 'cp949' codec can't decode byte 0xec in position 484: illegal multibyte sequence

image
image
image
image

Another problem (zoom + addon freezes)

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

2.1.54Qt5 bug - not working

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 Editor⁩

Caught 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

No option to edit the image on 2.1.62

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.

pre-set

Is it possible to pre-set the shape color and opacity? I would save a lot of time with this possibility. Thanks!

Image editor not working

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!
Screenshot 2020-12-22 174004

Is there any way to 'set' settings?

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

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:

Image Editor Error: Unmatching image src

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;">

2.1.53 qt6 bug deletes adjacent image

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:

  • the image does not get edited
  • but: the very next image is replaced by the edited version of the first one.

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.

E.g.
image
image
image

Issues with "Resize images in editor"

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!

Editing is not saved

hey there! I'm using anki 2.1.45 and when I edit the image and click save it is not saving the changes!

Please help!

CleanShot 2021-12-20AddAnki at 11 40 53

it's updated to the latest version for this add on

here is a list of add ons (maybe some interference?

CleanShot 2021-12-20CleanShotCleanShot at 12 10 01

Error

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:

thrombocytopenia is a contraindication to expectant management in addition to refractory hypertensionnon-reassuring fetal surveillance, 2x normal LFTseclampsiaCNS sx, oliguria




error for all images, running 2.1.38

mage Editor Error: Unmatching image src

Please report the issue in this addon's github https:github.com/bluegreenmagick/image-editor

Src1: None
Src2: paste-35b4e786512e352a7eaaea304c49b88f50f66714.png
Note field content:


Image editor not functional but no error

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.