Page 1 of 1
cmd_webCapture: Missing Images
Posted: Sun Oct 31, 2010 5:15 am
by XnTriq
My attempt to capture
XnView's homepage ...
... and the result:
When I try to capture a
picture file directly, the progress bar window (“Generating image...”) pops up, goes away, and then... nothing happens
<!-- EDIT
- It depends on the file format?
// -->
Re: cmd_webCapture: Missing Images
Posted: Thu Nov 04, 2010 9:10 am
by xnview
Strange, i have all pictures, and i can capture a picture url...???
Re: cmd_webCapture: Missing Images
Posted: Thu Nov 04, 2010 1:56 pm
by JohnFredC
The following URL just hangs MP WebCapture. Pushing "Abort" crashes MP.
http://news.discovery.com/space/ten-sha ... gn=rssnws1
However, after editing the URL to this:
http://news.discovery.com/space/ten-sha ... vered.html
...MP captures the page, but not the graphics.
WebCapture seems to have a problem with PhotoBucket pages, too.
Re: cmd_webCapture: Missing Images
Posted: Fri Nov 05, 2010 10:33 am
by xnview
I can't confirm. Capture works, do you wait enough?
And if i press 'Abort', no crash

Re: cmd_webCapture: Missing Images
Posted: Fri Nov 05, 2010 1:14 pm
by JohnFredC
Hi Pierre
Here are some WebCaptures showing problems (I've cropped a couple to make them smaller):
Perhaps WebCapture only works with simple HTML pages?
Re: cmd_webCapture: Missing Images
Posted: Fri Nov 05, 2010 8:45 pm
by XnTriq
CutyCapt is a small cross-platform command-line utility to capture WebKit's rendering of a web page into a variety of vector and bitmap formats, including SVG, PDF, PS, PNG, JPEG, TIFF, GIF, and BMP. See IECapt for a similar tool based on Internet Explorer.
Code: Select all
CutyCapt.exe --url=http://www.xnview.com/index.html --out=test.png
Code: Select all
-----------------------------------------------------------------------------
Usage: CutyCapt --url=http://www.example.org/ --out=localfile.png
-----------------------------------------------------------------------------
--help Print this help page and exit
--url=<url> The URL to capture (http:...|file:...|...)
--out=<path> The target file (.png|pdf|ps|svg|jpeg|...)
--out-format=<f> Like extension in --out, overrides heuristic
--min-width=<int> Minimal width for the image (default: 800)
--min-height=<int> Minimal height for the image (default: 600)
--max-wait=<ms> Don't wait more than (default: 90000, inf: 0)
--delay=<ms> After successful load, wait (default: 0)
--user-styles=<url> Location of user style sheet, if any
--header=<name>:<value> request header; repeatable; some can't be set
--method=<get|post|put> Specifies the request method (default: get)
--body-string=<string> Unencoded request body (default: none)
--body-base64=<base64> Base64-encoded request body (default: none)
--app-name=<name> appName used in User-Agent; default is none
--app-version=<version> appVers used in User-Agent; default is none
--user-agent=<string> Override the User-Agent header Qt would set
--javascript=<on|off> JavaScript execution (default: on)
--java=<on|off> Java execution (default: unknown)
--plugins=<on|off> Plugin execution (default: unknown)
--private-browsing=<on|off> Private browsing (default: unknown)
--auto-load-images=<on|off> Automatic image loading (default: on)
--js-can-open-windows=<on|off> Script can open windows? (default: unknown)
--js-can-access-clipboard=<on|off> Script clipboard privs (default: unknown)
--print-backgrounds=<on|off> Backgrounds in PDF/PS output (default: off)
-----------------------------------------------------------------------------
<f> is svg,ps,pdf,itext,html,rtree,png,jpeg,mng,tiff,gif,bmp,ppm,xbm,xpm
-----------------------------------------------------------------------------
http://cutycapt.sf.net - (c) 2003-2010 Bjoern Hoehrmann - bjoern@hoehrmann.de
Re: cmd_webCapture: Missing Images
Posted: Sat Nov 06, 2010 3:38 pm
by xnview
JohnFredC wrote:
Perhaps WebCapture only works with simple HTML pages?
No it works for me....

Re: cmd_webCapture: Missing Images
Posted: Thu Nov 11, 2010 5:00 am
by XnTriq
Pierre, can you reproduce the bug if you (temporarily) clear HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults?
Re: cmd_webCapture: Missing Images
Posted: Thu Nov 11, 2010 12:59 pm
by xnview
XnTriq wrote:Pierre, can you reproduce the bug if you (temporarily) clear HKEY_CURRENT_USER\Software\Trolltech\OrganizationDefaults?
Yes, now...
Re: cmd_webCapture: Missing Images
Posted: Mon Dec 06, 2010 10:15 pm
by XnTriq