JP2 File Format

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Siberia
Posts: 5
Joined: Tue Jun 26, 2007 10:50 pm
Location: Rockland, Ontario

JP2 File Format

Post 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!!
Serge

8)
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Current issue…

Post 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…
Old user ON SELECTIVE STRIKE till further notice
Siberia
Posts: 5
Joined: Tue Jun 26, 2007 10:50 pm
Location: Rockland, Ontario

Post 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!
Serge

8)
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

A tenth

Post 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
Old user ON SELECTIVE STRIKE till further notice
dcakovan
Posts: 52
Joined: Tue Sep 05, 2006 1:19 am

Post 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.
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Post 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.
John
Danny
Posts: 578
Joined: Sat Sep 04, 2004 5:09 pm

Post 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.
Get the bugs fixed, THEN start adding features. It sucks, but someone has to do it.
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Post 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.
John
Danny
Posts: 578
Joined: Sat Sep 04, 2004 5:09 pm

Post 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?
Get the bugs fixed, THEN start adding features. It sucks, but someone has to do it.
Siberia
Posts: 5
Joined: Tue Jun 26, 2007 10:50 pm
Location: Rockland, Ontario

Post 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
Serge

8)
Siberia
Posts: 5
Joined: Tue Jun 26, 2007 10:50 pm
Location: Rockland, Ontario

Post 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
Serge

8)
dcakovan
Posts: 52
Joined: Tue Sep 05, 2006 1:19 am

Post by dcakovan »

Another thing I have been doing with huge images is using this free Zoomifyer EZ tool
http://www.zoomify.com/
nightflyer
Posts: 98
Joined: Tue Sep 26, 2006 7:41 am

Post by nightflyer »

I have found something like this:

http://vlivviewer.free.fr/vliv.htm
-=nightflyer=-
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Post 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!
John
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Post by JohnFredC »

Correction: VLIV does zoom with the mouse wheel.
John
Post Reply