Page 1 of 1

Help converting 32k tif image of Mars!

Posted: 31.07.2007, 02:54
by Ozark
I downloaded a mars jpeg image with 23040x11520 dimensions and resized it to 32768x16384 tif. But i do not know how to convert it to Png or Jpg to vt it.

I've tried imagemagick, irfanview, Photoshop, vips, but none seem to be capable. :(

when i resized it in Photoshop, i was only able to save it as tif now i cannot convert it to anything else. It ussually comes down to a memory issue(not enough) or a cannot decode issue(vips). Anybody know a way of converting without running out of memory. I have 2GB Dualchannel Ram and 4096mb paging file.

ftp://ftpflag.wr.usgs.gov/dist/pigpen/m ... im1_color/ :here is where the file is located.

Ozark

Posted: 31.07.2007, 04:11
by LordFerret
I don't know about Photoshop (I don't have it), but Paint Shop Pro (which I do have) has a batch conversion utility which allows you to batch convert from one file format to another... including tif to jpg (or) png.

Re: Help converting 32k tif image of Mars!

Posted: 31.07.2007, 07:32
by rthorvald
Ozark wrote:Anybody know a way of converting without running out of memory. I have 2GB Dualchannel Ram and 4096mb paging file.


Photoshop uses your HD as a scratch disk (sort of like virtual memory). If you have limited free space on it, it will work slow, or not be able to perform what you want. So, go into preferences and adjust the scratch disk settings (select a different hard drive with more room, for example).

BUT: why re-size a 23k JPG to 32k? The quality loss is too great to be of any use. It would be much better to reduce it to 16k, and save it as PNG.

- rthorvald

Posted: 31.07.2007, 08:13
by cartrite
I agree with rthorvald, you should probably scale it down to 16k. But if you wish to continue with the 32k size you'll have to define a large pixel cache for Image Magik as well if your going to use the virtualtex script to vt it. Before running IM or virtualtex, Try

Code: Select all

TMPDIR=folder
on Cygwin command line before using Image Magik or virtualtex where "folder" is a folder name of your choice on a NTFS partition that has about 20 gb free space.

The image your trying to work on is over 4 gb alone uncompressed. You may also try cropping the original image so you'll have a east and a west at 11520x11520. Then you can try scaling them up, or preferably down.
I think the virtualtex script allows you to work on the east and west separately. good luck
cartrite

re

Posted: 31.07.2007, 20:28
by John Van Vliet
that is odd with Nip2/Vips
from the nip2 gui i can save a 64k map to png in 5 min with only 512 meg of ram and 2 gig of swap

try this open the Mdim_64c.jpg in Nip2
from toolkits select image/transform/resize/size to
and type in 16384( for a 32k map) or 8192 for a 16k map ( preferred )
the default is to resize the shortest side
right click on the new image and select save as " mars.png " and hit "enter"

Posted: 31.07.2007, 20:33
by Ozark
I haven't tried nip2 yet. Ill try that before i scale it down and see what the results are. Actually i planned on making a 32k map as well as 16k so i could see for myself the differences. Thanks


Ozark

Posted: 07.08.2007, 02:56
by Ozark
Nip2 worked Great! Didn't Know anything about nip2 so i didn't try it. I've since started playing around with it more and getting to know the program a bit more. Anyway, vt'd both 16k version and 32k version. You guys were right 16k version was better. I kinda of figured that but wanted to try for myself anyways. :) Thanks for the tip on using NIP2 for resizing. :D

re

Posted: 08.08.2007, 20:37
by John Van Vliet
Nip2 is great for 5, 10, 15,20+ gig images and i have been using it for a few years