head 1.13; access; symbols SNAPSHOT_0_1_3:1.12 SNAPSHOT_0_1_2:1.7 start:1.1.1.1 cairo:1.1.1; locks; strict; comment @# @; 1.13 date 2005.08.13.07.41.22; author jdorje; state Exp; branches; next 1.12; commitid 6e7342fda40b4567; 1.12 date 2005.06.15.22.39.47; author cworth; state Exp; branches; next 1.11; commitid 325f42b0ae324567; 1.11 date 2005.05.25.16.07.35; author cworth; state Exp; branches; next 1.10; commitid 59854294a2c74567; 1.10 date 2005.05.12.18.34.59; author keithp; state Exp; branches; next 1.9; commitid 492e4283a1d04567; 1.9 date 2005.04.26.20.03.33; author cworth; state Exp; branches; next 1.8; commitid 2374426e9e924567; 1.8 date 2005.04.02.02.01.31; author cworth; state Exp; branches; next 1.7; 1.7 date 2005.02.14.14.19.16; author cworth; state Exp; branches; next 1.6; 1.6 date 2005.01.20.16.39.15; author cworth; state Exp; branches; next 1.5; 1.5 date 2004.10.28.21.16.44; author cworth; state Exp; branches; next 1.4; 1.4 date 2004.06.11.12.49.58; author cworth; state Exp; branches; next 1.3; 1.3 date 2004.06.04.16.10.30; author cworth; state Exp; branches; next 1.2; 1.2 date 2004.05.04.02.02.30; author cworth; state Exp; branches; next 1.1; 1.1 date 2004.04.27.02.10.02; author cworth; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2004.04.27.02.10.02; author cworth; state Exp; branches; next ; desc @@ 1.13 log @Rewrite the command-line parameters to be more powerful and roughly compatible with rsvg/inkscape/sodipodi. @ text @2005-08-13 Jason Dorje Short * src/args.h: * src/args.c: (args_help), (args_parse): * src/svg2png.c: (render_to_png): * doc/svg2png.1 Rewrite the command-line parameters to be more powerful and roughly compatible with rsvg/inkscape/sodipodi. 2005-06-15 Carl Worth * NEWS: Add notes for 0.1.4. * configure.in: Increment SVG2PNG_VERSION to 0.1.3. * configure.in: Require libsvg-cairo >= 0.1.6. 2005-05-25 Carl Worth * src/svg2png.c: Remove obsolete include of cairo-png.h. 2005-05-12 Keith Packard reviewed by: cworth * src/svg2png.c: (render_to_png): Adapt to changes in the cairo API. Clean up various valgrind-related issues. 2005-04-26 Carl Worth * Makefile.am: Remove extra whitespace. * src/args.c: (args_help): Make usage statement more clear. * src/svg2png.c: (write_callback), (write_surface_to_png_file), (render_to_png): Track changes in cairo PNG output interface. Use new cairo_surface_write_to_png_stream in place of old cairo_surface_write_png. 2005-04-01 Carl Worth * src/svg2png.c: (render_to_png): Track removal of cairo_set_target_png. 2005-02-14 Carl Worth * NEWS: Add notes for 0.1.2. * configure.in: Increment version to 0.1.2. 2005-01-20 Carl Worth * src/svg2png.c: Track split-up of cairo.h. * configure.in: Add lots of warning flags when compiling with gcc. 2004-10-28 Carl Worth * doc/Makefile.am: Add $(man_MANS) to EXTRA_DIST. For some reason, svg2png.1 wasn't ending up in the tar file without this. 2004-06-11 Carl Worth * doc/svg2png.1: Update documentation for new behavior of --width and --height. From 2004-05-13 John Ellson * src/args.c: * docs/svg2png.1: default input/output to '-', i.e. stdin/stdout, so that svg2png can be use in a pipe without any args. * src/svg2png.c: clean up unused #includes and #defines 2004-06-04 Carl Worth * src/svg2png.c (main): Close open files before exiting. (render_to_png): Handle the --width and --height options in a more intelligent way. They will now automatically trigger scaling as necessary (but never distorting the original aspect ratio). If both are provided, and with an inconsisent aspect ratio, the rendering will be centered in the extra space. It's now possible to simply provide one of these options and the other one will be computed based on the aspect ratio. 2004-05-03 Carl Worth * src/svg2png.c (main): Fix to write to stdout rather than trying to write to stdin. (Oops). 2004-04-26 Carl Worth * src/svg2png.c: Rip out all of the X dependencies and rename to svg2png. 2003-12-19 Carl Worth * src/Makefile.am (AM_CFLAGS): Switch from xsvg_CFLAGS to AM_CFLAGS, (no, I don't understand this stuff at all). 2003-12-19 Carl Worth * src/Makefile.am (xsvg_CFLAGS, xsvg_LDFLAGS): Fix to use the proper automake variable names. 2003-12-16 Carl Worth * doc/xsvg.1: Add manual page, (thanks to Dave Beckett ) 2003-12-05 Carl Worth * configure.in: Bump version to 0.1.2 to indicate dependency on libsvg-cairo rather than libxsvg. Thanks to Richard Worth for the renaming work. * README: * configure.in: * src/xsvg.c: Track name change of support library from libxsvg to libsvg-cairo. * src/xsvg.c: Don't include obsolete cairo-xlib.h. * src/Makefile.am (AM_LDFLAGS): Use AM_LDFLAGS not LDFLAGS which is a user variable. 2003-12-03 Carl Worth * src/xsvg.c (render_to_png): Fix rounding when computing size of a scaled png image. 2003-11-19 Carl Worth * New support for ARGB windows courtesy of Keith Packard . Together with the fancy new Composite extension in the X server, this allows the SVG image to be composited over other windows rathern than with a solid color window background. * src/xsvg.c (find_argb_visual): New support for ARGB windows. (win_init): Set a window title. * src/args.c: Add -argb,-a option for using an ARGB window. 2003-11-15 Carl Worth * Noah Levitt added a very handy 'fit mode' that scales the SVG image to match the window size. Use the -fit command-line option or the 'f' keybinding. * src/xsvg.c: Renamed cairo_t from old 'xrs' name to 'cr'. (toggle_fit_cb): New keybinding, 'f', toggles fit mode. (win_refresh): Removed some unused code. (render_to_png): Now grab PNG width/height from SVG file if not provided on the command line. (win_init): Now get window size from SVG file if no geometry argument is provided. (win_handle_client_message): Properly respond to WM_DELETE_WINDOW client message by promptly exiting. (win_reconfigure_fit_mode): New function to support fit_mode. (win_handle_events): Fix event loop to use XPending and blocking XNextEvent rather than cheesy use of usleep. (left_cb): (right_cb): (up_cb): (down_cb): (zoom_in_cb): (zoom_out_cb): Pan/zoom keybindings all disable fit_mode. (toggle_fit_cb): New function for toggling fit mode. 2003-11-06 Carl Worth * configure.in: Bump version to 0.1.1. Now requires libxsvg >= 0.1.1. * src/xsvg.c (render_to_png, win_init): Add parsing of stdin when filename is "-". Thanks to John Ellson for this addition. * autogen.sh: Add --enable-maintainer-mode 2003-09-05 Keith Packard * src/args.c, src/args.h, src/xsvg.c: Added --flipx and --flipy command line options to get at the new reflection options without having to touch the keyboard. 2003-09-05 Carl Worth * src/xsvg.c: Added 'X' and 'Y' keybindings to reflect the coordinates by negating X or Y values. 2003-07-18 Carl Worth * src/xsvg.c: Updated to use Cairo rather than Xr. 2003-06-13 Carl Worth * src/args.c (parse_opt): Added --scale, --width, and --height options. 2003-04-22 Carl Worth * src/xsvg.c (render_to_png): (win_init): Track changes in Xr API, (display parameter moved from XrCreate to XrSetTargetDrawable) * src/Makefile.am (INCLUDES): Updated now that Xr uses pkg-config. 2003-02-11 Carl Worth * src/xsvg.c (render_to_png): Added experimental support for rendering to a PNG file. Caveats: probably only works for 24-bit visuals, has hard-coded image size, does not save alpha channel. * src/args.c (parse_opt): Added parsing of --png option. * src/xsvg.c: Updated for rename of libxrsvg to libxsvg. 2002-11-02 Carl Worth * src/xsvg.c (left_cb): (right_cb): (up_cb): (down_cb): Translation amounts tied to zoom level, so translation after zooming is actually possible now). 2002-11-01 Carl Worth * src/xsvg.c (win_init): Fixed to draw before being exposed after the first map. 2002-10-24 Carl Worth * src/xsvg.c (win_init): Now checks error case if file is not found, (still needs a better error message). 2002-10-23 Carl Worth * AUTHORS: * COPYING: * README: Created various files for meta-data. @ 1.12 log @ * NEWS: Add notes for 0.1.4. * configure.in: Increment SVG2PNG_VERSION to 0.1.3. * configure.in: Require libsvg-cairo >= 0.1.6. @ text @d1 8 @ 1.11 log @ * src/svg2png.c: Remove obsolete include of cairo-png.h. @ text @d1 8 @ 1.10 log @2005-05-12 Keith Packard reviewed by: cworth * src/svg2png.c: (render_to_png): Adapt to changes in the cairo API. Clean up various valgrind-related issues. @ text @d1 4 @ 1.9 log @ * Makefile.am: Remove extra whitespace. * src/args.c: (args_help): Make usage statement more clear. * src/svg2png.c: (write_callback), (write_surface_to_png_file), (render_to_png): Track changes in cairo PNG output interface. Use new cairo_surface_write_to_png_stream in place of old cairo_surface_write_png. @ text @d1 8 @ 1.8 log @ * src/svg2png.c: (render_to_png): Track removal of cairo_set_target_png. @ text @d1 11 @ 1.7 log @ * NEWS: Add notes for 0.1.2. * configure.in: Increment version to 0.1.2. @ text @d1 5 @ 1.6 log @ * src/svg2png.c: Track split-up of cairo.h. * configure.in: Add lots of warning flags when compiling with gcc. @ text @d1 6 @ 1.5 log @ * doc/Makefile.am: Add to EXTRA_DIST. For some reason, svg2png.1 wasn't ending up in the tar file without this. @ text @d1 6 @ 1.4 log @ 2004-06-11 Carl Worth * doc/svg2png.1: Update documentation for new behavior of --width and --height. From 2004-05-13 John Ellson * src/args.c: * docs/svg2png.1: default input/output to '-', i.e. stdin/stdout, so that svg2png can be use in a pipe without any args. * src/svg2png.c: clean up unused #includes and #defines @ text @d1 5 @ 1.3 log @ * src/svg2png.c (main): Close open files before exiting. (render_to_png): Handle the --width and --height options in a more intelligent way. They will now automatically trigger scaling as necessary (but never distorting the original aspect ratio). If both are provided, and with an inconsisent aspect ratio, the rendering will be centered in the extra space. It's now possible to simply provide one of these options and the other one will be computed based on the aspect ratio. @ text @d1 13 @ 1.2 log @ * src/svg2png.c (main): Fix to write to stdout rather than trying to write to stdin. (Oops). @ text @d1 11 @ 1.1 log @Initial revision @ text @d1 5 @ 1.1.1.1 log @Initial import of svg2png. @ text @@