Programming :: Creating Image Viewer Window Using Python And GTK Widgets
Jul 7, 2010
I'm a total newbie in Linux and only have limited experience of programming - in Hypercard, Javascript and some Python on the Mac platform. Now I want to get started with high-level programming and scripting on Ubuntu 10.04. The project I have in mind is fairly simple: I want to create an image viewer window that I can bring up on a RAW image file in Nautilus - with the help of dcraw, to inspect the image at 100% without going into a separate application.
The viewer should have a button that if clicked, would then convert the file to a TIFF, again using dcraw. That's it, that's all there is to it. My initial impression is that I should be able to achieve this using Python and GTK widgets. Am I right? How can I find the commands and structures I will need to work with?
I would like to display a fully opaque image (e.g. PNG RGB8) on the desktop in an image viewer - but such that I can set the window (showing the image) to be, say, 50% transparent (so I could see through and compare with other windows below). It would be even better if the viewer just shows a "panel" instead of a "window" (i.e. I'd prefer just the image shown, possibly with a border - instead of a full blown window with menubar, titlebar etc).
I'm aware that in Compiz, it should be possible to run a plugin, and have any window you want transparent - but I was hoping for a solution (viewer) that would not be Compiz-specific (and even more preferred, if it is neither Gnome nor KDE specific - but I'm not sure that is possible).
There's something very annoying about how Nautilus opens "image viewer" windows. They open, I can see them, but when I press the keyboard, it's still Nautilus which gets the commands. This is because Nautilus stays the active window!
Most annoyingly, when I want to have a quick look at an image, and then close it, Nautilus closes instead (Alt+F4).
Does anyone know what I'm talking about? How to solve it?
Iam looking for an Image viewer that lets me delete images through an 'delete' button/option in toolbox.. Most of the image viewers uses edit menu-->delete option,but iam looking for an direct link,clicking on which deletes the image currently open in image viewer ???
I am trying to write a small gtk+-2 program to display whatever image it is given and I was wondering if anyone out there has done something similar. I am not too familiar with writing programs for gtk and its been a while since I've fiddled with C. I went over the tutorial for gtk and it seams pretty easy to get a window to display, but I do not see anything that refers to loading an image or displaying it in the window. I am wondering if this can be done purely with gtk or will I need to use some type of image library like imlib2?
I work with python and I use emacs as my IDE tool. I have been running Debian Squeeze (6.0.9) for some time now with emacs 23.2.1 and ecb 2.32. I am able to access my python methods in the ecb-methods window with no problems. However I recently upgraded my desktop to Debian Wheezy (7.5) running emacs 23.4.1 and ecb 2.40 but I have lost access to the methods in the ecb-methods window. The window is just empty while the others (directories, sources and history) are all populated. I have a second laptop which I decided to upgrade to Debian Jessie, however Jessie recommends emacs 23.4.1 which is running with ecb 2.40 also. The result is the same as on Wheezy.
I have used the ecb menus and googled for a solution or even just a mention that such a problem exists but have come up with nothing. Either I have a unique situation here or am doing something really dumb.
I would like to upgrade to Wheezy or Jessie but I need access to methods in the ecb methods window. How to keep my upgrade and see the methods in the methods window of the ecb system ....
I want an image viewer to show the images in a directory in a random order. For that, I made the following script:
cd /home/DIRECTORY ls > files sort -R files cat files | gpicview
Everything looks fine, but gpicview doesn't open the images! I also tried it with pqiv but instead of just opening the images, it opens a dialog asking me which of the files I want to open.
I am trying to locate a simple image viewer that does the following simple function:
1. Able to open JPEG files (only .jpg images loaded).
2. Open them in full screen mode (launched via terminal command).
3. Able to close once clicked on them in full screen mode (example config file: MOUSE_BTN0 = quit)
I tried a few, I liked the simplicity of Eye of Gnome ( eog ), but the close on a click while in full screen doesn't seem an option? Unless there's a config file hidden somewhere?
Whenever I want to look at an image on the command line I use Kview, but what I want to use is the standard one you get when you click on an image file in windows mode. For me it's called visionneur d'image cos I'm using linux at my university in France.
Fast image viewer: MIRAGE or EOG? [URL] or [URL]. Which one do you favour? If possible, why such choice. (All choices are matter of tastes and preferences, being respected, and all have 100pct right).
I want to know if there is any application from which I can view/convert the JBG Images to any other format. I have installed XnView and Image Magick. XnView does no support the JBG Images and Image Magick gives error while converting the image.
I've read about and taken brief looks at F-Spot, Gthumb, GQView, KphotoAlbum, and digiKam. Why is it so hard to find an app that edits IPTC? I think digiKam is supposed to, but 1) I was hoping not to have to run a KDE app on Gnome and 2) I can't even figure out how to use the darn thing ... it seems very unintuitive to me.
I miss Irfanview so much. (and no, I don't want to run WINE. I don't know why so many people are quick to suggest running Windows apps in WINE. If i wanted to run Windows apps, I'd run stinkin' Windows.)
It's one of those weeks for me when I feel like the more I actually try to USE Ubuntu for getting things done (as a long time Windows user), the more my hands are tied. I mean crap... MediaMonkey, Irfanview, ... ugh. Computers are for accomplishing tasks. Apps are for doing those tasks. OSes are for running those apps. I used to be a diehard OS/2 fan back in the day until I finally gave in to Windows. I still knew OS/2 was way superior, but what's the use in running a "superior" OS if you don't have the apps with features you need? I'm not trying to start a fight here and I hope I don't get slammed for my little venting here, but honestly...
I've tried what feels like at least a dozen different image viewers and I'm still hunting for one that handles viewing by date taken. The trick is that I'd like to just click the jpeg as they come off the camera and then browse through all the photos in the order taken... without having to load them into a photo management application, sort them in their, then start viewing from there. Too many extra steps for too many pictures when you're looking at a collection that is already organized (using the file system, i.e., nested directories) back to 2000. I need (ideally) a viewer where I click the jpeg, then go next next next through them in the order in which they were taken. Does anyone know if this sort of thing exists?
I'm using Ubuntu 10.10 and have installed Geant4 according to this thread: [URL] When I make example A01 everything goes ok. Then I run the A01app, and still everything is ok. At next step I open graphics viewer typing /vis/open OGLIX or OGLSX and the viewer opens (blinks), but there isn't any window at all. Terminal output is
I have a doubt about the Gnome default Image Viewer.It's because I edit my RAW images on RawTherapee, and then export them to jpg.When I open the exported pictures on the image viewer, it looks like has lots of noise.But when I open the same picture on Gimp or Iceweasel, the noises doen't appear.
So, the question is: which image viewer is wrong? Is Gimp and Iceweasel "fixing" the picture automatically, or Gnome Image Viewer is reading it wrongly and showing it with noise?URL...
I've noticed in Gnome pretty much all applications auto-rotate images when viewing, but leave the original image data intact. This may sound silly, but when I want to post pictures on, for instance, Facebook they upload as the picture was originally taken. So, if I took a picture with the camera flipped sideways it appears upright in Nautilus and the two image viewers I have installed, but when I upload the picture it appears to be flipped on its side. Does anyone know how to disable the auto-rotate when viewing feature?
The default image viewer in 10.10 (eog) has met its match, a ~500MB image of the moon. I just thought it was kind of funny, while browsing the software center for an image viewer that could handle it, I noticed the description of the one installed by default and thought it was kind of funny, so I snapped this screenshot and thought I'd share it with you guys. By the way I have 4 GB of RAM and can view the image just fine in GIMP, just thought this was kind of funny. Screenshot
In Ubuntu 10.04 using Document Viewer 2.30.0 I've noticed that every time I open the program or a PDF file I haven't opened before the window size seems to reset to default. Thumbnails sidebar re-enables, view goes back to "Fit Page Width" and the actual size of the window goes back to being very small (default).
When I am deleting pictures using gThumb image viewer it asks "The selected images will be moved to Trash, are you sure?" And if I press "yes" button - it moves message to ~/.Trash, can it be configured to move them into "real" trash? I have created symbolic link and it solved part of my problems, but files "restore" option is unavailable to files which were moved in to trash by this method.
I have a function definition in a Python 2.x script which take a tuple as one of its arguments, but 2to3 has no answers nor any of my searching on how to represent the same in Python 3.x
I'm trying to manipulate the existing windows from within a python script similar to the BASH wmctrl. I've got the basics down with PyWnck, but I need to be able to tell when a window is actively being dragged (or just when the title bar is being clicked). I doubt this is a wnck function. direction of the right python package?
I have triedShotwellgThumbF-SpotNone of them has the possibility to define a shortcut which will move current picture to a defined folder.I want to get a collection of pictures to send to a friend. Before that I want to resize using imagemagick.Irfanview allows definition of locations for "Copy to" or "Move to" (F8 shows list of predefined locations, press 0-9 for copy. So effectively two key strokes). Does anyone know about an ubuntu image viewer that makes this possible with one key combination?
I have a hdd with WindowsXP that I'd like to install on Virtual boxe. The hdd is currently in use, but can put in enclosure to perform operation. To do the planned operation, what is the best way? Do I need make iso image of hdd? Or can I install directly to vboxe?
Right direction regarding the creation of a bootable Linux Image for PXE booting. I've already consulted google and the other obvious sources I could think of, but it seems that PXE is mostly used to install stuff, which isn't quite what I need.
The goal here is to have a pool of computers that boot from a central source so maintenance is less of a hassle. Installation of the individual PCs is not desired and I'm supposed to provide a functional Linux via PXE booting.
What I need is basically a way to turn a working Linux into an image that can be booted via network. Or to recreate that Linux as an image that I can boot.
I have just exported 3 png files out of gimp for a html document I'm working on right now, and they are all almost the same, except I need each to load when the user does something. So the first image will display on the page, and when a user puts their cursor over it, then it will load image 2. When they press it, it loads image 3.