General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
capture page into image
Posted by: disrupted
Date: March 10, 2009 03:17AM

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# Dep:- milka leo
# Dep:- nirsoft siteshoter
# Dep:- kmwinsnap2(orignally winsnap-slightly hexed so registry key won't conflict settings with original winsnap if exists
# ---------- capture plus


$_caps_path=getfolder(RootFolder)."\\Tools\\capplus";
$_km_path=getfolder(RootFolder)."\\k-meleon.exe";

capplus{
#macroinfo="Capture current page as jpeg Image";
$HOST = hostname( $URL );
exec($_caps_path."\\capplus.exe \"".$_caps_path."\\siteshoter.exe\" \"".$_caps_path."\\kmWinSnap2.exe\" \"".$_km_path."\" \"".$HOST."\" " . $URL);
}

capview{
#macroinfo="view captured pages(capturee)";
exec($_caps_path."\\capplus.exe \"".$_km_path."\"");
}

capplus_BuildMenu{
setmenu("&Edit",popup,"Capture Plus",1);
setmenu("Capture Plus",macro,"Capture Page",capplus);
setmenu("Capture Plus",macro,"View Capturee",capview);
}

$OnInit=$OnInit."capplus_BuildMenu;";
#-------------------------------------------
$macroModules=$macroModules."captureplus;";



; AutoIt Version: 3.0
; Language: doubledutch
; Platform: Win9x/NT
; Author: yannis

#NoTrayIcon
#include <GUIConstantS E X.au3>
#include <WindowsConstants.au3>
#include <StaticConstants.au3>
#include <ButtonConstants.au3>
#include <ProgressConstants.au3>
#Include <String.au3>
#Include <File.au3>


Func regionsettings()
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "ApplicationHK", "REG_DWORD", "300")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "AutoDir", "REG_SZ", $captureereg)
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "AutoFormat", "REG_DWORD", "2")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "AutoName", "REG_SZ", "region-%DATE%-[%TIME%]")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "BgColor", "REG_DWORD", "16777215")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "ClientHK", "REG_DWORD", "1580")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "ConfigPage", "REG_DWORD", "4")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "Delay", "REG_DWORD", "1000")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "Effects", "REG_DWORD", "6291456")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "ExitHK", "REG_DWORD", "0")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "Flags", "REG_DWORD", "2113929221")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "FullScreenHK", "REG_DWORD", "44")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "InterpolationMode", "REG_DWORD", "7")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "JpegQuality", "REG_DWORD", "85")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "LangFile", "REG_SZ", "")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "MainHeight", "REG_DWORD", "506")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "MainWidth", "REG_DWORD", "608")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "MenuHK", "REG_DWORD", "2604")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "MinimizeHK", "REG_DWORD", "0")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "OutColor", "REG_DWORD", "2")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "Outline", "REG_DWORD", "300")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "PrintMarginBottom", "REG_DWORD", "1500")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "PrintMarginLeft", "REG_DWORD", "1000")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "PrintMarginRight", "REG_DWORD", "1000")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "PrintMarginTop", "REG_DWORD", "1500")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "RegionHK", "REG_DWORD", "812")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "Rotate", "REG_DWORD", "8")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "Scale", "REG_DWORD", "50")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "ScaleFit", "REG_DWORD", "31457920")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "ShAngle", "REG_DWORD", "135")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "ShColor", "REG_DWORD", "0")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "ShDistance", "REG_DWORD", "4")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "ShOpacity", "REG_DWORD", "60")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "ShowHideHK", "REG_DWORD", "0")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "ShSize", "REG_DWORD", "12")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "Stamp", "REG_SZ", "")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "StFlags", "REG_DWORD", "10242")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "StOpacity", "REG_DWORD", "80")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "StPosition1", "REG_DWORD", "655368")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "StPosition2", "REG_DWORD", "5242960")
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "WindowHK", "REG_DWORD", "556")
EndFunc

If FileExists(@ScriptDir & "\caplus.ini") Then
$capturee = IniRead(@ScriptDir & "\caplus.ini", "capturee", "1", "default")
$jpegmode = IniRead(@ScriptDir & "\caplus.ini", "jpegvalue", "1", "default")

Else
$capturee = FileSelectFolder("Select folder for captured pages:", "")
$captureereg = FileGetShortName($capturee)
regionsettings()

sleep(200)
$check=StringRegExp($capturee, "(?i):\\")
if $check=0 Then
$capturee = FileSelectFolder("Select folder for captured pages:", "")
$captureereg = FileGetShortName($capturee)
exit
Else
IniWrite(@ScriptDir & "\caplus.ini", "capturee", 1, $capturee)
IniWrite(@ScriptDir & "\caplus.ini", "jpegvalue", 1, "85")
EndIf
EndIf


if $CmdLine[0] = 1 Then
ShellExecute($CmdLine[1], $capturee)
ElseIf $CmdLine[0] =0 Then
MsgBox(4096, "FUCKTest", "cannot run without parameters, please execute me from k-meleon's menu only", 10)
ElseIf $CmdLine[0] > 1 Then

$nirshort = FileGetShortName($capturee)
$nirname1 = ($CmdLine[4] & ".jpg")
$nirname2 = ($nirshort & "\")
$nirname3 = ($nirname2 & $nirname1)

$nirpend1 = ("/URL " & $CmdLine[5])
$nirpend2 = (" /Filename " & $nirname3)
$nirpend3 = (" /DisableScrollBars 1 /BrowserWidth 1024 /BrowserHeight 768 /ImageSizePerCent 100 /JpegQuality ")
$nirpend4 = ($nirpend3 & $jpegmode)
$nirpend5 = ($nirpend1 & $nirpend2)
$nirfinal = ($nirpend5 & $nirpend4)

$gettime = (@HOUR & @MIN)
$nirstamp1 = ($CmdLine[4] & $gettime)
$nirstamp2 = ($nirstamp1 & ".jpg")
$nirstamp3 = ($nirname2 & $nirstamp2)
$nirstamp4 = (" /Filename " & $nirstamp3)
$nirstamp5 = ($nirpend1 & $nirstamp4)
$nirstamper = ($nirstamp5 & $nirpend4)

$main = GUICreate("K-Meleon Capture Plus", 278, 138, -1, -1, BitOR($WS_SYSMENU, $WS_EX_TOPMOST))
$Radio_1 = GUICtrlCreateRadio("Capture page", 10, 5, 182, 20)
$Radio_2 = GUICtrlCreateRadio("Capture page+stamps ", 10, 25, 200, 20)
$Radio_3 = GUICtrlCreateRadio("Capture selected region", 10, 45, 182, 20)
$Button_3 = GUICtrlCreateButton("Capture!", 10, 80, 80, 20, BitOR($BS_FLAT, $WS_BORDER, $WS_EX_STATICEDGE))
$Button_4 = GUICtrlCreateButton("Options", 90, 80, 80, 20, BitOR($BS_FLAT, $WS_BORDER, $WS_EX_STATICEDGE))
$Button_c = GUICtrlCreateButton("Cancel", 180, 80,80, 20, BitOR($BS_FLAT, $WS_BORDER, $WS_EX_STATICEDGE))

GUICtrlSetState($Radio_1, $GUI_CHECKED)
GUISetState()
While 1
$msg = GUIGetMsg()
select
Case $msg = $Button_3
Select
Case GUICtrlRead($Radio_1) = $GUI_CHECKED
;MsgBox(4096, "FUCKTest", $nirfinal, 10)
ShellExecute($CmdLine[1], $nirfinal)
GUIdelete($main)
sleep(444)
processing()
exitloop
Case GUICtrlRead($Radio_2) = $GUI_CHECKED
;MsgBox(4096, "FUCKTest", $nirstamper, 400)
ShellExecute($CmdLine[1], $nirstamper)
GUIdelete($main)
sleep(444)
processing()
exitloop
Case GUICtrlRead($Radio_3) = $GUI_CHECKED
WinActivate("[CLASS:KMeleon Browser Window]", "")
WinwaitActive("[CLASS:KMeleon Browser Window]")
send("{F11}")
sleep(400)
run($CmdLine[2])
sleep(6000)
ShellExecute($CmdLine[3], $nirshort)
sleep(2222)
processClose("kmwinsnap2.exe")
sleep(400)
send("{F11}")
sleep(48)
ShellExecute($CmdLine[3], $nirshort)
exitloop
Case Else
EndSelect
Case $msg = $GUI_EVENT_CLOSE
Exit

Case $msg = $Button_4
GUISetState(@sw_disable)
options()

Case $msg = $Button_c
exit

Case Else

Endselect


Sleep(10)
WEnd
Exit
EndIf

Func Options()
$shit = GUICreate("K-Meleon Capture Plus Optionen", 368, 158, -1, -1, BitOR($WS_SYSMENU, $WS_EX_TOPMOST))
$Label1 = GUICtrlCreateLabel("Change Capturee save folder:", 10, 5, 182, 20)
$Label2 = GUICtrlCreateLabel("Select JPEG compression ratio:", 10, 50, 182, 20)
$Radio_l = GUICtrlCreateRadio("Low quality", 10, 65, 80, 20)
$Radio_m = GUICtrlCreateRadio("Medium quality", 100, 65, 88, 20)
$Radio_h = GUICtrlCreateRadio("High quality (Default)", 204, 65, 118, 20)
$Button_a= GUICtrlCreateButton("OK", 182, 100, 80, 20, BitOR($BS_FLAT, $WS_BORDER, $WS_EX_STATICEDGE))
$Button_b = GUICtrlCreateButton("Browse", 268, 20, 80, 20, BitOR($BS_FLAT, $WS_BORDER, $WS_EX_STATICEDGE))
$Button_x= GUICtrlCreateButton("Cancel", 268, 100,80, 20, BitOR($BS_FLAT, $WS_BORDER, $WS_EX_STATICEDGE))
$captureepath = GUICtrlCreateInput("", 10, 20, 255, 20)
$capturee = IniRead(@ScriptDir & "\caplus.ini", "capturee", "1", "default")
GUICtrlSetData($captureepath, $capturee)
$captureereg = FileGetShortName($capturee)
$jpegmode = IniRead(@ScriptDir & "\caplus.ini", "jpegvalue", "1", "default")
if $jpegmode < 60 Then
GUICtrlSetState($Radio_l, $GUI_CHECKED)
GUISetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $Button_a
Select
Case GUICtrlRead($Radio_l) = $GUI_CHECKED
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
IniWrite(@ScriptDir & "\caplus.ini", "jpegvalue", 1, "45")
IniWrite(@ScriptDir & "\caplus.ini", "capturee", 1, $capturee)
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "AutoDir", "REG_SZ", $captureereg)
ExitLoop
Case GUICtrlRead($Radio_m) = $GUI_CHECKED
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
IniWrite(@ScriptDir & "\caplus.ini", "jpegvalue", 1, "60")
IniWrite(@ScriptDir & "\caplus.ini", "capturee", 1, $capturee)
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "AutoDir", "REG_SZ", $captureereg)
ExitLoop
Case GUICtrlRead($Radio_h) = $GUI_CHECKED
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
IniWrite(@ScriptDir & "\caplus.ini", "jpegvalue", 1, "85")
IniWrite(@ScriptDir & "\caplus.ini", "capturee", 1, $capturee)
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "AutoDir", "REG_SZ", $captureereg)
ExitLoop
Endselect
Case $msg = $Button_b
$capturee = FileSelectFolder("Select folder for captured pages:", "")
GUICtrlSetData($captureepath, $capturee)
$captureereg = FileGetShortName($capturee)
Case $msg = $Button_x
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
Return
Case $msg = $GUI_EVENT_CLOSE
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
Return
Endselect
WEnd
ElseIf $jpegmode = 60 Then
GUICtrlSetState($Radio_m, $GUI_CHECKED)
GUISetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $Button_a
Select
Case GUICtrlRead($Radio_l) = $GUI_CHECKED
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
IniWrite(@ScriptDir & "\caplus.ini", "jpegvalue", 1, "45")
IniWrite(@ScriptDir & "\caplus.ini", "capturee", 1, $capturee)
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "AutoDir", "REG_SZ", $captureereg)
ExitLoop
Case GUICtrlRead($Radio_m) = $GUI_CHECKED
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
IniWrite(@ScriptDir & "\caplus.ini", "jpegvalue", 1, "60")
IniWrite(@ScriptDir & "\caplus.ini", "capturee", 1, $capturee)
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "AutoDir", "REG_SZ", $captureereg)
ExitLoop
Case GUICtrlRead($Radio_h) = $GUI_CHECKED
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
IniWrite(@ScriptDir & "\caplus.ini", "jpegvalue", 1, "85")
IniWrite(@ScriptDir & "\caplus.ini", "capturee", 1, $capturee)
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "AutoDir", "REG_SZ", $captureereg)
ExitLoop
Endselect
Case $msg = $Button_b
$capturee = FileSelectFolder("Select folder for captured pages:", "")
GUICtrlSetData($captureepath, $capturee)
$captureereg = FileGetShortName($capturee)
Case $msg = $Button_x
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
Return
Case $msg = $GUI_EVENT_CLOSE
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
Return
Endselect
WEnd
ElseIf $jpegmode > 60 Then
GUICtrlSetState($Radio_h, $GUI_CHECKED)
GUISetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $Button_a
Select
Case GUICtrlRead($Radio_l) = $GUI_CHECKED
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
IniWrite(@ScriptDir & "\caplus.ini", "jpegvalue", 1, "45")
IniWrite(@ScriptDir & "\caplus.ini", "capturee", 1, $capturee)
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "AutoDir", "REG_SZ", $captureereg)
ExitLoop
Case GUICtrlRead($Radio_m) = $GUI_CHECKED
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
IniWrite(@ScriptDir & "\caplus.ini", "jpegvalue", 1, "60")
IniWrite(@ScriptDir & "\caplus.ini", "capturee", 1, $capturee)
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "AutoDir", "REG_SZ", $captureereg)
ExitLoop
Case GUICtrlRead($Radio_h) = $GUI_CHECKED
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
IniWrite(@ScriptDir & "\caplus.ini", "jpegvalue", 1, "85")
IniWrite(@ScriptDir & "\caplus.ini", "capturee", 1, $capturee)
RegWrite("HKEY_CURRENT_USER\Software\Alexander Avdonin\kmnSnap\0.1", "AutoDir", "REG_SZ", $captureereg)
ExitLoop

Endselect
Case $msg = $Button_b
$capturee = FileSelectFolder("Select folder for captured pages:", "")
GUICtrlSetData($captureepath, $capturee)
$captureereg = FileGetShortName($capturee)
Case $msg = $Button_x
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
Return
Case $msg = $GUI_EVENT_CLOSE
GUIDelete($shit)
GUISetState(@SW_ENABLE, $main)
GUISetState(@SW_show, $main)
WinActivate("K-Meleon Capture Plus", "")
Return

Endselect
WEnd
EndIf
EndFunc


Func processing()
$main = GUICreate("processing", 230, 28, -1, -1, BitOR($WS_DLGFRAME, $WS_POPUP, $WS_EX_TOPMOST))
$progressbar2 = GUICtrlCreateProgress(74, 5, 152, 18, $PBS_SMOOTH)
$Label1 = GUICtrlCreateLabel("processing...", 5, 6, 68, 15)
GUISetState(@SW_SHOW)

While ProcesS E Xists("siteshoter.exe")
GUICtrlSetData($progressbar2, (20))
Sleep(200)
GUICtrlSetData($progressbar2, (40))
Sleep(200)
GUICtrlSetData($progressbar2, (60))
Sleep(200)
GUICtrlSetData($progressbar2, (80))
Sleep(200)
GUICtrlSetData($progressbar2, (100))
Sleep(200)
WEnd

ShellExecute($CmdLine[3], $nirshort)
exit
EndFunc



















Options: ReplyQuote
Re: capture page into image
Posted by: desga2
Date: March 10, 2009 11:27AM

Good work, but you write in texts "Capturee" instead "Capture" tongue sticking out smiley.

K-Meleon in Spanish

Options: ReplyQuote
Re: capture page into image
Posted by: disrupted
Date: March 10, 2009 12:07PM

because k-meleon is globish, i wanted the program to be that way too(not pure english).. capturee is a little french and options is optionen(german) smiling smiley

Options: ReplyQuote
Re: capture page into image
Posted by: Drahken
Date: March 11, 2009 04:30AM

Couple questions:
1) Does it capture the whole page, or just the part displayed in the browser? If it captures the entire page, then it could be very nice indeed. (Some screencap progs can autoscroll IE to get the whole page, but none seem able to do that with any other browser.)

2) One thing that doesn't sound so good about it is using jpg format. Most pages are better saved in a lossles format like png. (Not only is the text more readable, but oddly enough it often results in a smaller file.) Only pages laden with photographic images work well as jpgs.
2a) Is it possible to save in png instead of jpg?
2b) Is it possible to select the quality of the jpg file? If not, what's the default quality (a sample shot would be good)?

----
"People who live in glass houses ....should close the friggin curtains!"

Options: ReplyQuote
Re: capture page into image
Posted by: disrupted
Date: March 11, 2009 12:07PM

1- captures whole page not what is displayed in the browser since it uses nirsoft's siteshoter.. it connects independently from kmeleon and captures the page. even if k-meleon's window is minimised or resized to a very small window; it will still capture the page.
2a- not possible but can be implemented in a next release since siteshoter supports png.. will require more coding sad smiley
2b- it's possible to select jpeg quality from the options dialog. if not set will use the default quality which is very high


this is a shot of the image of captured google(not the site address) inside k-meleon:
(notice the magnifying glass)


Options: ReplyQuote
Re: capture page into image
Posted by: Lex1
Date: March 11, 2009 01:12PM

siteshoter uses IE engine.

K-Meleon supported canvas drawWindow and it should be the better solution.

Options: ReplyQuote
Re: capture page into image
Posted by: disrupted
Date: March 11, 2009 02:44PM

that is correct but there's no tool to capture using k-meleon's own render. unless you use a regular desktop capture program and this will capture the visible area inside k-meleon and not the entire page. this is already available using jamesd macro imagethis with purrint..
http://kmeleonbrowser.org/forum/posting.php?1,reply,90132
this tool extends imagethis functionability into capturing the entire page or region, hence the name "capture plus". both tools complement one another.

personally, i don't think i'll ever use it.. unless i want to show a webdesigner a problem in how a page renders and displays and if i ever needed to do that, i'd just use any capturing program for that specific occasion without the actual need for calling it from k-meleon in a systematic method. i don't really see the point of saving a page for offline viewing as an image? but since there seemed to be some demand for such tool and it appears there are 5 firefox extensions for the same function; i thought there must be something i don't get with capturing a page and it must be really useful for some folks; especially those who were using such extension with firefox..so i decided to make a similar tool available for k-meleon as well. i still believe that for archiving websites, it's much better and more practical to save in html or mht format.

Options: ReplyQuote
Re: capture page into image
Posted by: Drahken
Date: March 11, 2009 04:21PM

So... This doesn't actually capture the page as KM renders it, but renders it with IE's engine instead? That defeats the purpose. The point of taking any kind of screenshot of a page is to show someone what you see. Since IE is total crap & renders pages differently than any real browser, taking a shot of it's rendering of a page would be pointless.

----
"People who live in glass houses ....should close the friggin curtains!"

Options: ReplyQuote
Re: capture page into image
Posted by: JujuLand
Date: March 15, 2009 09:28PM

I didn't read the last post about the engine used, and tried it under Wine.

The first time I launch it, it gives me an error -1 on a line ( the same error that I saw here on forums for another tool).

The second time, it executes correctly, but the jpg file is null sized.

I understand why ...

But curiously, Wine gives a box to tell that a program was trying to access to the web, and it was necessary to install 'Gecko for wine'. What I done, but after install, no more result.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc





Edited 1 time(s). Last edit at 03/15/2009 09:28PM by JujuLand.

Options: ReplyQuote
Re: capture page into image
Posted by: desga2
Date: March 15, 2009 09:46PM

In windows this problem can be originated by Firewall that block the connection of the tool.

K-Meleon in Spanish

Options: ReplyQuote


K-Meleon forum is powered by Phorum.