Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 27 Aug 2014, 05:19
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
JPEG EXIF information display - jhead is a great little tool
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
jeffrey

Joined: 16 Jan 2006
Posts: 162
Location: Christchurch, New Zealand

PostPosted: Thu 10 Jan 2008, 20:24    Post_subject:  JPEG EXIF information display - jhead is a great little tool  

Is there some way in Puppy to dsplay the EXIF information for a photo?

If not jhead (http://www.sentex.ca/~mwandel/jhead/) is a great tool at only 64kB. It's public domain, fast, comprehensive, etc.
The Ubuntu executable from the above site runs fine on Puppy 2. I added a script to call jhead in an xterm and made that script an option for photos in Rox so that I can see the photo info easily. (Rolling the mouse over the image would be a better way to do this but I can't see a way to get Rox to do that.)

It's a good adjunct to jpegtran and mogrify.

Quote:
Sample jhead output:

File name : 0805-153933.jpg
File size : 463023 bytes
File date : 2001:08:12 21:02:04
Camera make : Canon
Camera model : Canon PowerShot S100
Date/Time : 2001:08:05 15:39:33
Resolution : 1600 x 1200
Flash used : No
Focal length : 5.4mm (35mm equivalent: 36mm)
CCD Width : 5.23mm
Exposure time: 0.100 s (1/10)
Aperture : f/2.8
Focus Dist. : 1.18m
Metering Mode: center weight
Jpeg process : Baseline
Back to top
View user's profile Send_private_message 
zygo

Joined: 08 Apr 2006
Posts: 211
Location: UK

PostPosted: Mon 14 Jan 2008, 20:15    Post_subject:  

Thanks jeffrey

I know how you did the first bit, but, are you saying you can make the context menu different depending on file type in rox?

It seems to work in puppy 3.01 - at least to dump the exif info. Opera displays exif but where it says "Exposure Mode: 5" jhead says "Exposure Mode: Manual"

Where did you get jpegtran and mogrify from?
Back to top
View user's profile Send_private_message 
jeffrey

Joined: 16 Jan 2006
Posts: 162
Location: Christchurch, New Zealand

PostPosted: Mon 14 Jan 2008, 23:23    Post_subject:  

In rox right click on a photo (eg file ending .jpg) and select Customise Menu. This opens a window on .config/rox.sourceforge.net/OpenWith/.image_jpeg in which you place symbolic links to files that you want to act upon photos. I have several, eg Rotate Right, Rotate Left, Photo Info, etc, each of which is a link to a script in my-applications/bin that, for the Photo Info case, looks like
Code:
#! /bin/sh
#
#  Display EXIF data using jhead in a terminal window.
#

xterm -e jhead $@

I can't recall where I got jpegtran but it's probably part of the image-magick.pup thatI install as standard. Great tool set for everything to do with images.
The guy who wrote jhead put a lot of work into it in my opinion yet regards his effort as too trivial to apply a licence to (other than marking it as public domain).
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6428
Location: Auckland, New Zealand

PostPosted: Tue 15 Jan 2008, 05:45    Post_subject:  

He forgot to strip it, so anybody who wants it even smaller, download this one to /usr/bin and gunzip it.

Jhead is pretty cool. If there isn't something else in Puppy, shall we suggest Barry put it in?
jhead.gz
Description 
gz

 Download 
Filename  jhead.gz 
Filesize  25.8 KB 
Downloaded  765 Time(s) 
Back to top
View user's profile Send_private_message 
GeoffS

Joined: 24 Feb 2006
Posts: 427
Location: Australia

PostPosted: Tue 15 Jan 2008, 06:33    Post_subject:  

jhead is very nice, runs perfectly under Puppy 2.12 on this old IBM 600E.
Thanks jeffrey
Geoff
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6428
Location: Auckland, New Zealand

PostPosted: Fri 18 Jan 2008, 22:18    Post_subject:  

An alternative from http://johnst.org/sw/exiftags/
Quote:
1. exiftags: spits out Exif tags;
2. exifcom: displays and writes the UserComment tag; and
3. exiftime: displays, adjusts, and writes date/time tags or lists
files in date/time order.


exiftags has more to say than jhead, and exifcom can edit exif UserComment tags as long as they already exist (they don't in photos from either our panasonic or fuji cameras). jhead can't, but can edit the jpeg comments, which are separate from the exif data.
exiftime.gz
Description 
gz

 Download 
Filename  exiftime.gz 
Filesize  18.07 KB 
Downloaded  695 Time(s) 
exiftags.gz
Description 
gz

 Download 
Filename  exiftags.gz 
Filesize  32.09 KB 
Downloaded  683 Time(s) 
exifcom.gz
Description 
gz

 Download 
Filename  exifcom.gz 
Filesize  15.54 KB 
Downloaded  678 Time(s) 
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6428
Location: Auckland, New Zealand

PostPosted: Sat 02 Feb 2008, 02:13    Post_subject:  

I also tried exiv2. It wouldn't compile, so I used a Slackware package. It shows a lot more information, and can edit the exif comment (not the jpeg comment)
Back to top
View user's profile Send_private_message 
zygo

Joined: 08 Apr 2006
Posts: 211
Location: UK

PostPosted: Sun 03 Feb 2008, 06:25    Post_subject:  

disciple,

can you upload exiv2 please as well. Which puppy is it compiled for?
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6428
Location: Auckland, New Zealand

PostPosted: Mon 04 Feb 2008, 03:30    Post_subject:  

It is not compiled for Puppy. I got a compile error, so I installed the Slackware 10.2 package from linuxfiles.net, because I looked on the Slackware distrowatch page for the same kernel version as I have as I thought that would find me a slackware of the same era, so it would likely work for me. I can't post a direct link, but it is eay to find.

It works in Puppy 1, but I think it would most likely work in any newer Puppy as well.
Back to top
View user's profile Send_private_message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11024
Location: Arizona USA

PostPosted: Mon 04 Feb 2008, 10:09    Post_subject:  

Why doesn't mtPaint have an exif reader out of the box? Confused How hard would it be to add an exif reader to mtPaint? (Including it in one of the drop-down menus.)
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6428
Location: Auckland, New Zealand

PostPosted: Tue 05 Feb 2008, 00:22    Post_subject:  

I understood Barry was putting gimageview in Puppy, and I think it reads exif information.
Back to top
View user's profile Send_private_message 
muggins

Joined: 20 Jan 2006
Posts: 6681
Location: lisbon

PostPosted: Tue 05 Feb 2008, 02:18    Post_subject:  

I compiled exiv2-0.15, and uploaded as a .tar.bz2, here:

http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=6835

I wonder if probs compiling the latest release are pupversion specific, as I just compiled exif2-0.16 on pup2.16 without problems.
Back to top
View user's profile Send_private_message 
wjaguar

Joined: 21 Jun 2006
Posts: 257

PostPosted: Tue 05 Feb 2008, 02:48    Post_subject:  

Flash wrote:
Why doesn't mtPaint have an exif reader out of the box?

Because it's called mtPaint and not Emacs? Wink

See, I'm not into reimplementing Unix - I have neither time, nor the inclination. And every action which isn't integral to image editing, and can be safely offloaded to some other program, will be offloaded - an entry in "File->Actions" is the most I'll ever do about any such thing. This is true for printing, and equally true for EXIF.
mtPaint 3.20 has a preconfigured action for EXIF display - it depends on 'exif' tool from here - and 'leafpad' to actually display what 'exif' spits out. To use something else for the purpose, use "File->Actions->Configure" to change the corresponding command line.

-= With best regards, Dmitry Groshev, maintainer of mtPaint =-
Back to top
View user's profile Send_private_message 
zandarian

Joined: 14 Oct 2009
Posts: 111

PostPosted: Sun 25 Oct 2009, 13:47    Post_subject:  

To help newbies like me ...

I've tried these options.

The best of them seems to be exiftags.

With the shell script of jeffrey I couldn't see the info: the console closed very quickly. The script I'm usign, that works, is:

Code:
#! /bin/sh

xterm -hold -e exiftags $@


I've put this code in a new file called exif_show, located in ~/my-applications/bin (~ is like /root). After creating it I've given it the execution permissions (right click -> File .... -> Permissions -> a+x ...... -> Yes).

After downloading exiftags I've moved it to /usr/local/bin . I've had to give it also the execution permissions, the way told above.

I've gone to ~/.config/rox.sourceforge.net/OpenWith (you have to show hidden files to see .config in ~ or /root -you can click the eye of the ROX-Filer for that-) (a quick way to reach this folder is to right click on a file while holding shift -> Customise -> OK). Inside I've created a folder called .image (becomes hidden also). Inside I've created a symbolic link to exif_show, by dragging this file while holding Ctrl and Shift at the same time. This way when I right click on an image -> File ... -> Open With... -> I have exif_show at top -> if I click it I see the EXIF data. A quicker way is to right click on the image while holding shift -> click exif_show.

Comments:

1) In Windows if you right click on an image and then in Properties you have this info. But in Puppy if you right click on the image and then in File .... -> Properties it doesn't appear. That's why I've had to do the stated above.

2) Fotoxx is an useful program to see many images that comes with Puppy (it's in the Graphic menu). It has a EXIF button above, in the toolbar. But this data (I think that it comes from /usr/bin/exiv2) doesn't show the main details.

Though the achieved is quite good there are still 2 problems:

a) The width and the height given by exiftags is not correct. It shows more pixels than the real ones (the ones shown by mtPaint, Fotoxx, ...). Provisional solution: use mtPaint or Fotoxx to see the correct details (shown at the bottom, on the left).

b) It's not possible to get the details of an image with a (white or blank) space in its path (in any directory or in the image name itselft). Provisional solution: copy the file to another directory or folder.

I hope somebody can give solutions to both problems.

Regards
Back to top
View user's profile Send_private_message 
wjaguar

Joined: 21 Jun 2006
Posts: 257

PostPosted: Sun 25 Oct 2009, 16:03    Post_subject:  

zandarian wrote:
a) The width and the height given by exiftags is not correct.

For the couple of images I threw at it, the results were like this: both displayed _two_ width/height pairs, for one both were equal and correct, for the other, one correct and the other wrong.
Maybe the images with the wrong data had been resized by something that preserved EXIF tags, but had not adjusted them? Or, as in the second my testcase, adjusted one pair but not the other?
Quote:
b) It's not possible to get the details of an image with a (white or blank) space in its path (in any directory or in the image name itselft).

Put the "$@" in quotes. Like this:
xterm -hold -e exiftags "$@"
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1015s ][ Queries: 13 (0.0182s) ][ GZIP on ]