I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / MISC Areas / Mattel JuiceBox
Picture Format

New MessagePicture Format (modified 0 times) robgrz
Profile
A couple of people mentioned the photo format so here it is:

240x160 packed 12bit color with 4 bits each for R,G,and B.

So, if you were to look at the file it would be:

RG BR GB RG BR GB RG BR GB ...

Where each letter is 4 bits. If there is any confusion, make a file that is all red, green, or blue, convert it in the included software, and load the output in a hex editor. It should be pretty obvious.

File must end in .jbp

-Robert

03-10-2005 11:26:35

New MessageRE:Picture Format (modified 0 times) GWIZAH
Profile | Email
so has anyone written a converter yet for Gimp?
03-11-2005 10:12:13

New MessageRE:Picture Format (modified 0 times) teched
Profile
Thanks for the image format info.

I wrote a small converter - it only converts 24 bit data to 12 bit data. I have used ImageMagick's convert to convert 240x160 .rgb images from The Gimp to a more raw (headerless?) 24bit rgb file, then used 24to12.pl to reduce the bits per pixel for viewing on my JuiceBox.

24to12.pl is available from http://teched.net/~jacob/ce/juicebox/

Jacob

03-16-2005 02:30:13

New MessageRE:Picture Format (modified 0 times) Tom61
Profile | Email
Could you give a bit more detail on what needs to be done? Or a small How-To. I'm unfamiliar with convert, I didn't even know I had it installed until now.
05-18-2005 00:13:24

New MessageRE:Picture Format (modified 0 times) teched
Profile
> Could you give a bit more detail on what needs to be done? Or a small How-To.

How-To do what, exactly?

> I'm unfamiliar with convert, I didn't even know I had it installed until now.

man convert

Here is an example conversion I used:

convert -size 240x160 $INFILE -resize 240x160 rgb:$OUTFILE

Then process $OUTFILE with 24to12.pl for viewing on a JuiceBox.

Final file size should be 57600 bytes: 240x160 x 1.5

Jacob

05-19-2005 00:54:39

New MessageRE:Picture Format (modified 1 times) Tom61
Profile | Email
Hmm... That's what I did and it isn't coming out right.

When I run the script I get alot of 'print() on closed filehandle O at ./24to12.pl line 89.' up on the screen. I put it on the JB and the image is odd, as if it drew the lines out of order. Kind of like it drew the first half of the image on even lines, and the second half on the odd. Also, it's roughly twice the size as you specified at 112.5K

Could take a look at my files and see if you can find where I went wrong?
Orginal:
http://tom61.arcadecontrols.com/test.rgb
Final:
http://tom61.arcadecontrols.com/test2.jbp

05-19-2005 14:40:35

New MessageRE:Picture Format (modified 0 times) Tom61
Profile | Email
Ah-ha! I see what I did wrong, I presumed that your script just needed one file name passed to it and would manipulate that file, but looking at the script reveals that it requires a separate file to output to.

Thanks for the utility!

./24to12 test4.rgb test4.jbp

05-19-2005 15:10:48

New MessageRE:Picture Format (modified 0 times) Aitvo
Profile
Does anyone know how to convert a jpg to rbg with imagemagick (or any other tool)? All I've gotten so far is garbage images lol.
06-05-2005 14:33:47

New MessageRE:Picture Format (modified 0 times) teched
Profile
>Does anyone know how to convert a jpg to rbg with imagemagick (or any other tool)?

Yes. (Assuming the rbg was a typo for rgb.)

Perhaps you want an answer to a question you did not ask?

Try adding an exclaimation mark to the resize value in the previously mentioned convert command line: -resize 240x160!

Jacob

06-05-2005 16:12:04

New MessageRE:Picture Format (modified 0 times) juiceboxvideos1
Profile
Has anyone tried getting a 1gb or 512mb sd\mmc card,
play a movie or something on your computer and pictures every half-a-second,
save them in low quality (so you can hold more and make it run faster on the juice box)
and put them on the juice box!

When in picture viewer, hold down >> (fast forward) and voila!
no sound but a slowish movie! just a thought.

Hint: once it went through all of the pictures once, do it again! it will run faster.

06-09-2005 09:11:53

New MessageRE:Picture Format (modified 0 times) teched
Profile
> 24to12.pl is available from http://teched.net/~jacob/ce/juicebox/

I wrote and tested the script under Linux originally. (Ubuntu Linux on PPC)

Today (6/19/2005, three months later) I tested the script on Windows 98SE with ActiveState's ActivePerl. It worked for my standard test images: red, green, and blue. The test images are also now available from the url above.

I do not have regular access to Microsoft Windows systems for testing. Can others confirm functionality or provide bug reports for additional configurations and Operating Systems?

(Email address is, and always has been, in the script.)

Jacob

06-19-2005 20:25:21

New MessageRE:Picture Format (modified 1 times) Skibo
Profile | Email
Thanks for the info Robert, I used it to make a quick GUI based java app to do conversions with.

It works on jpeg,gif,and png but does not automatically resize. Source included in jar, only tested in OSX.


jpbConverter.jar

07-15-2005 00:17:01

New MessageRE:Picture Format (modified 0 times) Heratiki
Profile
Just tested the Java app in Windows and works fine with the newest form of Sun's Java... Would like to ask a favor though... I know nothing of Java and am trying to convert more than one picture at a time (I'm Turning my JB into an Ebook reader) is there anyway it could be edited so that it will accept multiple files... (JBP Conversion App (Java) Tested on Windows XP SP2 AMD 64 2800+ 1.0GB RAM)

Thanx...
Heratiki

09-19-2005 01:50:12

New MessageRE:Picture Format (modified 0 times) spangemonkee
Profile
http://s90602692.onlinehome.us/CSU/?progID=491200000707

software for windows

09-02-2006 21:17:35

New MessageRE:Picture Format (modified 2 times) WestfW
Profile
/*
I guess more for a feeling of completeness than anything else,
here is the 24bit to 12bit converter written in generic C. It's
so basic it should compile and run everywhere; it's been tested
on macosx. Compile and run like "24to12 <24bitrawinfile >foo.jbp"

"Released to the public domain."
*/

#include <stdio.h>

int nibcount = 0;

void put4bits(int bits)
{
static unsigned char outbyte;

outbyte = (outbyte << 4) | ((bits & 0xF));
if ((++nibcount & 1) == 0) /* Have a full byte every two nibbles*/
putchar(outbyte);
}

main()
{
int inbyte;

while(1) {
inbyte = getchar();
if (inbyte == EOF)
break;
put4bits((inbyte)>>4);
}
}

10-23-2006 17:29:09

New MessageRE:Picture Format (modified 0 times) WestfW
Profile
I've also tried to patch ImageMagic directly to support the jbp file format, since it seems like it ought to be a reasonable extension of the existing "rgb" raw format. It seems more difficult than I would have thought, though. I had lovely patched code but couldn't figure out how to get the new format recognized in the command line. I think I'd have to know xml, or have an up-to-date automake, or otherwise be more current than I am... Sigh.

However, it turned out to be an easier, if somewhat more invasive, patch to add "-depth 4" support to the existing "rgb" format, and I now have a "display" that will display .jbp files, and a "convert" that will output them. I want to do a bit more playing to see if I can get the .jbp extension to imply "rgb: -size 240x160 -depth 4", though.

10-24-2006 02:07:36

New MessageRE:Picture Format (modified 0 times) robwaddell
Profile | Email
I can't get my pictures to come out right. I resized them in the gimp to 240 x 160 then saved them as jpg, gif, bmp, and png. Then used the java app to convert the jpg, gif and png. Then used the app ChrisWare Juicebox Image viewer to convert the bmp image. All of them come out the same. The image is there, but there are lines through it like that row of pixels is out of order or messed up.

I do not have the oem juicebox mp3 adapter, but rather soldered a USB to SD/MMC adapter straight to the connector according to the schematic. What could I be doing wrong?

Is it my soldering or my picture?

By the way the files are 56.2KB and I'm using a SanDisk 1 GB SD card.

Oh and I put an mp3 on the card and it worked.

Thanks in advance

12-01-2006 22:19:40

New MessageRE:Picture Format (modified 0 times) jbfan
Profile
If you can play an mp3 then everything is connected correctly.
There is likely something wrong in the picture conversion process.

Just added a Public Domain test image to the "lesser hacks" page.
Try that and see if it displays correctly.

-J

12-03-2006 13:42:39

New MessageRE:Picture Format (modified 0 times) simenzo
Profile
The links to the perl & java 24-to-12 bit converters are no longer working... does anyone have a converter to share?
07-23-2007 10:30:15

New MessageRE:Picture Format (modified 0 times) madc0w
Profile
Are there any converters that can increaes the image quality better than that of the Juicebox software that comes with the MP3 kit?
09-20-2007 16:01:10

New MessageRE:Picture Format (modified 0 times) Tom61
Profile | Email
Nope. If you try to pack in more data than that converter's output, the screen just scrambles.
09-21-2007 16:03:59

New MessageRE:Picture Format (modified 0 times) Komb
Profile
Hi, New here.

As the Perl 24to12 is un-reachable, and I can't get the Java one working.

I've recreated it using some code from the C in this list.

It can be found at:

http://glankonian.com/~lance/24to12.zip

As I had to use Gimp to scale and pad the images then ImageMagick to convert to raw 24bit Then use this to convert to JuiceBox Picture.

I wrote a more advanced converter:

http://glankonian.com/~lance/picture2jbp.zip

You need the perl::imager library to use it.

But it will convert paletted to rgb if necessary, rotate it necessary, scale then pad as required, then convert to .jbp

takes two filenames. picture.in and picture.jbp

Could be improved, but it works.


Komb'
11-09-2007 20:21:02

New MessageRE:Picture Format (modified 0 times) WestfW
Profile
Ah; I'm glad someone found the C code useful. And did something useful with it too!

Earlier, someone asked "Are there any converters that can increaes the image quality", and the answer provided was that you couldn't jam any more bits into the display than the original SW provided. However, it seems to me that it might be possible to to a better job interpolated a high-res image into those few bits, the question being: are there any graphics converters that are really optimized to improving the look of low-resolution images derived from a higher resolution original? (Sorta like the way anti-aliasing works for line art?) Unfortunately, I don't know the answer

11-10-2007 19:06:01

New MessageRE:Picture Format (modified 0 times) Komb
Profile
RE: Image Quality

Seems anything will produce better images than the actual JB picture converter.

Here are some sample pictures:

http://www.glankonian.com/~lance/JuiceBoxPictures.zip

The .gif is the original VG Cats image.
dance4gill.jbp is created using the original Windows converter that came with the mp3 kit.
dance4gill2.jbp is created using picture2jbp.pl

Similar or better results can also be obtained using your favorite image editor (Photoshop, gimp, imagemagic, etc) to 24bit raw then through a 24to12 converter.

11-11-2007 21:56:41

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3