Help converting 32k tif image of Mars!

Tips for creating and manipulating planet textures for Celestia.
Topic author
Ozark
Posts: 44
Joined: 09.07.2007
With us: 17 years 2 months
Location: Plymouth, MN

Help converting 32k tif image of Mars!

Post #1by Ozark » 31.07.2007, 02:54

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
OZARK

Celestia 1.5.0
Windows XP Home Edition
Pentium 3.4 ghz E.E
2GB ddr Ram
Radeon 9550 AGP 256 mb

Avatar
LordFerret M
Posts: 737
Joined: 24.08.2006
Age: 68
With us: 18 years 1 month
Location: NJ USA

Post #2by LordFerret » 31.07.2007, 04:11

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.

rthorvald
Posts: 1223
Joined: 20.10.2003
With us: 20 years 11 months
Location: Norway

Re: Help converting 32k tif image of Mars!

Post #3by rthorvald » 31.07.2007, 07:32

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
Image

Avatar
cartrite
Posts: 1978
Joined: 15.09.2005
With us: 19 years
Location: Pocono Mountains, Pennsylvania, USA Greate Grandfother from Irshava, Zakarpattia Oblast Ukraine

Post #4by cartrite » 31.07.2007, 08:13

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
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4

Avatar
John Van Vliet
Posts: 2941
Joined: 28.08.2002
With us: 22 years 1 month

re

Post #5by John Van Vliet » 31.07.2007, 20:28

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"
Last edited by John Van Vliet on 31.07.2007, 20:50, edited 1 time in total.

Topic author
Ozark
Posts: 44
Joined: 09.07.2007
With us: 17 years 2 months
Location: Plymouth, MN

Post #6by Ozark » 31.07.2007, 20:33

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
OZARK



Celestia 1.5.0

Windows XP Home Edition

Pentium 3.4 ghz E.E

2GB ddr Ram

Radeon 9550 AGP 256 mb

Topic author
Ozark
Posts: 44
Joined: 09.07.2007
With us: 17 years 2 months
Location: Plymouth, MN

Post #7by Ozark » 07.08.2007, 02:56

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
OZARK



Celestia 1.5.0

Windows XP Home Edition

Pentium 3.4 ghz E.E

2GB ddr Ram

Radeon 9550 AGP 256 mb

Avatar
John Van Vliet
Posts: 2941
Joined: 28.08.2002
With us: 22 years 1 month

re

Post #8by John Van Vliet » 08.08.2007, 20:37

Nip2 is great for 5, 10, 15,20+ gig images and i have been using it for a few years


Return to “Textures”