"convert" chops off part of postscript file?


 
Thread Tools Search this Thread
# 1  
"convert" chops off part of postscript file?

I have images in PS that I want to convert to JPG (unfortunately, I need to use them in Powerpoint! Smilie). The problem is that the edges of the image get chopped off when I use:

Code:
convert filename.ps filename.jpg

So, for example, in my plots, the top and bottom labels for the x-axis are missing, which is problematic.

Any ideas what to do about this?

---------- Post updated at 02:32 PM ---------- Previous update was at 01:34 PM ----------

I should say:

I just tried this using ghostscript and it works great, except for one thing: it takes my landscape plot and puts it on a portrait page, so there's a ton of whitespace! I can remove it manually but I have a lot of images so if there's a command to change the orientation, I'd appreciate it Smilie
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #618
Difficulty: Medium
Python is strongly object-oriented in the sense that everything is an object including numbers, strings and even functions.
True or False?

9 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Convert "hex" foldername to "ascii"

So, I have a folder, containing subdirs like this: 52334d50 52365245 524b4450 524f3350 52533950 52535050 52555550 now I want to go ahead and rename all those folder: hex -> ascii (8 Replies)
Discussion started by: pasc
8 Replies

2. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

3. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

4. Shell Programming and Scripting

finding the strings beween 2 characters "/" & "/" in .txt file

Hi all. I have a .txt file that I need to sort it My file is like: 1- 88 chain0 MASTER (FF-TE) FFFF 1962510 /TCK T FD2TQHVTT1 /jtagc/jtag_instreg/updateinstr_reg_1 dff1 (TI,SO) 2- ... (10 Replies)
Discussion started by: Behrouzx77
10 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Shell Programming and Scripting

How to convert "Nov 9 11:35:28 2009" to "200911091135"

Using AIX 5.3 and /user/bin/ksh. Anyone have a quick way to convert the string date Nov 9 11:35:28 2009 to 200911091135 I know I could create a table of months and find the month number by searching the list, but I was hoping there was some handy little known command to do this... (15 Replies)
Discussion started by: troym72
15 Replies

7. Shell Programming and Scripting

"sed" to check file size & echo " " to destination file

Hi, I've modified the syslogd source to include a thread that will keep track of a timer(or a timer thread). My intention is to check the file size of /var/log/messages in every one minute & if the size is more than 128KB, do a echo " " > /var/log/messages, so that the file size will be set... (7 Replies)
Discussion started by: jockey007
7 Replies

8. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

9. UNIX for Dummies Questions & Answers

Convert "text" to "packed-decimal"?

Is there a way with HP-UX Release 10.20 (but going to HP-UX 11) to convert a regular "text" file to a packed data format (such as is created by a Cobol program)? (2 Replies)
Discussion started by: HuskyJim
2 Replies
fvwm-convert-2.4(1)						   Fvwm Modules 					       fvwm-convert-2.4(1)

NAME
fvwm-convert-2.4 - convert fvwm 2.2.x configuration file to fvwm 2.4 syntax SYNOPSIS
fvwm-convert-2.4 [source] [dest] DESCRIPTION
fvwm-convert-2.4 converts an fvwm 2.2.x configuration file into an fvwm 2.4 compatible syntax. It is not suitable to convert older 1.x configuration files. Please use fvwm-convert-2.2 to convert these to the 2.2.x format first. By default, fvwm-convert-2.4 converts ~/.fvwm2rc, saving the results in ~/.fvwm/.fvwm2rc. You must create the ~/.fvwm directory before running this command. Starting with the 2.4 release, the directory ~/.fvwm is the default location for fvwm user configuration files. Different source and destination files may be given. If the destination file already exists, this program exits. While the program runs it will generate a temporary file with the same name as the destination file with the suffix ".pass1" added. fvwm-convert-2.4 makes the following changes: PixmapPath/IconPath In fvwm 2.4, the PixmapPath and IconPath commands are replaced by the ImagePath command. In addition, the ImagePath can be compiled into fvwm. fvwm-convert-2.4 changes the PixmapPath and IconPath commands to ImagePath commands and removes any directories that are compiled into fvwm. Paths starting with a dollar sign are also removed. ModulePath In fvwm 2.4, the ModulePath is compiled into fvwm. fvwm-convert-2.4 removes any ModulePath commands it finds. If you are using your own modules, (not the ones that come with fvwm), you will have to fix your configuration file after using fvwm-convert-2.4. HilightColor In fvwm 2.4, the HighlightColor command is replaced by a Style command using the HilightFore and HilightBack arguments. fvwm-con- vert-2.4 makes these changes. HilightColorset In fvwm 2.4, the HighlightColorset command that was present in some of the 2.3.x beta releases is replaced by a Style command using the HilightColorset style. fvwm-convert-2.4 makes these changes. WindowShadeAnimate In fvwm 2.4, the WindowShadeAnimate command is replaced by the WindowShadeSteps Style option. fvwm-convert-2.4 makes this change. WindowFont In fvwm 2.4, the WindowFont command is replaced by a Style command using the Font argument. fvwm-convert-2.4 makes this change. ColorLimit In fvwm 2.4, the ColorLimit command is automatic. If you have a limited colormap, color limiting is the default. fvwm-convert-2.4 removes any ColorLimit command that it finds. GlobalOpts The GlobalOpts command is converted to Style options and the BugOpts command. Some options can not be converted automatically, though. Read Prints a message identifying any read commands found. The files being read may need to be converted also. Placement Styles Any of the old placement Styles found in the file can not be converted automatically. Instead, fvwm-convert-2.4 prints a warning. For details about the conversion, please refer to the "Window manager placement" section of the fvwm man page. FvwmConfig and FvwmPipe These modules are no longer a part of the fvwm distribution. fvwm-convert-2.4 prints a warning if these modules are found in the file. FvwmButtons panels The syntax of panels in FvwmButtons has changed. The conversion can not be done automatically. fvwm-convert-2.4 prints a message when it encounters a potential panel definition. For details about the conversion, please refer to the "CONVERTING OLD PANEL CONFIGURA- TIONS" section of the FvwmButtons man page. BUGS
You need Perl to be installed. WindowFont and HilightColor commands embedded in functions are not found. If you have either of these commands in functions, they are not detected. Known bugs can be found in the fvwm bug tracking system (accessible from the fvwm home page). Bug reports can be sent to the fvwm-workers mailing list (see the FAQ). AUTHOR
Dan Espen <despen@telcordia.com>. Fvwm 7 May 208 (2.5.26) fvwm-convert-2.4(1)

Featured Tech Videos