Page 1 of 2

JP2 File Format

Posted: Tue Jun 26, 2007 11:06 pm
by Siberia
Hello all/Bonjour a tous, :)

I just joined this forum hoping to find a solution to a problem I am having opening VERY large (150 MB or more) JP2 files from the HiRISE web site.

I have installed the 2 or 3 add-ons required for JP2 files. My system has 3 GB of RAM with a swap space of over 7 GB. Pentium 4 with hyper-threading running at 3 GHz. I am testing version 1.91.1 of XnView on windoze XP, SP2.

Whenever I try to open a file, it always returns an error message that I do not have enough memory. ???????? :shock:

Any ideas on how to make this work?

Thanks!!

Current issue…

Posted: Tue Jun 26, 2007 11:29 pm
by Clo
:arrow: Siberia

:) Hello ! Bonjour, Welcome aboard - Bienvenue à bord !

• The issue of very big image-files display is discussed currently, i.e. HERE

- Indeed, your hardware is quite “comfortable” to perform this, but one ought consider too the set buffers sizes
and the method¦s the programme uses in such a situation…

• Anyway, maybe a link to download the recalcitrant image could help to test ;)

:mrgreen: Kind regards,
Claude
Clo
Note : BTW, there is a French section here too…

Posted: Wed Jun 27, 2007 1:15 am
by Siberia
Bonjour Claude et merci de votre reponse.

Here is a link to one of the files that I am trying to view. Beware it is HUGE (238 MB).
http://hirise-pds.lpl.arizona.edu/downl ... .QLOOK.JP2

Some are over 800 MB in size. :shock:

Merci!

A tenth

Posted: Wed Jun 27, 2007 2:04 am
by Clo
:) Hi again…

• I attemped to download the file, unfortunately WinDung stopped the download "as ended" @ ~ 24 MiB…

- Thus a tenth of the size you announce… :?

- I try a test, though…

EDIT : Yep ! I live dangerously…
- The (partial ?) file has almost hung the PC… Finally, XnView displayed *peanuts*,
and I'd to reboot the whole caboodle: Router PC…
- I guess I've to repair my bi-proc. which has 1 GiB of RAM… Image

:mrgreen: KR
Claude
Clo

Posted: Wed Jun 27, 2007 8:00 pm
by dcakovan
Photoshop CS2 I use at work was the only program that could open those jp2 hirise files. None of other applications I tried (xnview included) was able to open it.

Posted: Thu Jun 28, 2007 3:28 am
by JohnFredC
Also, keep in mind: that image is one of the smaller of the full resolution files available on the HiRISE site. An image file I recently downloaded is 1.1 GB and 30612 x 69592.

The jp2 add-in for IE (available on the HiRISE site) does a fine job of viewing these files, so I have pretty much given up on using any other tool, much as I might like to.

Great fun to "fly over Mars" with these images, though. Reminds me very much of "flying" over the 4-Corners area in the American Southwest or the Empty Quarter of the Sahara using Google Earth. You can activate the IE panning tool (click once on the middle mouse button) to smoothly amd freely scroll around the images (I really really wish XnView had that feature!!!). You can fly around for a long time before encountering the edges of the image.

I've downloaded 10 full-resolution HiRISE images so far and enjoy them thoroughly. They look fantastic on my 24" monitor.

Posted: Thu Jun 28, 2007 6:07 pm
by Danny
Well, thing is, the filesize is only that. The size of the compressed file. If you want to display the file, you'll have to decode it, and then it takes up as much memory as if it wasn't compressed.

Example:
200MB file, 5:1 compression = 1GB memory needed to display the whole image.

Posted: Thu Jun 28, 2007 6:10 pm
by JohnFredC
Danny wrote:If you want to display the file, you'll have to decode it
...or at least the portion that fits the viewport.

Posted: Thu Jun 28, 2007 6:13 pm
by Danny
JohnFredC wrote:
Danny wrote:If you want to display the file, you'll have to decode it
...or at least the portion that fits the viewport.
I don't know - is that possible for JP2 images?

Posted: Thu Jun 28, 2007 6:43 pm
by Siberia
dcakovan wrote:Photoshop CS2 I use at work was the only program that could open those jp2 hirise files. None of other applications I tried (xnview included) was able to open it.
Mmmmm... Yeah... Unfortunately, my budget does not allow me to purchase such a program package. :( I whish I could though.

:D

Posted: Thu Jun 28, 2007 6:53 pm
by Siberia
So, I made another attempt with a "smaller" file (76 MB) and was able to open it and save it as a PNG and view the whole file with PSP. Amazing picture quality. :)

Now, regarding your earlier comment about the fixed buffer sizes....

How about if you had a default buffer size, whatever you have set it to be, PLUS optional options to choose a percentage of the available free memory? For example, on my system I have 3 GB, so:

Buffer size= 10% of free memory = ~307 MB
Buffer size= 20% of free memory = ~614 MB
Buffer size= 50% of free memory = ~1,500 MB

The process of opening/converting large file (500 MB+) would surely be a slow process, but it would at least work. :D

Do you think that it is possible to modify your code to enable such a feature? :wink:

Regards,

:D

Posted: Thu Jun 28, 2007 8:47 pm
by dcakovan
Another thing I have been doing with huge images is using this free Zoomifyer EZ tool
http://www.zoomify.com/

Posted: Fri Jun 29, 2007 7:49 am
by nightflyer
I have found something like this:

http://vlivviewer.free.fr/vliv.htm

Posted: Fri Jun 29, 2007 12:11 pm
by JohnFredC
Now we're talking!!! Apparently one CAN load a gigantic "normal" jpg in segments!

No zoom, no jp2, no intelligent "look-ahead" for segments, etc., so certainly not ideal, but VLIV does work the way I conceive such a viewer to work.

Thank you for this link!

Posted: Fri Jun 29, 2007 3:25 pm
by JohnFredC
Correction: VLIV does zoom with the mouse wheel.