12-10-2018
I have an image with a big canvas, and the image falls within it. I am trying to crop to the size of the actual image.
10 More Discussions You Might Find Interesting
1. Windows & DOS: Issues & Discussions
Hey folks,
I have used gVim in Windows for many years but I have never found an answer to a very simple question I am going to ask you guys...
My question is if there is a way to eliminate the creation of those ~ files that gVim creates in Windows. If you have ever used gVim in Windows you... (2 Replies)
Discussion started by: ghbarratt
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I've searched and read, and searched and read some more; but I'm still not connecting the dots or understanding what I need to change.
I have a script that creates a file. If I run it as root, the file gets created with 644 permissions like I want. That seems to make sense (at least I... (2 Replies)
Discussion started by: 65bit
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
This is my first time on this forum..
I searched the previous answers, but didn't find the answer I was looking for at first glance.
csplit works beautifully for me, except for one thing. My file looks like this:
ad|name1|asdf...(several pages)..asdf ...
ad|name2|asdf...(several... (8 Replies)
Discussion started by: juliette salexa
8 Replies
4. Shell Programming and Scripting
Hi Guys,
I am using a Redhat Linux Centos machine and trying to convert multiple spaces in a file to one space. I am using:
sed '/./,/^$/!d' input_file > output_file
I also tried
cat -s
Both gave me no change in the output file.
I tried this on cygwin and it worked... (7 Replies)
Discussion started by: npatwardhan
7 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I'd like to process multiple files. For example:
file1.txt
file2.txt
file3.txt
Each file contains several lines of data. I want to extract a piece of data and output it to a new file.
file1.txt ----> newfile1.txt
file2.txt ----> newfile2.txt
file3.txt ----> newfile3.txt
Here is... (3 Replies)
Discussion started by: Liverpaul09
3 Replies
6. Shell Programming and Scripting
Hi!
I'm new in awk and I need some help.
I have a folder with a lot of files and I need that awk do something in each file and print a new file with the output. The input file name should be modified when I print the outpu files.
Thanks in advance for help!
:-)
ciao (5 Replies)
Discussion started by: gabrysfe
5 Replies
7. Shell Programming and Scripting
Looking for a simple way to convert ranges to a numerical sequence that would assign the original value of the range to the individual numbers that are on the range.
Thank you
given data
13196-13199 0
13200 4
13201 10
13202-13207 3
13208-13210 7
desired... (3 Replies)
Discussion started by: jcue25
3 Replies
8. UNIX for Advanced & Expert Users
In our project we have several unix scripts that trigger different processes. These scripts write logs to a particular folder 'sesslogs', create output data files in a separate directory called 'datafiles' etc. Usually L1 support team re-run these scripts . We donot want L1 support team to have... (14 Replies)
Discussion started by: waavman
14 Replies
9. Shell Programming and Scripting
Convert Single column to multiple rows
file a.txt contains data like below
Server=abc
Run=1
Tables=10
Sessions=16
Time=380
Jobs=5
Server=abc
Run=2
Tables=15
Sessions=16
Time=400
Jobs=5
Server=abc
Run=3
Tables=20
Sessions=16
Time=450 (5 Replies)
Discussion started by: sol_nov
5 Replies
10. Shell Programming and Scripting
Hi All,
I want to use egrep on multiple files and the results should be output to multiple files. I am using the below code in my shell script(working in Ksh shell). However with this code I am not attaining the desired results.
#!/bin/ksh
(
a="/path/file1"
b="path/file2"
for file in... (4 Replies)
Discussion started by: am24
4 Replies
LEARN ABOUT CENTOS
rsvg-convert
rsvg-convert(1) General Commands Manual rsvg-convert(1)
NAME
rsvg-convert - turn SVG files into raster images.
SYNOPSIS
rsvg-convert [options] in.svg > out.png
DESCRIPTION
Converts SVG images into PNG raster images, PDF, PS, or SVG vector images, or dumps of Cairo XML or recording surfaces.
OPTIONS
-d --dpi-x number
Set the X resolution of the image in pixels per inch. RSVG's current default is 90dpi
-p --dpi-y number
Set the Y resolution of the image in pixels per inch. RSVG's current default is 90dpi
-x --x-zoom number
X Zoom factor, as a percentage. If unspecified, 1.0 is used as the default.
-y --y-zoom number
Y Zoom factor, as a percentage. If unspecified, 1.0 is used as the default.
-z ---zoom number
Zoom factor, as a percentage. If unspecified, 1.0 is used as the default.
-w --width integer
Specify how wide you wish the image to be. If unspecified, the natural width of the image is used as the default.
-h --height integer
Specify how tall you wish the image to be. If unspecified, the natural height of the image is used as the default.
-f --format [png, pdf, ps, svg, xml, recording]
Specify the output format you wish the image to be saved in. If unspecified, PNG is used as the default.
-o --output filename
Specify the output filename. If unspecified, outputs to stdout.
-a --keep-aspect-ratio
Specify that the aspect ratio is to be preserved. If unspecified, aspect ratio will not be preserved.
-b --background-color [black, white, #abccee, #aaa...]
Specify the background color. If unspecified, none is used as the default.
--base-uri uri
Specify the base URI for SVG files. If unspecified, none is used as the default.
-v --version
Display what version of rsvg this is.
MORE INFORMATION
http://librsvg.sourceforge.net/ http://www.w3.org/TR/SVG11/ http://www.gnome.org/
AUTHORS
Dom Lachowicz (cinamod@hotmail.com), Caleb Moore (c.moore@student.unsw.edu.au), and a host of others.
rsvg-convert(1)