Back to Camera Hacker |
|
using Sony digital camera as a picture viewer
I have seen the KODAK EASYSHARE Picture Viewer at CostCo for as low as $99, whereas it retails for $149.95. But you know, I've been thinking, I have a Sony Cyber-shot DSC-T11 digital camera that is almost just as small and as light as the KODAK EASYSHARE Picture Viewer. The DSC-T11 is just one inch longer and quarter inch thicker, but it also has a 2.5" LCD and the ability to shoot pictures as well. So I figured, why can't I use my DSC-T11 digital camera as a picture viewer? And why can't you, with your DSC-T1, DSC-T33, DSC-T7 or even the other Sony digital cameras do the same? Now, if I only shot with the DSC-T11 camera, then this point is moot . . . because I can already shoot and view pictures with it. But what if I want to use the DSC-T11 as a picture viewer, while using other cameras to shoot pictures? Maybe even view pictures that are downloaded from the web or given to me by a friend. With that thought, I started playing around with the files and folders on the Memory Stick Duo. It turns out that only folders in the DCIM directory on the Memory Stick Duo are recognized. And the folders has to be named in the following format, where "xxx" is any three digits: xxxMSDCF I dumped a lot of pictures into the 101MSDCF directory created by the camera. The pictures were random JPEG files that I found over the Internet. Some displayed correctly, other caused a "File error" message on the LCD. It turned out that the Sony DSC-T11 digital camera was able to display any JPEG pictures generated on any digital camera that followed the Design rule for Camera File system. I was able to display JPEG pictures generated from my Panasonic PV-GS50S digital camcorder (IMGA0462.JPG) and my Nikon CoolPix 950 digital camera (DSCN0015.JPG). The file has to be named in this format, where 'x' is any letter or digit while 'y' is any digit. xxxxyyyy.JPG
Chieh Cheng
That is as far as my success goes. So far, I couldn't get any images that I generated myself to work. I have tried to load up TIFF and RAW files, save them in JPEG in Paint Shop Pro, Adobe PhotoShop, and Canon ZoomBrowser. None of the images generated worked on the DSC-T11. They all say, "File error". I even downloaded Photo Studio 2.62, a free software to view and manipulate JFIF and EXIF data, to manipulate the images . . . still doesn't work. Two files that have the exact same JFIF or EXIF data would cause the DSC-T11 to behave differently; one would display, the other would not. So far, I'm baffled at the difference. If anyone has any ideas, I would love to hear them. By the way, I suspect this hack will work with other digital camera and digital camcorder brands. I am quite tempted to try it on my other camera. I just wish there are more than 24 hours in a day. 8-)
Chieh Cheng
Don't know whether you need this anymore, but here is a program that converts images into camera-viewable format http://www.david-taylor.pwp.blueyonder.co.uk/software/imaging.html I don't know how it exactly does it, but it works.
---
Thanks for the link. TVwriter seems like a neat software. But I would still like to know how it is able to put the picture back on the memory card so that it can be viewed by the camera. TVwriter proves it is possible. And it is obviously possible because the camera itself can do it . . . but what's the trick?
Chieh Cheng
#!/usr/local/bin/python
Ewan
Hey, thanks, Ewan! It works. I processed a few pictures with your Python script and they all displayed correctly on my DSC-T11. It's awesome. I thought of a few improvements for the script, such as automatically renaming the photograph to the correct name format. When I have time, I will improve the script and post it here.
Chieh Cheng
Attached is verion 1 of my improvement to the script. I have changed the script name to DCF.py and it now save the image file to DCF_xxxx.JPG, where xxxx is an unique number in the directory. Attached File: DCF.py
Chieh Cheng
Here is version 2 of the DCF.py. I made three changes since version 1: 1. check for valid input file name I'm going to find the dock for my DSC-T11, put it on my desk, and use the camera as my electronic photo frame. Attached File: 1 - DCF.py
Chieh Cheng
Ewan, Just wanna say thanks. I have started using the DSC-T11 as my electronic photo frame. I was glad to find that the DSC-T11 does not turn off after a certain time of inactivity.
Attached Image:
Chieh Cheng
Chieh you're a star! Thanks for the script.
.M.
.M., Ewan is the star, he came up with the script. I've only asked the question.
Chieh Cheng
Hi, i dl your program and I dont have any idea how to use it. Can you write a walkthrought that will show us how to do the conversion? Thanx
Celeste
Celeste, It's a python script. You can run it on the command-line: Usage: DCF.py "image 1" [ . . . "image n" ] What operating system are you using?
Chieh Cheng
The python script(s) posted here work great for some digital cameras, but not for all those that TVWriter manages to make compatible images. Anyway, it's still unclear what exactly is the trick here. Why do the images ran through the script work with (some) digital cameras? Here's a minimal version of the python script posted here: import sys, Image As you can see, the only action necessary is saving the input image into a JPEG using the Python Imaging Library. The YCbCr-conversion step is not needed. So what exactly does the Python Imaging Library do to the image when saving it into a JPEG? Why does the output image work when saved with Python Imaging Library, but not when saved with for example The GIMP? The script works, that's great, but it's still unclear why.
---
Yes, I've tested, you just have to open and then save the image using the Python Imaging Library (PIL). The PIL comes with a program, pilfile.py, that prints out some info about images. I used it with two images, and that's the result: pilfile.py -i DCF_0004.JPG DCF_0005.JPG The file DCF_0004.JPG works in the camera, the other one doesn't (it was saved using The GIMP). It looks like jfif_unit must be 0 and jfif_density should be (1,1) - but I haven't tested other values. The document JPEG File Interchange Format explains what are these variables for, and it's worth reading.
Rodrigo Rocha
Additionaly, I read on the jfif3.pdf document that the JPEG file can include a thumbnail of itself. Unfortunately, I haven't found a way to include the thumbnail using the PIL. Without this, my digital camera (DSC-S60) displays a blue filled rectangle as a thumbnail.
Rodrigo Rocha
can anyone send me tutorial on how to use python to convert the pics. thanks.
James Mckinney
James, refer to the "Can i use my camera to read an ebook ?" thread in the TrackBacks below to learn how to set-up python.
Chieh Cheng
Ok, I still dont get it(im kind of a nub), I created the python file but how do i run it. I'm using WinXP. I dont know where to put the files and how to run it.
James Mckinney
Great! TVWriter worked for my Olympus C-350 Zoom also.
Hartej Pal Singh
Hartej Pal Singh: However, if the python script posted and discussed in this thread happens to work for your camera, you probably want to save the money and use it instead.
---
Help please!
James Mckinney
Based on the find that Python Imaging Library produces JPEGs that can be viewed with Digital Cameras (well, with some of them anyway), I've created a PyQt-based highly TVwriter-inspired GUI for converting images with PIL. If you're interested, it can be found here:
Dace
Ok Can anyone give a complete dummies guide (step by step)on how to use the python script. I have no experience with python or programming. I'm running windows xp. Thank You.
Gerardo Rodriguez
Nice work on the script, and Camerizer, ever think about hosting it on www.sourceforge.net ??
wts
You can also just use mspaint (Paint in Windows, the default image editor). Since this is the first hit on Google right now, I hope this helps a few people. TVView.exe, a closed source program with a cost of $70 for Windows, effectively opens, saves, then closes the .jpg's. Once you've edited your pics, open them again with Paint, save, close paint, copy back to the camera. You should be able to view them on the camera again. James,
Matt
That is awesome, Matt! I've updated the Wiki page with the new information you provided.
Chieh Cheng
The quality setting is a bit high; I recommend reducing it to 90 or 95 to avoid excessively large files. For some background, see: [Image-SIG] PIL image resizing quality seems a little rough, any workarounds?
Observer
Just what I need, but how do you run the script correctly? What do you do? I'm running Windows XP, and I just installed Python, but dont really know how to use it. Pics are going on my Sony DSC-T10. BTW, the Microsoft Paint trick works great, for one at a time... Any way to do it as a batch in Photoshop??? Thanks Alford Hi Alford! you may also consider investigate ubuntu, an friendly and easy Linux as a free (as freedom) alternative to your winXP meanwhile in win all you need is open a command line and type "DCF.py input_image1.jpg input_image2.jpg" where input_imageX.jpg is the name of your original images. Wences Hi ! Take any image, the format does not matter, open it in PaintShopPro and resample I copied this file to the memorystick. When I played it back with my camera, I could view I also tried the TVwriter software. It changed the image in a way so that it could be rotated Gerhard Fuchs I tried the script on my Sharp Zaurus, which already has most of python 2.4.1 installed. So I searched further and found this freely available software from Panasonic. Go here and click on "download" on the left. This takes you to an agreement, just select "I Agree" Jon J Hi! I'm owner of Sony DSC T77. My camera can show any *.jpg files only with native size, for example, 1944x2592px (5M), but cannot resize or rotate it (aim is to do that to use camera as reader). As I understand, there must be exif data in every file. Can anybody tell me, how to add appropriate data automaticaly to multiply files (I've tried all listed here ways, but nothing helps). Roman Gurinovich
TrackBack
Title: digital camera as a portable image viewer Title: importing standard mov files from PC to digital camera Nikon Coolpix 3700 Title: Can i use my camera to read an ebook ? Title: Movies on Sony T! Related Links
Add Comment
Messages, files, and images copyright by respective owners. |
52 Users Online
$10000-above $5000-$9999 $2000-$4999 $1000-$1999 $500-$999 $200-$499 $100-$199 $50-$99 $25-$49 $0-$24 Gift Certificate |
|
Copyright © 1998 - 2009 by Chieh Cheng. All Rights Reserved. |