Hello,
I'm getting a "Status:Failed" message with Access-Aide 1.0.0
It seems to hickup on svg files saying "Error: cannot identify image file":
Code:
Building a GUI to speed image alt attribute updates
... OEBPS/Text/ata.html # 1 src: ../Images/img_auth.png alt text:
... OEBPS/Text/ata.html # 2 src: ../Images/ico_e-mail.png alt text:
... OEBPS/Text/ata.html # 3 src: ../Images/ico_Facebook.svg alt text:
Traceback (most recent call last):
File "C:\Program Files\Sigil\Sigil\plugin_launchers\python\launcher.py", line 142, in launch
self.exitcode = target_script.run(container)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Dion\AppData\Local\sigil-ebook\sigil\plugins\Access-Aide\plugin.py", line 479, in run
alttext = get_image_metadata_alttext(imgpath, plang)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Dion\AppData\Local\sigil-ebook\sigil\plugins\Access-Aide\plugin.py", line 234, in get_image_metadata_alttext
with Image.open(imgpath) as im:
^^^^^^^^^^^^^^^^^^^
File "site-packages\PIL\Image.py", line 3339, in open
PIL.UnidentifiedImageError: cannot identify image file 'C:\\Users\\Dion\\AppData\\Local\\Temp\\tmp924i4kez\\OEBPS\\Images\\ico_Facebook.svg'
Error: cannot identify image file 'C:\\Users\\Dion\\AppData\\Local\\Temp\\tmp924i4kez\\OEBPS\\Images\\ico_Facebook.svg'
I've tried a few different svg files and I'm not able to determine what, if anything, is wrong with the svg file itself. Here's the one that it doesn't like on this try:
Spoiler:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 1024 1024"
width="1024"
height="1024"
version="1.1">
<path
fill="#4267b2"
d="M967.48,0h-911A56.51,56.51,0,0,0,0,56.52v911A56.51,56.51,0,0,0,56.52,1024H547V628H414V473H547V358.93c0-132.26,80.77-204.28,198.76-204.28,56.51,0,105.08,4.21,119.24,6.09V299l-81.37,0c-64.2,0-76.63,30.51-76.63,75.28V473H860.49l-20,155H707v396H967.48A56.51,56.51,0,0,0,1024,967.48v-911A56.51,56.51,0,0,0,967.48,0Z"/>
<path
fill="#fff"
d="M707,1024V628H840.5l20-155H707V374.28c0-44.77,12.43-75.28,76.63-75.28L865,299V160.74c-14.16-1.88-62.73-6.09-119.24-6.09-118,0-198.76,72-198.76,204.28V473H414V628H547v396Z"/>
</svg>
If it isn't designed to work with svg files at all, can we get it to skip them altogether? when it fails it doesn't get to the part to update/check the alt tags on all the images.
Thanks!
(Windows 11 - latest, Sigil 2.3.1)
Edit: the html tag is just a standard:
<img alt="" src="../Images/ico_Facebook.svg"/>