source: osm/applications/editors/josm/plugins/roadsigns/images_src/convert.pl@ 25828

Last change on this file since 25828 was 21967, checked in by bastik, 15 years ago

initial version

  • Property svn:executable set to *
File size: 459 bytes
Line 
1#!/usr/bin/perl
2use strict;
3use warnings;
4
5use Getopt::Std;
6
7my %val;
8getopts('h:', \%val);
9
10# helper script to convert svg file to png and move them to the right place
11#
12# usage:
13# cd plugins/roadsigns/images_src/
14# ./convert.pl -h 36 foo.svg
15
16my $h = $val{"h"};
17if (!$h) {
18 $h = "40";
19}
20
21foreach my $i (0..$#ARGV) {
22 my $f = $ARGV[$i];
23 my $f2 = $f;
24 $f2 =~ s/\.svg$/.png/;
25 system("inkscape", "-f", $f, "-e", "../images/$f2", "-h", "$h");
26}
Note: See TracBrowser for help on using the repository browser.