homepageThumbs

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • homepageThumbs

    Habe auf meine seite eine linkliste installiert mit der möglichkeit homepages als thumb darzustellen. Es ist aber ziemlich mühsam von den homepages einen screenshot zu machen im photoshop zu verkleinern und dann in die linkliste uploaden. Kennt vielleicht jemand ein script oder ne suchmaschine, die die homepages gleich als thumb-vorschau darstellt?

    Wenn nicht, wäre vielleicht ne idee so'ne suchmaschine zu programmieren. Wenn ich zum bsp. bei google oder ähnliche den begriff bangkok eingeben kommen tausend seiten. Schön wäre es, wenn man gleich eine kurze vorschau sehen könnte.

    alles gute von mallorca

  • #2
    Google ist gerade dabei, sowas zu entwickeln:

    http://labs.google.com/gviewer.html

    Kommentar


    • #3
      hai maew, danke für die antwort -- aber da ist ja grauslig und langsam. aber ist ja erst in der entwicklung. vor jahren hatte ich mal ne suchmaschine gefunden (weiß aber nicht nehr wie die hieß), da konnte man webadressen eingeben, die man zBsp. sehr oft beruflich besuchen muß, und die wurden dann sehr schnell untereinander angezeigt. Aber mit Thumbsdarstellung hat beides nix zu tun.
      hab auch zwischenzeitlich ein älteres posting zu diesem Thema gefunden.
      http://www.php-resource.de/forum/sho...hlight=grabben

      aber leider noch keine freeware-lösung in sicht

      Kommentar


      • #4
        Hmm, ich weiß nicht obs noch aktuell ist, aber ich experimentiere grade damit rum, klappt auch schon recht gut:

        http://kleinbreuer.dyndns.org/html2j...www.spiegel.de
        http://www.freehost-script.com

        Werden Sie Webhoster, mit Werbung auf den Userseiten, Php, Mysql, FTP

        Kommentar


        • #5
          Original geschrieben von Kleinbreuer
          Hmm, ich weiß nicht obs noch aktuell ist, aber ich experimentiere grade damit rum, klappt auch schon recht gut:

          http://kleinbreuer.dyndns.org/html2j...www.spiegel.de
          dann mal her mit dem code

          Kommentar


          • #6
            Das ist ja kein PHP....jedenfalls nicht in der Hauptsache. Es beruht ja auf einem C Programm, bzw. auf dem Tool html2jpg, weiß net ob ihr das kennt.

            Aber naja, das hab ich mir so als Möglichkeit überlegt. Ich will das wahrscheinlihc demnächst so machen: Werde mir wohl einen Server dafür einrichten, und das ganze meinen Kunden dann als Service anbieten....weil ich habe ziemlich viele die das schon länger suchen, so für Linklisten usw.
            http://www.freehost-script.com

            Werden Sie Webhoster, mit Werbung auf den Userseiten, Php, Mysql, FTP

            Kommentar


            • #7
              @kleinbreuer

              ist nen klasse tool "html2jpg". wie hast du das online zum laufen gebracht?
              auf ner windows-umgebung? kleiner tipp wäre hilfreich.

              cu
              wurzel
              Kissolino.com

              Kommentar


              • #8
                Hier ist die Perl-Version:
                Code:
                #!/usr/bin/perl
                # Filename:	html2jpg
                # Author:	David Ljung Madison <DaveSource.com>
                  my $VERSION=  1.00;
                # See License:	[url]http://MarginalHacks.com/License[/url]
                # Description:	Takes a screenshot of an HTML page (uses opera)
                use strict;
                
                ##################################################
                # Setup the variables
                ##################################################
                my $PROGNAME = $0;
                $PROGNAME =~ s|.*/||;
                
                my $GRAB = 'xwd -silent -nobdrs -id %id | convert -quality 85 - %out';
                my $XINFO = 'xwininfo -tree -root';
                my $BROWSER = 'opera';	# Required by find_window() - see usage()
                
                # Default snapshot type (based off html2<type>)
                my $TYPE = ($PROGNAME =~ /2(.+)$/) ? $1 : "jpg";
                
                ##################################################
                # Usage
                ##################################################
                sub usage {
                  foreach my $msg (@_) { print STDERR "ERROR:  $msg\n"; }
                
                print STDERR <<USAGE;
                
                Usage:	$PROGNAME [-d] [-o out] <URL>
                	Takes a screenshot of an HTML page and saves to an image
                
                	-o <out>	postfix determines image type [$PROGNAME.$TYPE]
                	-s <sleep>	Time to sleep before window dump
                	-g <geom>	Browser geometry
                	-d		Set debug mode
                
                Kludges:
                	- We don't know when the page is finished loading
                	- Rule of thumb for finding subwindow is guesswork!
                	  If you're getting the wrong window, comment out call to subwindow()
                	- Browser geometry ignored if browser doesn't create a new window
                	  (Such as opera in "mdi" mode)
                	- Dependent on xwd command and output of xwininfo and ...
                	- Browser can't be iconified or partially off-screen
                	- Only gets portion of html displayed in browser
                	- Requires "opera" browser - update find_window() for other browsers
                	- Opens up a bunch o' windows in your browser and leaves them there
                
                Examples:
                % $PROGNAME MarginalHacks.com -o MH.gif		# Snapshot of MarginalHacks
                % $PROGNAME GetDave.com -o gif:- | xv -		# Pipe output, type gif
                
                Heck - I just needed something to automate screenshots of HTML output.
                Ask <your browser> to add '-remote SaveAsImage(file)' if you don't like it.  :)
                
                Author:      David Ljung Madison
                License:     [url]http://MarginalHacks.com/License[/url]
                Please see!  [url]http://MarginalHacks.com/Pay[/url]
                
                USAGE
                
                  exit -1;
                }
                
                sub version {
                  print "\n";
                  printf "This is $PROGNAME version %4.2f\n",$VERSION;
                  print "\n";
                  print "Copyright (c) 2002 David Ljung Madison <MarginalHacks.com>\n";
                  print "\n";
                  exit -1;
                }
                
                sub parse_args {
                  my $url;
                  my ($out,$sleep,$geom) = ("$PROGNAME.$TYPE",5,"800x600");
                  while (my $arg=shift(@ARGV)) {
                    if ($arg =~ /^-h$/) { usage(); }
                    if ($arg =~ /^-v$/) { version(); }
                    if ($arg =~ /^-d$/) { $MAIN::DEBUG=1; next; }
                    if ($arg =~ /^-o$/) { $out = shift(@ARGV); next; }
                    if ($arg =~ /^-s$/) { $sleep = shift(@ARGV); next; }
                    if ($arg =~ /^-g$/) { $geom = shift(@ARGV); next; }
                    if ($arg =~ /^-.+/) { usage("Unknown option: $arg"); }
                    usage("Too many URLs specified [$arg and $url]") if defined $url;
                    $url=$arg;
                  }
                  usage("No URLs specified!") unless $url;
                
                  ($out,$url,$sleep,$geom);
                }
                
                sub debug {
                  return unless $MAIN::DEBUG;
                  foreach my $msg (@_) { print STDERR "[$PROGNAME] $msg\n"; }
                }
                
                ##################################################
                # Main code
                ##################################################
                sub load {
                  my ($url,$geom) = @_;
                
                  # -newwindow doesn't seem to work on my MDI opera setup
                  system("$BROWSER -geometry $geom -remote \'openURL($url,new-window)\'");
                }
                
                # Geometry regexp for xwininfo (saves x and y and offset)
                my $GEOM_RE = '\s(\d+)x(\d+)\+(\-?\d+)\+(\-?\d+)\s+\+\-?\d+\+\-?\d+$';
                
                # Find smallest subwindow that is at least 80%
                # (We're trying to get rid of the scrollbars, menubars, etc...)
                sub subwindow {
                  my ($spacing,$window,$x,$y) = @_;
                  my $smallest = $x*$y;
                  $x*=.8;
                  $y*=.8;
                  while (<XINFO>) {
                    # We're done traversing this window's tree when we find a new window
                    # with the same or less spacing (or if we run out of xinfo).
                    return $window if (/^(\s+)0x[0-9a-f]+/ && length($1)<=length($spacing));
                
                    if (/^\s+(0x[0-9a-f]+).*$GEOM_RE/ &&
                        # $4>=0 && $5>=0 &&	# Only look for positive offset windows?
                        $2>=$x && $3>=$y && $2*$3<$smallest) {
                      $window = $1;
                      $smallest = $2*$3;
                      debug("Smaller subwindow: $window ${2}x$3",$_);
                    }
                  }
                  return $window;
                }
                
                sub find_window {
                  open(XINFO,"$XINFO|") || die("Couldn't run: [$XINFO]\n");
                
                  # Find the opera window (and the current title of the top window)
                  my ($spacing,$title,$x,$y);
                  while(<XINFO>) {
                    # This could easily break and is very opera specific (works on 6.03)
                    last if (($spacing,$title,$x,$y) = (/^(\s+)0x[0-9a-f]+ "Opera .*\[(.+)\]": \("opera" "opera"\)\s*$GEOM_RE$/));
                  }
                  die("Couldn't find window [Opera] in [$XINFO]\n") unless $title && $x && $y;
                
                  # Now find the subwindow with the same title
                  my $window;
                  while (<XINFO>) {
                    die("Couldn't find subwindow [$title] in Opera windows:\n[$XINFO]\n")
                      if (/^(\s+)0x[0-9a-f]+/ && length($1)<=length($spacing));
                    if (/^(\s+)(0x[0-9a-f]+)\s+"$title".*$GEOM_RE/) {
                      ($spacing,$window,$x,$y) = ($1,$2,$3,$4);
                      last;
                    }
                  }
                  die("Couldn't find subwindow [$title] in Opera windows:\n[$XINFO]\n")
                    unless $window;
                  debug("Found: $window [$title] ${x}x$y");
                
                  $window = subwindow($spacing,$window,$x,$y);
                  debug("Final window: $window");
                
                  close XINFO;
                  $window;
                }
                
                sub grab {
                  my ($id,$out) = @_;
                  my $grab = $GRAB;
                  $grab =~ s/%id/$id/g;
                  $grab =~ s/%out/$out/g;
                  system("$grab");
                  die("Trouble with grab [$?]:\n  $grab\n") if $?;
                }
                
                sub main {
                  my ($out,$url,$sleep,$geom) = parse_args();
                  load($url,$geom);
                  sleep($sleep);
                  my $window = find_window();
                  grab($window,$out);
                }
                main();
                Wie das geht weiß ich aber nicht.

                Gefunden:
                www.marginalhacks.com/Hacks/html2jpg
                Zuletzt geändert von Wotan; 23.04.2003, 12:04.
                *winks*
                Gilbert
                ------------------------------------------------
                Hilfe für eine Vielzahl von Problemen!!!
                http://www.1st-rootserver.de/

                Kommentar


                • #9
                  @wotan

                  auch schön jetzt muss man das nur noch ans laufen bringen
                  ich steh' auf den ersten blick ziemlich im spargel ... muss irgendwo noch
                  nen perl-buch liegen haben, mal sehen ob es klappt.

                  hab bisher das hier verwendet. läuft unter win.

                  cu wurzel
                  Kissolino.com

                  Kommentar


                  • #10
                    Hab von nem Kumpel ein Windows Prog bekommen, damit kann ich die Screenshots per Komandozeile machen....ist wenigstens net so teuer wie das html2jpg (189 Euro) und macht genau das gleiche.....

                    Da ich sowieso einen Windowsserver hier stehen habe, ist das für mich ja kein Problem. Natürlich wäre ne Linux Lösung cool, aber ich habe obiges nicht zum laufen bekommen, deshalb hatte sich das erledigt.

                    http://www.freehost-script.com

                    Werden Sie Webhoster, mit Werbung auf den Userseiten, Php, Mysql, FTP

                    Kommentar


                    • #11
                      What is it?
                      Converts HTML pages to images (gif, jpg, png, ps, etc..)
                      Features:
                      Easy to automate.
                      Attempts to remove borders, menus, scrollbars, etc..
                      Supports many image types (even postscript!)



                      Requires:
                      Perl, which kicks ass
                      convert from ImageMagick
                      xwininfo, xwd [standard unix utilities]
                      Opera (or else modify find_window() for your browser)
                      Kludges:
                      From the usage:
                      We don't know when the page is finished loading
                      Rule of thumb for finding subwindow is guesswork! If you're getting the wrong window, comment out call to subwindow()
                      Browser geometry ignored if browser doesn't create a new window (Such as opera in "mdi" mode)
                      Dependent on xwd command and output of xwininfo and ...
                      Browser can't be iconified or partially off-screen
                      Only gets portion of html displayed in browser
                      Requires "opera" browser - update find_window() for other browsers
                      Opens up a bunch o' windows in your browser and leaves them there
                      License:
                      This software is essentially free, but please read my payment spiel
                      Please read the full license
                      Download:
                      It's a single perl script.
                      Documentation?
                      See the usage for command-line options.
                      html2jpg supports all the image types that convert supports.
                      This also means you can specify the type for stdout with a file like: -o gif:-

                      If the script is renamed (or linked to) as "html2<type>" - then the default image type will be <type>.
                      (Example: html2png, html2gif, html2jpg, html2ps, ...)

                      The script does the following:

                      Loads your url in a browser (with -remote, and all the bugs that has..)
                      Sleeps for a few seconds (because we don't know when the page is loaded!)
                      Tries to find the browser window in the Xwindow tree
                      Tries to find the proper subwindow (so we can ignore menus, window frames, scroll bars..)
                      Takes a window dump and converts it to the appropriate image type.
                      This relies on a bunch of unix utilities working just the way they do on my system. Caveat Emptor.
                      Install
                      It's just a perl script. No install required.
                      Revision History:
                      See the CHANGELOG
                      Freshmeat?
                      You bet.
                      Entnommen der Seite: http://marginalhacks.com/Hacks/html2jpg/
                      *winks*
                      Gilbert
                      ------------------------------------------------
                      Hilfe für eine Vielzahl von Problemen!!!
                      http://www.1st-rootserver.de/

                      Kommentar


                      • #12
                        Ja....und genau damit hatte ich Probleme

                        Wenn das einer auf Linux am laufen hat, soll er mit mal Bescheid sagen....oder ne kleine Anleitung wäre lustig
                        http://www.freehost-script.com

                        Werden Sie Webhoster, mit Werbung auf den Userseiten, Php, Mysql, FTP

                        Kommentar


                        • #13
                          Ausser das bekomme ich garnichts:
                          [Wed Apr 23 14:33:02 2003] [error] [client 217.231.117.102] Premature end of script headers: /home/virtual/site1/fst/var/www/cgi-bin/html2jpg.pl
                          [Wed Apr 23 14:34:59 2003] [error] [client 217.231.117.102] Premature end of script headers: /home/virtual/site1/fst/var/www/cgi-bin/html2jpg.pl
                          [Wed Apr 23 14:36:18 2003] [error] [client 217.231.117.102] Premature end of script headers: /home/virtual/site1/fst/var/www/cgi-bin/html2jpg.pl

                          Kannst du damit was anfangen?
                          *winks*
                          Gilbert
                          ------------------------------------------------
                          Hilfe für eine Vielzahl von Problemen!!!
                          http://www.1st-rootserver.de/

                          Kommentar


                          • #14
                            hast du imagemagick laufen ?
                            Kissolino.com

                            Kommentar


                            • #15
                              Mit welchen Befehl kann ich das erkennen?
                              *winks*
                              Gilbert
                              ------------------------------------------------
                              Hilfe für eine Vielzahl von Problemen!!!
                              http://www.1st-rootserver.de/

                              Kommentar

                              Lädt...
                              X