Photo Frame

From YobiWiki
Jump to navigation Jump to search


I bough on Ebay a photo frame for 20 GBP:
7.2 x 6 Digital Photo Picture Frame
This has no brand but it shows pictures, mp3 and even videos.

Original description

  • Choose from 14 different viewing modes, including:
    • Zoom
    • One loop
    • Continuous repeat loop
    • Slideshow
    • Rotation
    • Single picture view
  • Supports the Following Memory Cards
    • Compact Flash (CF)
    • Secure Drive (SD)
    • Memory Stick (MS)
    • Multi media Card (MMC)
    • Smart Media (SM)
  • Specifications
    • Video Formats Supported: MPEG1 (VCD), MPEG2 (DVD), MPEG4 (DIVX/XVID) & JPEG
    • Audio Format Supported: MP3
    • Display: 6.5” (17cm) TFT LCD
    • Speaker: Internal 2*2W
    • Output Port: One stereo port & one AV (audio/video) port
    • Video System: Supports NTSC/PAL
    • Menu language: English & Chinese
    • Power Consumption: 15W
    • Dimensions: 7.2 x 6 x 1.5” (18.5 x 15 x 4 cm)
  • Included
    • AV Output Cable
    • Remote Control
    • Instruction Manual

Resizing script

No need for 3456x2304 pictures if you want to see them on those small photo frames.
E.g. the Philips 7FF1AW is 720x480.
Resize your pictures and you'll be able to put much more of them in your frame.

Here is an example script, it requires identify from ImageMagick and tools from netpbm.
Run it at the root of the directory full of your big pictures, it will resize all of them (and delete the original pictures, be careful!!)
Here it is 640x480, change SCALE data if you need another size.

for i in $(find $PWD -name "*.[Jj][Pp][Gg]"|grep -v "_s\."); do
echo "Convert $i"

#This requires ImageMagick to get the size of the image:
w=$(identify -format "%w" $i)
h=$(identify -format "%h" $i)

#If you don't (want to) have ImageMagick, you can get w & h with this line:
#eval $(jpegtopnm $i 2>/dev/null |pnmfile|grep stdin|sed 's/^.* \([0-9]\+\) by \([0-9]\+\) .*$/w=\1;h=\2/')

if [ $(($w*3)) -lt $(($h*4)) ]; then
jpegtopnm $i |pnmscale $SCALE |pnmtojpeg --quality=95 > ${i/./_s.}
rm $i


cf Avidemux