|  06-29-2019, 09:32 PM | #91 | 
| Enthusiast            Posts: 35 Karma: 14720 Join Date: Mar 2016 Device: kindle voyage, Kobo Forma, Kobo Aura One | |
|   |   | 
|  07-02-2019, 08:03 AM | #92 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			Okay, I can reproduce exactly this problem on my dev machine.  It is PIL related and has to do with running a size bomb test on the jpeg contents.  I will get this fixed for the upcoming non-beta version.
		 | 
|   |   | 
|  07-02-2019, 11:04 AM | #93 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			I have tracked this one down to newer Pillow versions actually importing from distutils just to spawn a process (not the right way!) and to check versions but only for jpeg and tiff images. distutils is supposed to be used when a package is being installed, not for day to day working of the package. For that reason distutils was not part of the mac embedded Python interpreter as it should be unneeded by already installed packages. I have now added back in distutils so that newer versions of Pillow will function. This bug fix has been pushed to master and will appear in the upcoming version (non-beta) of Sigil. Thank you for your bug report. Last edited by KevinH; 07-02-2019 at 02:17 PM. | 
|   |   | 
|  07-21-2019, 01:29 AM | #94 | 
| just an egg            Posts: 1,848 Karma: 8006346 Join Date: Mar 2015 Device: Kindle, iOS | |
|   |   | 
|  11-11-2019, 02:28 AM | #95 | 
| just an egg            Posts: 1,848 Karma: 8006346 Join Date: Mar 2015 Device: Kindle, iOS | 
			
			Hi CalibUser! Running InsertImageSVG plugin on Sigil 0.9.991 with epub having non-Sigil-standard structure results in wrong filepath, so the image isn't found.  Standardizing epub structure with Tools > Restructure Epub to Sigil Norm solves the problem and allows the plugin to run successfully. ETA: Fixing the filepath manually also works   Last edited by odamizu; 11-13-2019 at 01:59 AM. | 
|   |   | 
|  11-12-2019, 06:23 AM | #96 | 
| Addict            Posts: 203 Karma: 62362 Join Date: Jul 2015 Device: Sony | 
			
			@odamizu: Thanks for sharing this solution with the Sigil community.
		 | 
|   |   | 
|  11-12-2019, 06:39 AM | #97 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | 
			
			For the record: we noted this workaround in the plugin development thread where we posted the info about how to make sure plugins were compatible with the new plugin framework that will be a part of Sigil 1.0. It was always our plan that all plugins would still function correctly so long as epubs had the traditional Sigil structure. We wanted to make sure users wouldn't have to do without their favorite plugins, and that plugin-devs didn't have to scramble madly to fix their suddenly broken plugins. The Sigil 0.9.991 pre-release was also intended as a means for plugin devs to test their plugins to see if they were able to work with alternatively structured epubs (which Sigil 1.0 will support), or if there were modifications needed to be made. The manual conversion to Sigil's traditional structure will provide a workaround for those plugins that may need tweaking in the interim. | 
|   |   | 
|  11-12-2019, 09:50 AM | #98 | 
| Sigil Developer            Posts: 9,070 Karma: 6361556 Join Date: Nov 2009 Device: many | 
			
			And I would we willing to help any plugin developer fix any of their plugins to work for both the old and new structures.  Just ask. KevinH | 
|   |   | 
|  11-12-2019, 11:20 AM | #99 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | 
			
			Yes. Same goes for me. I did make a quick tweak to this plugin yesterday as "proof of concept" for alternatively structured epubs. It's not exhaustive by any means, but it allowed at least partial functionality (images already internal to the epub) in my testing. It shouldn't take a ton of effort to get rid of the hard-coded "../Text/" or "../Image/ assumptions being made. | 
|   |   | 
|  11-12-2019, 05:16 PM | #100 | 
| just an egg            Posts: 1,848 Karma: 8006346 Join Date: Mar 2015 Device: Kindle, iOS | |
|   |   | 
|  01-09-2020, 10:55 AM | #101 | 
| Guru            Posts: 684 Karma: 4568205 Join Date: Jan 2010 Location: Sweden Device: Kobo Forma | 
			
			It seems the path to the images may be incorrect when editing an epub not following Sigil's typical layout. (It works if you let Sigil re-structure the epub, or removing the path to the image file.) Could you please update your excellent plugin for Sigil 1.0.0 use? Thanks,   | 
|   |   | 
|  01-12-2020, 06:45 AM | #102 | |
| Addict            Posts: 203 Karma: 62362 Join Date: Jul 2015 Device: Sony | Quote: 
   | |
|   |   | 
|  06-19-2020, 04:08 PM | #103 | 
| Zealot  Posts: 131 Karma: 10 Join Date: Jan 2015 Location: Buenos Aires Device: Android | 
			
			Hi folks, getting suddenly this error message. Now changes or updates of any kind. Sigil 0.9.14 Code: Status: failed
Default file path:  F:\Media\Images
Traceback (most recent call last):
  File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 135, in launch
    self.exitcode = target_script.run(container)
  File "C:\Users\Thomas\AppData\Local\sigil-ebook\sigil\plugins\InsertImageSVG\plugin.py", line 537, in run
    CheckForUpdates(root, prefs, url)
  File "C:\Users\Thomas\AppData\Local\sigil-ebook\sigil\plugins\InsertImageSVG\UpdateChecker.py", line 244, in CheckForUpdates
    NextCheckdt = datetime.strptime(prefs['NextCheckTime'], "%Y-%m-%d %H:%M:%S.%f")
  File "_strptime.py", line 577, in _strptime_datetime
  File "_strptime.py", line 359, in _strptime
ValueError: time data '2020-06-19 15:54:42' does not match format '%Y-%m-%d %H:%M:%S.%f'
Error: time data '2020-06-19 15:54:42' does not match format '%Y-%m-%d %H:%M:%S.%f'P.S. Problem solved by deleting the plugins preference file and reinstalled it. Last edited by Thomas_AR; 06-19-2020 at 04:27 PM. | 
|   |   | 
|  12-15-2021, 07:49 AM | #104 | 
| Wizard            Posts: 1,876 Karma: 8821117 Join Date: Mar 2013 Location: Rosario - Santa Fe - Argentina Device: Kindle 4 NT |  A request 
			
			Would it possible to add the option to insert the svg wrapper not in a new .xhtml file but in the page (file), and the place, where the cursor is positionated? Thanks in advance for considering if this solicitude is or not doable. Last edited by RbnJrg; 12-15-2021 at 07:51 AM. | 
|   |   | 
|  12-16-2021, 09:26 AM | #105 | 
| Addict            Posts: 203 Karma: 62362 Join Date: Jul 2015 Device: Sony | 
			
			@RbnJrg: I think your suggestion would need a different plugin; it is relatively easy to insert a new page in an ePub using Sigil, but I think your suggestion would require the ePub to be unzipped so that an existing page could be modified to incorporate the svg wrapper and then zipped up again.
		 | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Wrap in SVG plugin? | gezginrocker | Plugins | 18 | 07-05-2015 12:20 AM | 
| svg image on top of a background png image | roger64 | ePub | 25 | 04-24-2015 11:00 AM | 
| Display of a png image linked to a svg image | roger64 | Editor | 6 | 03-13-2015 06:21 AM | 
| Image wrap test | Jellby | ePub | 15 | 05-04-2011 02:30 PM | 
| Combining blockquote with image wrap | WRB | Sigil | 1 | 02-12-2011 07:46 PM |