.jps Stereoscopic JPGs - convert to anaglyph

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
antzpantz
Posts: 1
Joined: 2011-08-21T10:28:57-07:00
Authentication code: 8675308

.jps Stereoscopic JPGs - convert to anaglyph

Post by antzpantz »

Hi there,

I recently came across the .jps Stereoscopic JPG format which is essentially two stereoscopic images (left and right) concatenated side-by-side.
The .jps files I found were here: http://widescreengamingforum.com/galler ... d-surround

There don't seem to be a lot of viewers out there for these images. The best one is JPS which does many formats like red/blue and shutter glasses.

Sometimes it's a bit of an inconvenience to download a program for this, so I thought I'd script it since I couldn't find anything on Google!

Code: Select all

@echo off
for %%a in (*.jps) DO convert %%a -crop 50%%x100 "%%~na.jpg"
for %%a in (*.jps) DO composite -stereo 0 "%%~na-0.jpg" "%%~na-1.jpg" "%%~na.jpg"
That's my DOS script. Very simple and easily portable to Linux. Essentially just a crop vertically down the middle and them compositing the two images.

I thought it maybe an idea for someone out there to create a website (via PHP and Imagemagick) which would automatically produce an anaglyphic image from a .jps! At least this is a start for anyone who's searching for a solution.

Cheers,
--antzpantz

edit: BAH! There is a 'popular' JPS viewer by nVIDIA- the problem is that Googling "JPS viewer" does not yield such a result!!! nVIDIA have crappy SEO on their site!
Post Reply