android
  #1  
Old 10-09-2006, 09:16 PM
EngineeringProblem EngineeringProblem is offline
Junior Member
 
Join Date: Oct 2006
Posts: 4
Exclamation New Sansa utility: Batch JPG converter

I've written a utility (attached) that assists in batch uploading and rotating JPG images (to fit your screen) to your Sansa. Let me know what you think. Source code is included.

Jon

p.s. If you find this useful, please help me distribute as widely as possible.
Attached Files
File Type: zip Sansa_200_Series_JPG_Converter.zip (6.2 KB, 1156 views)
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 10-10-2006, 05:55 PM
redcell redcell is offline
Junior Member
 
Join Date: Jun 2006
Posts: 33
Default

well All i got to say is that this is pretty cool

it does have its flaws but after time with more coding this could become very nice

also do you know just C or can you do vb6 ?
Reply With Quote

  #3  
Old 10-10-2006, 06:34 PM
jeeb's Avatar
jeeb jeeb is offline
Banned
 
Join Date: Aug 2006
Location: Canada
Posts: 85
Default

WOW!


this is really great!

you should send it to adscorp to put on his sansa site
Reply With Quote

  #4  
Old 10-10-2006, 06:59 PM
Jack4L's Avatar
Jack4L Jack4L is offline
Ultra Senior Member
 
Join Date: Sep 2006
Location: Finland
Posts: 1,520
Default

Theres one major problem, when it automaticaly tilts images sideways for the optimal fit onto the screen it mirrors them at the same. Does this on all "normal" photos that are converted to be sideways. So an image thats normaly suposed to show someone pointing to the right, it shows them pointing to the left...

Since all images need to be tilted to be viewed on the sansa, i think it does this for all images? Atleast all my photos.
Reply With Quote

  #5  
Old 10-11-2006, 12:49 AM
EngineeringProblem EngineeringProblem is offline
Junior Member
 
Join Date: Oct 2006
Posts: 4
Default Thanks for the comments

I actually wrote the program and posted the same day I got my Sansa. If you look at the code, it's really simple. .NET has some nice libraries for image manipulation. I'm pretty busy, so I don't see myself enhancing this. Really just wanted to get it out there in hopes that someone will pick it up and run with it.

I've 1000s of photos carefully categorized by folder. The 200 series makes a pretty decent viewer, but is effectively useless in this capacity if you rely on the media converter.

I can view images with writing correctly whether rotated or not, so I don't think it's mirroring. Perhaps some cameras encode orientation info differently?

Please upload wherever you think it appropriate. Thanks!

Jon M.
Reply With Quote

  #6  
Old 10-11-2006, 03:08 PM
smoore smoore is offline
Junior Member
 
Join Date: Oct 2006
Posts: 17
Smile

Thanks Jon, I'm finally able to view pictures on my e260.
I had the problem with mirror images but I used Multiple Image Resizer to flip them all.
Its a shame that program doesn't give you the option to change the RGB setting to 565.
Reply With Quote

  #7  
Old 10-11-2006, 03:24 PM
kailash kailash is offline
Junior Member
 
Join Date: Oct 2006
Posts: 81
Default

i loved ur program, quick and effective, but can u also make a same type of thing for videos?
Reply With Quote

  #8  
Old 10-13-2006, 06:30 PM
EngineeringProblem EngineeringProblem is offline
Junior Member
 
Join Date: Oct 2006
Posts: 4
Default Update

I double-checked and my photos are not being mirrored. It's possible your camera is encoding orientation information.

Today, I was unable to copy the .BMPs to the Sansa unless I was in MSC mode. Might have something to do with updated drivers I've recently installed.

I wish I could do something about video import. The inability of Media Converter to encode long videos is simple incompetance on Sandisk's part.
Reply With Quote

  #9  
Old 10-14-2006, 07:17 AM
Inquisitor's Avatar
Inquisitor Inquisitor is offline
Junior Member
 
Join Date: Sep 2006
Posts: 46
Default

Guys, what do you consider a long video? I've been converting full time movies in avi format without a problem. I bet you are having codec problems.
__________________
Releasing control art restriction to level one.
Reply With Quote

  #10  
Old 10-14-2006, 08:50 AM
Jack4L's Avatar
Jack4L Jack4L is offline
Ultra Senior Member
 
Join Date: Sep 2006
Location: Finland
Posts: 1,520
Default

I agree, the problem might be with having multiple codecs installed, and SMC just reading the wrong pack.

I personaly used to have problems with this, but then I installed this thing called CCCP (Combined Comunity Codec Pack) and dont really have problems with any converting. Atleast not with the program.
Reply With Quote

  #11  
Old 10-14-2006, 10:36 AM
Inquisitor's Avatar
Inquisitor Inquisitor is offline
Junior Member
 
Join Date: Sep 2006
Posts: 46
Default

Quote:
Originally Posted by Jack4L
...but then I installed this thing called CCCP (Combined Comunity Codec Pack)
I doubt anyone outside the former soviet bloc knows what it actually means (try Googling USSR).

I am using K-Lite codec pack, works like a charm.
__________________
Releasing control art restriction to level one.
Reply With Quote

  #12  
Old 10-27-2006, 03:14 PM
EngineeringProblem EngineeringProblem is offline
Junior Member
 
Join Date: Oct 2006
Posts: 4
Default Screen reader

Just FYI, if someone was enterprising, it wouldn't be too hard to write a text reader for the Sansa. In the above code, a bitmap is created. You can create a Graphics object based on the bitmap, then draw the strings manually. You'd have to handle word-wrap yourself. When the next string was off the screen, start a new bitmap.

On the UI, you'd specify a .TXT file (which can be output from Word), and a folder where the .BMPs would end up.

I'd think an experienced .NET developer could write this in about a day.
Reply With Quote

  #13  
Old 11-18-2006, 11:55 AM
sirWest sirWest is offline
Junior Member
 
Join Date: Nov 2006
Posts: 4
Default

Quote:
Originally Posted by EngineeringProblem
Just FYI, if someone was enterprising, it wouldn't be too hard to write a text reader for the Sansa. In the above code, a bitmap is created. You can create a Graphics object based on the bitmap, then draw the strings manually. You'd have to handle word-wrap yourself. When the next string was off the screen, start a new bitmap.

On the UI, you'd specify a .TXT file (which can be output from Word), and a folder where the .BMPs would end up.

I'd think an experienced .NET developer could write this in about a day.
i think i can do this even faster in VB6... but i doubt in it's functionality... too many "pages"... let's say 1 A4 page from pdf or whatever, it comes about 30 pages or so?? it will take MUCH more space for 1 "document"...
Reply With Quote

  #14  
Old 11-21-2006, 05:03 PM
FragMonkey FragMonkey is offline
Junior Member
 
Join Date: Nov 2006
Posts: 17
Default

I am too having the mirroring problem... what can be done?
And I did not use a camera for these pictures. Its just some stuff I made in photoshop that I wanted to show people. Is it because I had to open the images in and save them as a jpeg file first before using this utility, because they werent in jpeg format from the start?
Reply With Quote

  #15  
Old 11-21-2006, 05:15 PM
CornMonkey CornMonkey is offline
Junior Member
 
Join Date: Nov 2006
Posts: 2
Default

when i used this program, all the images i wanted to upload were mirrored. but once i copy/pasted them onto the correct folder on my sansa, they showed correctly.
Reply With Quote

  #16  
Old 11-21-2006, 05:22 PM
FragMonkey FragMonkey is offline
Junior Member
 
Join Date: Nov 2006
Posts: 17
Default

oooh but I used the media converter to put them into my sansa. When I try to just copy/paste into the correct folder, I get an error about the device only accepting playlist, folder, and audio files.

What folder are you exactly pasting them into?
Reply With Quote

  #17  
Old 01-08-2007, 06:58 PM
avshya avshya is offline
Junior Member
 
Join Date: Dec 2006
Posts: 1
Thumbs up Congratulations really cool!!!

Yeahhh Now I have a lot pictures of my best photos, very cool, congratulations again....
Reply With Quote

  #18  
Old 01-17-2007, 06:09 PM
xXLoStXx xXLoStXx is offline
Junior Member
 
Join Date: Jan 2007
Posts: 5
Default

The images are NOT mirrored.

At least once on the Sansa.



When you look at them from the computer, they are mirrored.


But once you transfer the images to the Sansa, they are back to their original position.


AT least in my case. x]


Nice program. I'm definitely going to be using it often
Reply With Quote

  #19  
Old 01-28-2007, 12:48 PM
zontar zontar is offline
Junior Member
 
Join Date: Dec 2006
Posts: 3
Thumbs up

Jon, thanks a bunch for the neat little program

I converted it to VB .NET 2005 and attached the zipped project in case anyone else wants to enhance it in VB .NET. One thing that would be nice is a progress bar. I wish I had time to work on it, but I don't .

I added a camera icon to the .exe (the exe is in the Bin\Debug folder).

I also had the problem of the images being mirrored in windows but were fine when put into the sansa (not a big deal).
Attached Files
File Type: zip Sansa_e200_JPG_Converter_VB.zip (75.8 KB, 119 views)
Reply With Quote

  #20  
Old 01-28-2007, 01:16 PM
jason novak jason novak is offline
Junior Member
 
Join Date: Jun 2006
Posts: 70
Default

The reason it's mirrored is because they do something weird with the height in the bitmap header. You must flip the picture, and then the height needs to be set to -220 instead of 220. Then it will appear correct in windows and in the player. There doesn't seem to be a way to set this in .net using the built-in graphics functions. I had to write out the image as normal, and open the file as a binary file and manually set the new height in the header by changing the appropriate bytes
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 11:49 PM.