Armenian Knowledge Base  

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

Reply
 
LinkBack Thread Tools
Old 19.10.2005, 11:46   #1
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
Default web page Snapshot

inchpes kareli e PHP-ov, web eji [email protected] hanel?
orinak http://whois.sc/yahoo.com -stex menak domain-i hascei depquma nkarum.. indz petqa lyuboy eji [email protected] hani...
karoxa tenc script imanaq?
Reply With Quote
Old 19.10.2005, 17:11   #2
инсценирующи
 
[ Xelgen ]'s Avatar
 
Join Date: 07 2002
Location: Fireplace of Ecotopia
Age: 32
Posts: 4,327
Downloads: 22
Uploads: 0
Reputation: 193 | 4
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. [ Кселджэн ]
Reply With Quote
Old 19.10.2005, 17:42   #3
Banned
 
Forever Child's Avatar
 
Join Date: 10 2001
Location: ...осень колибри
Age: 37
Posts: 7,487
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

hnaravor e. es inqs gorcogh site tesel em. im sepakan sajteric meky anmijpes capture arec ev cujc tvec. vor gtnem, kasem.
Reply With Quote
Old 19.10.2005, 17:43   #4
ЙЦУКЕН
 
Join Date: 07 2002
Location: 0x68,0x69,0x72, 0x69,0x6e,0x67, 0x20,0x6e,0x6f, 0x77
Age: 47
Posts: 3,118
Downloads: 0
Uploads: 0
Reputation: 5 | 0
Default

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

XNestedServer в руки, на нем запустить любой браузер, открыть нужный сайт, сделать снапшот, скинуть с файл. трудоемко и ресурсоемко. но работать будет.
Reply With Quote
Old 19.10.2005, 18:55   #5
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
Default

Спасибо!
Reply With Quote
Old 20.10.2005, 13:56   #6
Профессор
 
Nikita's Avatar
 
Join Date: 01 2005
Location: Perm
Age: 38
Posts: 2,142
Downloads: 0
Uploads: 0
Reputation: 0 | 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.
Только не забудь скачать софт
Reply With Quote
Old 20.10.2005, 14:10   #7
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
Default

Thanks... [email protected] chashxatec henc @nenc, qasheci khtml2png-1.0.0.tar.gz [email protected] 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
Reply With Quote
Old 20.10.2005, 14:16   #8
Профессор
 
Nikita's Avatar
 
Join Date: 01 2005
Location: Perm
Age: 38
Posts: 2,142
Downloads: 0
Uploads: 0
Reputation: 0 | 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
Reply With Quote
Old 20.10.2005, 14:17   #9
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
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 [email protected] [email protected] pahuma [email protected], chishta!
[email protected] mek haziv update a anum... im saiti screenshotnela [email protected] cuc tali...
Reply With Quote
Old 20.10.2005, 14:19   #10
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
Default

to: Eclipse_2.1
isk eti nuyn dzev a? aysinqn eli tenc faileri vraya ashxatum? te PHP-i funkcianerov?
Reply With Quote
Old 20.10.2005, 19:34   #11
Волк, просто волк...
 
_ WOLF _'s Avatar
 
Join Date: 07 2002
Location: /dev/null
Age: 72
Posts: 250
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

ete [email protected] Linux/UNIX a, IMHO aranc X-i et [email protected] glux chi ga...

petq klini anpayman vor browser miacrats lini voric heto, [email protected] senc mi ban

Code:
exec("import -window root screenshot.png");
heto petq klini browser-i avelord [email protected] ktrtel

isk ete [email protected] sepakan chi ayl [email protected] drvats a HSP-i mot, to animast a senc ban [email protected] ... ba vor mi or [email protected] 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;
Reply With Quote
Old 20.10.2005, 20:47   #12
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
Default

thanks!
Reply With Quote
Old 20.10.2005, 20:49   #13
ЙЦУКЕН
 
Join Date: 07 2002
Location: 0x68,0x69,0x72, 0x69,0x6e,0x67, 0x20,0x6e,0x6f, 0x77
Age: 47
Posts: 3,118
Downloads: 0
Uploads: 0
Reputation: 5 | 0
Default

Quote:
Originally Posted by _ WOLF _
ete [email protected] Linux/UNIX a, IMHO aranc X-i et [email protected] glux chi ga...
petq klini anpayman vor browser miacrats lini voric heto, [email protected] senc mi ban
Code:
exec("import -window root screenshot.png");
heto petq klini browser-i avelord [email protected] ktrtel
isk ete [email protected] sepakan chi ayl [email protected] drvats a HSP-i mot, to animast a senc ban [email protected] ... ba vor mi or [email protected] 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 хостинг пошлет в ...вобщем далеко . и будет прав
Reply With Quote
Old 20.10.2005, 21:11   #14
Профессор
 
Nikita's Avatar
 
Join Date: 01 2005
Location: Perm
Age: 38
Posts: 2,142
Downloads: 0
Uploads: 0
Reputation: 0 | 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
 
Reply With Quote
Old 20.10.2005, 21:33   #15
Профессор
 
Nikita's Avatar
 
Join Date: 01 2005
Location: Perm
Age: 38
Posts: 2,142
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

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

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

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 21:37.


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