Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development

Reply
 
Thread Tools

web page Snapshot
Old 19.10.2005, 10:46   #1
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 34
Posts: 3,243
Rep Power: 5
Default web page Snapshot

inchpes kareli e PHP-ov, web eji snapshot@ hanel?
orinak http://whois.sc/yahoo.com -stex menak domain-i hascei depquma nkarum.. indz petqa lyuboy eji nkar@ hani...
karoxa tenc script imanaq?

Old 19.10.2005, 16:11   #2
инсценирующи
 
[ Xelgen ]'s Avatar
 
Join Date: 07 2002
Location: Fireplace of Ecotopia
Age: 39
Posts: 4,327
Rep Power: 5
Default

Dzevy chishtn asac, chgitem, u kaskacum em vor mian PHPi hnaravorutiunnerov da kareli e hesht anel.
Bayc inqy real-time chi mshakum ev stanum siti snapshoty. Guce parzapes uni siteri snapshoteri mec baza. Ynd vorum nuinsk voch hachaxaki tarmacvogh.
Hamemati:


ev mti download.com

voch photosite.ru, voch yandex.ru, chasac aveli qich haytni siteri shotery chuner, bayc mievnuin jamank armkb.com'i snapshoty kar
__________________
...ибо...
Rgrdz. [ Кселджэн ]

Old 19.10.2005, 16:42   #3
Banned
 
Forever Child's Avatar
 
Join Date: 10 2001
Location: ...осень колибри
Age: 45
Posts: 7,487
Rep Power: 0
Default

hnaravor e. es inqs gorcogh site tesel em. im sepakan sajteric meky anmijpes capture arec ev cujc tvec. vor gtnem, kasem.

Old 19.10.2005, 16:43   #4
nm
ЙЦУКЕН
 
Join Date: 07 2002
Location: 0x68,0x69,0x72, 0x69,0x6e,0x67, 0x20,0x6e,0x6f, 0x77
Age: 55
Posts: 3,118
Rep Power: 0
Default

я знаю один способ но он извратный

XNestedServer в руки, на нем запустить любой браузер, открыть нужный сайт, сделать снапшот, скинуть с файл. трудоемко и ресурсоемко. но работать будет.

Old 19.10.2005, 17:55   #5
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 34
Posts: 3,243
Rep Power: 5
Default

Спасибо!

Old 20.10.2005, 12:56   #6
Профессор
 
Nikita's Avatar
 
Join Date: 01 2005
Location: Perm
Age: 46
Posts: 2,142
Rep Power: 0
Default

Quote:
<?php
$My_URL="www.google.ca";
$Image_Name = "google.png"
exec("khtml2png -display :1 --width 800 --height 1000 --scaled-width 80 --scaled-height 100 ".$My_URL." ".$Image_name);
?>
скрипт не проверял ... могут быть ошибки


http://www.babysimon.co.uk/khtml2png/index.html читай тут

P.S.
Только не забудь скачать софт

Old 20.10.2005, 13:10   #7
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 34
Posts: 3,243
Rep Power: 5
Default

Thanks... kod@ chashxatec henc @nenc, qasheci khtml2png-1.0.0.tar.gz -fail@. bayc glux chem hanum. es incha? sranq petqa server-i mej nastroyka arvi?
indz tvum er createimagefromHTML funkcya klner, u dranov hesht u hangist kliner... teche srancic ban chhaskaca

Old 20.10.2005, 13:16   #8
Профессор
 
Nikita's Avatar
 
Join Date: 01 2005
Location: Perm
Age: 46
Posts: 2,142
Rep Power: 0
Default

yest` html2png ...
no pered etim tebe nujno budet wget-om ili yesh`o chem skachat` stranichku, so vsemi image-ami ( iskrenne nadeyus` chto tam nikakix flash-ov ne budet ... )
potom etot html dat` na sy`edeniye html2png ...
dumayu etot skript to je samoye delayet

Old 20.10.2005, 13:17   #9
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 34
Posts: 3,243
Rep Power: 5
Default

Quote:
Originally Posted by [ Xelgen ]
voch photosite.ru, voch yandex.ru, chasac aveli qich haytni siteri shotery chuner, bayc mievnuin jamank armkb.com'i snapshoty kar
eti saiti haytni lineluc kaxvac chi... prosto *.ru *.am u eli tenc domainneri podderjka chuni...
---
inchveraberum a vor inq@ mej@ pahuma nkarner@, chishta!
amis@ mek haziv update a anum... im saiti screenshotnela hin@ cuc tali...

Old 20.10.2005, 13:19   #10
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 34
Posts: 3,243
Rep Power: 5
Default

to: Eclipse_2.1
isk eti nuyn dzev a? aysinqn eli tenc faileri vraya ashxatum? te PHP-i funkcianerov?

Old 20.10.2005, 18:34   #11
Волк, просто волк...
 
_ WOLF _'s Avatar
 
Join Date: 07 2002
Location: /dev/null
Age: 80
Posts: 250
Rep Power: 0
Default

ete server@ Linux/UNIX a, IMHO aranc X-i et gorts@ glux chi ga...

petq klini anpayman vor browser miacrats lini voric heto, tip@ senc mi ban

Code:
exec("import -window root screenshot.png");
heto petq klini browser-i avelord tashaxust@ ktrtel

isk ete server@ sepakan chi ayl site@ drvats a HSP-i mot, to animast a senc ban anel@ ... ba vor mi or resolution@ screen-i poxi!!????

khtml2png, html2jpg, etc... meka uzelu a X, Browser, GD kam ImageMagick
__________________
00000000h: 41 72 61 6D 20 4D 6B 68 69 74 61 72 79 61 6E;

Old 20.10.2005, 19:47   #12
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 34
Posts: 3,243
Rep Power: 5
Default

thanks!

Old 20.10.2005, 19:49   #13
nm
ЙЦУКЕН
 
Join Date: 07 2002
Location: 0x68,0x69,0x72, 0x69,0x6e,0x67, 0x20,0x6e,0x6f, 0x77
Age: 55
Posts: 3,118
Rep Power: 0
Default

Quote:
Originally Posted by _ WOLF _
ete server@ Linux/UNIX a, IMHO aranc X-i et gorts@ glux chi ga...
petq klini anpayman vor browser miacrats lini voric heto, tip@ senc mi ban
Code:
exec("import -window root screenshot.png");
heto petq klini browser-i avelord tashaxust@ ktrtel
isk ete server@ sepakan chi ayl site@ drvats a HSP-i mot, to animast a senc ban anel@ ... ba vor mi or resolution@ screen-i poxi!!????
khtml2png, html2jpg, etc... meka uzelu a X, Browser, GD kam ImageMagick
ну все решается легко - запустили x сервер, запустили на нем любой браузер (желательно в kiosk mode -- т.е. ваще без control-ов всяких), сделали скриншот. прибили все это безобразие.
насчет Xnested погорячился, не он, но из той-же оперы

Quote:
NAME
Xvfb - virtual framebuffer X server for X Version 11

SYNOPSIS
Xvfb [ option ] ...

DESCRIPTION
Xvfb is an X server that can run on machines with no display hardware
and no physical input devices. It emulates a dumb framebuffer using
virtual memory.

The primary use of this server was intended to be server testing. The
mfb or cfb code for any depth can be exercised with this server without
the need for real hardware that supports the desired depths. The X
community has found many other novel uses for Xvfb, including testing
clients against unusual depths and screen configurations, doing batch
processing with Xvfb as a background rendering engine, load testing, as
an aid to porting the X server to a new platform, and providing an
unobtrusive way to run applications that don't really need an X server
but insist on having one anyway.
оставшееся - дело техники. правда это все на своей машинке . sharing хостинг пошлет в ...вобщем далеко . и будет прав

Old 20.10.2005, 20:11   #14
Профессор
 
Nikita's Avatar
 
Join Date: 01 2005
Location: Perm
Age: 46
Posts: 2,142
Rep Power: 0
Default

Вот его README
Quote:
This is v1.0.3 of khtml2png, a command line program to create PNGs of web
pages.

Example usage:

khtml2png -display :1 --width 800 --height 1000 --scaled-width 80 --scaled-height 100 http://www.google.com/ google.png

creates an 80x100 thumbnail png of Google, scaled down from 800x1000.

If the filename you specify ends with .jpeg or .jpg, khtml2png will save
a JPEG instead.

Cookies
*******

If the user running khtml2png hasn't been using KDE, or their cookie
policy is set to "Ask", they will be asked what to do about cookies,
causing khtml2png to hang. To avoid this, copy one of the supplied
kcookiejarrc files to ~/.kde/share/config/kcookiejarrc, or run konqueror
interactively.

X Server
********

khtml2png needs to connect to an X server (but won't create anything
on screen) - use Xvnc if using it on a server (there seem to be problems with
Xvfb). The X server needs to have enough colour depth and resolution to support
the canvas you intend to use (even though no window is opened - life is
strange). Example command line:

vncserver -depth 32 -geometry 1000x1000

Flash
*****

Unfortunately since the Macromedia flash plugin is not based on Qt, we need
to pop open a window in order to take a snapshot of the page. Use the
--flash-delay command line option to switch this mode on. The --flash-delay
option takes an argument of the number of seconds to wait *after* the page
has loaded before taking the snapshot - you may want to use this to allow
the movie to start playing. Or you can use --flash-delay 0 to snapshot
immediately.

Obviously flash will only work if you have the plugin installed and working
with Konqueror.

KDE 3.2
*******

Unfortunately (again), khtml2png will not render form elements when compiled
against KDE 3.2 unless you use the --flash-delay option. I'm looking into it.

Bugs:

* only outputs PNGs
* requires an X server
* probably others - this was a quick hack.
ya ego isproboval
rabotayet


kak installit`
tam est`: *configure file ... zapuskayesh ego
posle etogo esli vsyo okey ( u menya bilo okey ) zapuskayesh komandu "make"
posle etogo v direktorii budet file ~/khtml2png-1.0.3/khtml2png

v obsh`em vsyo rabotayet ...
iskrenne nadeyus` chto eto tvoi server ... ili xotyabi admin etogo servera tvoi koresh


a vot chto on sdelal ...

( kstate otnositel`no animacii ... interesno kotorii kadr on voz`myot )
Attached Images
 

Old 20.10.2005, 20:33   #15
Профессор
 
Nikita's Avatar
 
Join Date: 01 2005
Location: Perm
Age: 46
Posts: 2,142
Rep Power: 0
Default

Дыг
кстате а это тебе на что нужно ?
Т.Е. может там будет типа введите УРЛ а он делает картинку ... и выдает на сайт (типа никому на фиг не нужный вэб калькулятор) ... или может типа линки на сайты ... кликаеш на скриншот и гуляеш на сайте ...

Просто как то игра свечей не стоит .... или стоит ?
Reply




Реклама:
реклама
Buy text link .

All times are GMT. The time now is 23:46.
Top

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.