Aminadav / webpage-screenshot

Entire page Screenshot extension for Google Chrome. I'm developing open source extension for Google Chrome. All extension are free for use. Let's make Chrome great again!
https://www.1ce.org
ISC License
499 stars 519 forks source link

posting in Blogger --- extreme laggy and ressource-blasting #34

Closed leahparsuidualc-zz closed 6 years ago

leahparsuidualc-zz commented 8 years ago

After trying to post a complete-capture of a google-search-result-overview ( 1920*1200px ), over a gig of memory has been eaten and blogger was not able to show the inserted copy of the shot; though when switching to html-view in edit-mode of the generated blogger-article it showed inline-image-data of the screenshot; the whole system ( Win10+Chrome 32Bit latest on 4GiB RAM Dual Channel DDRII FSB 800 Athlon 64 X2 5200+ ) got to its knees.

Tried it some more times and to get rid of the obvious tremendous data-parsing-challenge tried to use copy-capture-to-clipboard the whole process at least could be completed, though the amount of inline-image-data is just to heavy for blogger to be edited or even showed as published article.

Half-width resolution made it a bit lighter but RAM-usage was around 650 to 830 MiB, depending on length of page and content to capture;

Please point out:

thanks

Aminadav commented 8 years ago

Hello. and thank for being interested in this plugin. I would be happy to help you.

All the plugin, defined in "pluginsBuiltIn" and you can define new plugin: Here is the blogger plugin. That send the image to blogger: https://github.com/AminaG/OpenScreenshot/blob/366d2f6e222e12ed67cf608c96ad1072aff680de/chrome-extensions/js/pluginsBuiltIn.js#L292

This is what convert the image from the URL, to an image tag in a post https://github.com/AminaG/OpenScreenshot/blob/366d2f6e222e12ed67cf608c96ad1072aff680de/chrome-extensions/js/intabg.js#L18

This is where the editor create the image, when you click share. https://github.com/AminaG/OpenScreenshot/blob/master/chrome-extensions/editor.js#L168