On Mon, 15 Sep 2008 11:43:06 +0200, Dirk Stöcker <[EMAIL PROTECTED]> wrote:
> On Mon, 15 Sep 2008, andrzej zaborowski wrote: > >> Yes, resizeTo still works on the new gecko but it seems >> gnome-web-photo 0.5 cannot know what the final width is and needs to >> assume some default fixed amount, gnome-web-photo --help gives this: >> >> -w, --width=W The desired width of the image (default: >> 1024) >> >> and the resulting .png's are always 1024px wide by default, the yahoo >> image is aligned to left and the rest of the png is filled with white. > > I use following script to workaround that problem, as using width > parameter does not work due to unknown width. The script requires NetPBM > to be installed. > > --- > #! /bin/bash > > gnome-web-photo --mode=photo --format=ppm "$1" /dev/stdout |pnmcrop > -white |pnmtopng > --- > I think, it would be best, if we fix gnome-web-photo to work as version 0.3 (-0ubuntu2) or use different page renderer, which respects "window.resizeTo". > > Another solution could be to use a different HTML page, which instead of > generating the image returns the image width. When this page is read, the > -w argument can be used. Maybe lynx, w3m or even internal HTML of Java > can > be used for this. > > Ciao -- Petr Dlouhý _______________________________________________ josm-dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/josm-dev
