12-09-2018, 02:24 PM | #1 |
Groupie
Posts: 150
Karma: 24934
Join Date: May 2016
Device: Kindle Paperwhite, Onyx Boox Max
|
Automatically importing images when copy-paste from a web page
When I copy some pieces of a web page and paste them into Sigil, even if I don't paste it as simple text, images are not visible and there are placeholders instead.
Is it possible to add the feature to automatically import images and add them to Images folder? |
12-09-2018, 03:45 PM | #2 |
Grand Sorcerer
Posts: 27,903
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
That's a pretty tall order. When copying web content, there's almost never any actual images in the mimedata contained in the clipboard. There's merely urls. So Sigil would need to intercept all paste signals, parse the clipboard's mimedata for urls, determine which urls are images, download those images to Sigil's scratch/Images directory, and finally update the urls in the clipboard's mimedata with the new local filepath. That's a lot of effort when web content can often be easily saved locally and then imported.
Last edited by DiapDealer; 12-09-2018 at 03:48 PM. |
Advert | |
|
12-10-2018, 02:39 PM | #3 | |
Groupie
Posts: 150
Karma: 24934
Join Date: May 2016
Device: Kindle Paperwhite, Onyx Boox Max
|
Quote:
That's why I asked for that solution |
|
12-10-2018, 03:08 PM | #4 |
Sigil Developer
Posts: 8,099
Karma: 5450184
Join Date: Nov 2009
Device: many
|
I really do not think we want Sigil in the web slurping business. It seems to me you can use many other pieces of software (curl etc) to download a website and then import it getting all of the images and pieces. Open that slurped site and select what you want to import into Sigil.
If you want to automate that process,then a custom plugin would be your best bet. |
12-10-2018, 03:10 PM | #5 | |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
Advert | |
|
12-10-2018, 04:15 PM | #6 | |
Grand Sorcerer
Posts: 27,903
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
If someone doesn't want the whole page or site, another workaround is to paste the copied content into Word. It will download images when pasting. That can then be exported and imported into Sigil in numerous ways. |
|
12-10-2018, 06:03 PM | #7 | |||
Groupie
Posts: 150
Karma: 24934
Join Date: May 2016
Device: Kindle Paperwhite, Onyx Boox Max
|
Quote:
Quote:
Quote:
|
|||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Copy and paste | Alpha o | Calibre | 29 | 05-06-2016 06:28 AM |
Copy PAste | Fizzyfi | Calibre | 2 | 04-10-2015 02:55 PM |
Copy/Paste | PalingB | Sigil | 10 | 10-15-2014 03:17 PM |
Cannot copy and paste | faniediv | Calibre | 12 | 09-07-2014 06:18 PM |
Copy and Paste | JDavid | Sigil | 4 | 08-23-2012 04:02 PM |