Open champeau87 opened 7 years ago
HI champeau87,
I tried Win10 just now and it worked for me. Could you follow the steps shown in this video and see if it works?
Note that it doesn't work if you use Attatch pictures/audio/video(F3)
on the toolbar, I haven't got time to make it work in this way. It works on drag/drop, copy/paste.
If it still doesn't work, follow these steps to obtain the log file and show it in here(Yes, ImageResizer has its own log file!).
ImageResizer
, open it.imageResizer.log
, open it and paste the contents here.Hi searene, image resizer does not work correctly on my setup: Windows 10 Anki 2.1.8
It adds and resizes the image, but it changes the image to a big black rectangle (drag&drop png file):
I followed the above instructions, heres the log dump:
2019-01-03 15:15:05,286 - 1214357311 - checkConfigAndLoad:93 - DEBUG - loading config.pickle... 2019-01-03 15:15:05,286 - 1214357311 - checkConfigAndLoad:96 - DEBUG - loaded config: {'isUpScalingDisabled': True, 'auto': True, 'keys': {'Ctrl': True, 'Alt': False, 'Shift': True, 'Extra': 'V'}, 'width': '400', 'height': '400', 'ratioKeep': 'height', 'scalingMode': 'smooth'} 2019-01-03 15:15:05,287 - 1214357311 - init:77 - DEBUG - Setup init completed 2019-01-03 15:15:05,370 - urllib3.connectionpool - _new_conn:813 - DEBUG - Starting new HTTPS connection (1): sync6.ankiweb.net:443 2019-01-03 15:15:07,861 - urllib3.connectionpool - _make_request:393 - DEBUG - https://ankiweb.net:443 "POST /update/desktop HTTP/1.1" 200 57 2019-01-03 15:15:07,897 - urllib3.connectionpool - _make_request:393 - DEBUG - https://sync6.ankiweb.net:443 "POST /sync/meta HTTP/1.1" 200 153 2019-01-03 15:15:08,204 - urllib3.connectionpool - _make_request:393 - DEBUG - https://sync6.ankiweb.net:443 "POST /msync/begin HTTP/1.1" 200 51 2019-01-03 15:15:45,256 - 1214357311 - _processMime_around:204 - DEBUG - grabbing MIME data: found formats ['application/x-qt-windows-mime;value="Shell IDList Array"', 'application/x-qt-windows-mime;value="UsingDefaultDragImage"', 'application/x-qt-windows-mime;value="DragImageBits"', 'application/x-qt-windows-mime;value="DragContext"', 'application/x-qt-windows-mime;value="DragSourceHelperFlags"', 'application/x-qt-windows-mime;value="InShellDragLoop"', 'text/uri-list', 'application/x-qt-windows-mime;value="FileName"', 'application/x-qt-windows-mime;value="FileContents"', 'application/x-qt-windows-mime;value="FileNameW"', 'application/x-qt-windows-mime;value="FileGroupDescriptorW"'] 2019-01-03 15:15:45,264 - 1214357311 - _processMime_around:205 - DEBUG - hasImage: False 2019-01-03 15:15:45,264 - 1214357311 - _processMime_around:206 - DEBUG - hasUrls: True 2019-01-03 15:15:45,271 - 1214357311 - _processMime_around:219 - DEBUG - found URL in mime data: resizing if necessary... 2019-01-03 15:15:45,271 - 1214357311 - checkAndResize:238 - DEBUG - checking if mime data is an image or an URL to an image... 2019-01-03 15:15:45,279 - 1214357311 - checkAndResize:256 - DEBUG - suffix png meet requirements 2019-01-03 15:15:45,286 - 1214357311 - resize:134 - DEBUG - resizing images... 2019-01-03 15:15:45,286 - 1214357311 - resize:135 - DEBUG - image before resizing, width: 850, height: 445 2019-01-03 15:15:45,286 - 1214357311 - resize:145 - DEBUG - scale according to height: 400 2019-01-03 15:15:45,290 - 1214357311 - resize:152 - DEBUG - image after resizing, width: 765, height: 400 2019-01-03 15:15:45,290 - 1214357311 - imageResizer:165 - DEBUG - imageResizer called! 2019-01-03 15:15:45,290 - 1214357311 - imageResizer:169 - DEBUG - mime contains images relative data in it: <PyQt5.QtCore.QMimeData object at 0x000002743F7A6168> 2019-01-03 15:15:45,290 - 1214357311 - imageResizer:170 - DEBUG - paste action: False 2019-01-03 15:15:45,290 - 1214357311 - _processMime_around:222 - DEBUG - let anki handle the resized image
I followed the instructions on the AnkiWeb ImageResizer but was unable to get it to work. I also attempted with Anki in Windows 7 compatibility mode. It still did not work. I wish I had log files to provide. It does not look like Anki produces log files.