Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-09-2018, 02:24 PM   #1
desk7
Groupie
desk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notes
 
Posts: 150
Karma: 24934
Join Date: May 2016
Device: Kindle Paperwhite, Onyx Boox Max
Lightbulb 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?
desk7 is offline   Reply With Quote
Old 12-09-2018, 03:45 PM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,546
Karma: 193191846
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.
DiapDealer is offline   Reply With Quote
Old 12-10-2018, 02:39 PM   #3
desk7
Groupie
desk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notes
 
Posts: 150
Karma: 24934
Join Date: May 2016
Device: Kindle Paperwhite, Onyx Boox Max
Quote:
Originally Posted by DiapDealer View Post
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.
You're right but when you import saved html webpages, then you have to manually remove banners etc.
That's why I asked for that solution
desk7 is offline   Reply With Quote
Old 12-10-2018, 03:08 PM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,633
Karma: 5433388
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.

Quote:
Originally Posted by desk7 View Post
You're right but when you import saved html webpages, then you have to manually remove banners etc.
That's why I asked for that solution
KevinH is online now   Reply With Quote
Old 12-10-2018, 03:10 PM   #5
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by desk7 View Post
You're right but when you import saved html webpages, then you have to manually remove banners etc.
That's why I asked for that solution
There are a browser extensions that all allow you to save websites as epubs. For example, dotepub and GrabMyBooks.
Doitsu is offline   Reply With Quote
Old 12-10-2018, 04:15 PM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,546
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
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.
I tend to agree. I don't really want Sigil trying to connect to websites (not to mention downloading files) when pasting content copied from the web.

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.
DiapDealer is offline   Reply With Quote
Old 12-10-2018, 06:03 PM   #7
desk7
Groupie
desk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notesdesk7 can name that song in three notes
 
Posts: 150
Karma: 24934
Join Date: May 2016
Device: Kindle Paperwhite, Onyx Boox Max
Quote:
Originally Posted by KevinH View Post
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.
Quote:
Originally Posted by Doitsu View Post
There are a browser extensions that all allow you to save websites as epubs. For example, dotepub and GrabMyBooks.
Quote:
Originally Posted by DiapDealer View Post
I tend to agree. I don't really want Sigil trying to connect to websites (not to mention downloading files) when pasting content copied from the web.

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.
Thank you for your suggestions!
desk7 is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 09:13 AM.


MobileRead.com is a privately owned, operated and funded community.