Sponsored Content
Full Discussion: Jpeg viewer on SunOS 5.8
Top Forums UNIX for Advanced & Expert Users Jpeg viewer on SunOS 5.8 Post 302167523 by Smiling Dragon on Thursday 14th of February 2008 04:56:27 PM
Old 02-14-2008
There's a bunch of third party apps that can do this for you. Xv is pretty good, as is imageview.

To have them pop up on a given display from the commandline, you don't need to run an xterm first.
Just make sure your DISPLAY environment variable is set correctly (alternativly, most X applications will accept a "-display <display:number>" flag instead.
To select where it should be displayed on the screen, select which display number via the -display flag (eg 0.0 0.1 etc). To select where on the given screen, most apps will accept a -geometry flag with four optional parameters:
Width
Height
X coord
Y coord

eg To display a 640x480 window 20 pixels from the left side of the screen and 30 pixels down on 'mydisplay':
Code:
xv -display myhost:0.0 -geometry 640x480+20+30 sailing.jpg

eg To display a 640x480 window 50 pixels in from the right side of the screen and 10 pixels from the bottom:
Code:
xv -display myhost:0.0 -geometry 640x480-50-10 sailing.jpg

 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Convert Jpeg to useable Unix Pics

I'm running a Sunblade 1500 with 2 XVR-100 video cards. I have Xinerama runing as well. Desktop is CDE. Can someone help me in converting Jpeg pictures so that I can use them as backdrops? Is there a way to make the picture come on both monitors instead of streaching it across both? Thanks. (1 Reply)
Discussion started by: HSTheDuck
1 Replies

2. UNIX for Advanced & Expert Users

Migration of binary file from Sunos 5.8 to Sunos 5.9

I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies

3. UNIX for Dummies Questions & Answers

how do I view a jpeg?

I use gv or ggv to view a .pdf, or .ps file. What will allow me to see a jpeg file? If it matters, I'm using xterm on a PowerBook G4. (0 Replies)
Discussion started by: dsstamps
0 Replies

4. Ubuntu

how to insert JPEG on each side of the cube using openGl

Hi all, i have the program to rotate the cube using openGL. i want to insert J PEG on each side of the rotating cube using openGL in C... please guide me,,any answer will appreciated.. (1 Reply)
Discussion started by: Ravikishore
1 Replies

5. Shell Programming and Scripting

makefile to convert .jpeg to .png thumnails

Hello! I'm desperately trying to write a makefile that converts and scales jpeg files to png files in subdirectories I want to use netpbm, so I just need the commands: anytopnm pnmscale pnmtopng For various reasons i want to use a makefile. This is the first time i use the make tool... (1 Reply)
Discussion started by: henningbaer
1 Replies

6. Shell Programming and Scripting

renaming jpeg files

Hi guys im currently trying to write a script which includes rename files and this is the part where i fail i have a list of files eg and i want to rename them so any help really would be appreciated Cheers dunryc (7 Replies)
Discussion started by: dunryc
7 Replies

7. Programming

Receiving JPEG packet from camera

I am trying to receive a packet of data as bytes in C, but the picture is getting messed up. I am using fwrite to append bytes to jpg file, but the append or write does not seem to be appending jpg correctly. Packet 1 data comes in append to file Packet 2 data comes in append to file ...... (12 Replies)
Discussion started by: photon
12 Replies

8. Shell Programming and Scripting

Embedding JPEG image to the body file

hi, I am trying to embed an image to the body of the email, but the image is not visible. echo "<html> <body> <style> body {background-color:blue} </style> <h1>hello</h1> <center> <img... (1 Reply)
Discussion started by: ATWC
1 Replies
XEV(1)							      General Commands Manual							    XEV(1)

NAME
xev - print contents of X events SYNOPSIS
xev [-display displayname] [-geometry geom] [-bw pixels] [-bs {NotUseful,WhenMapped,Always}] [-id windowid] [-root] [-s] [-name string] [-rv] DESCRIPTION
Xev creates a window and then asks the X server to send it events whenever anything happens to the window (such as it being moved, resized, typed in, clicked in, etc.). You can also attach it to an existing window. It is useful for seeing what causes events to occur and to display the information that they contain; it is essentially a debugging and development tool, and should not be needed in normal usage. OPTIONS
-display display This option specifies the X server to contact. -geometry geom This option specifies the size and/or location of the window, if a window is to be created. -bw pixels This option specifies the border width for the window. -bs {NotUseful,WhenMapped,Always} This option specifies what kind of backing store to give the window. The default is NotUseful. Backing store refers to the the pixels saved off-screen when the X server maintains the contents of a window; NotUseful means that the xev process will redraw its contents itself, as necessary. -id windowid This option specifies that the window with the given id should be monitored, instead of creating a new window. -root This option specifies that the root window should be monitored, instead of creating a new window. -s This option specifies that save-unders should be enabled on the window. Save unders are similar to backing store, but they refer rather to the saving of pixels off-screen when the current window obscures other windows. Save unders are only advisory, and are normally set for popup dialogs and other transient windows. -name string This option specifies the name to assign to the created window. -rv This option specifies that the window should be in reverse video. SEE ALSO
X(7), xwininfo(1), xdpyinfo(1), Xlib Programmers Manual, X Protocol Specification See X(7) for a full statement of rights and permissions. AUTHOR
Jim Fulton, MIT X Consortium X Version 11 xev 1.2.0 XEV(1)
All times are GMT -4. The time now is 03:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy