Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Uploading An Image But Keeping Size Restrictions

Pleasure Ashbourne
Registered User
Join date: 24 Dec 2007
Posts: 60
01-10-2008 01:05
How can I upload an image that let's say for example its 330x248, I know it doesn't conform to the conform to the 256x256 or 256x512 rules, those types of size restrictions. I want to upload it as is, no skewing or anything.
Cristalle Karami
Lady of the House
Join date: 4 Dec 2006
Posts: 6,222
01-10-2008 01:13
You can upload it as is, but it will be skewed. You would then have to resize the prim to picture's proportions so it would not appear skewed.

The other option is to skew it yourself in your image editing software, so that when it is uploaded, it comes out in the correct proportion.
_____________________
Affordable & beautiful apartments & homes starting at 150L/wk! Waterfront homes, 575L/wk & 300 prims!

House of Cristalle low prim prefabs: secondlife://Cristalle/111/60

http://cristalleproperties.info
http://careeningcristalle.blogspot.com - Careening, A SL Sailing Blog
Pleasure Ashbourne
Registered User
Join date: 24 Dec 2007
Posts: 60
01-10-2008 01:14
OK let's say, could I make a 512x512 image, put my image on top of it, make the background transparent, save it as a TGA and upload it that way? Then the image will be the right ratio, and the transparent part would disappear. Can I do it?
Broccoli Curry
I am my alt's alt's alt.
Join date: 13 Jun 2006
Posts: 1,660
01-10-2008 01:20
You could... but couldn't you also just resize a prim so it appears in the right proportions?

Say... 300x200 pixels on a 3m x 2m x 0.1m cube?

I'm not clear what type of images you're uploading - is it pictures, textures or something different?

You know you can change the 'repeats per face' in 'default' and 'repeats per metre' in 'planar' on flat surfaces, yes?
_____________________
~ This space has been abandoned as I can no longer afford it.
Cristalle Karami
Lady of the House
Join date: 4 Dec 2006
Posts: 6,222
01-10-2008 01:20
That's a creative solution. You could do it, but the only thing you would have to worry about is calculating the proportion on the prim, and the horizontal and vertical offset of the picture.

This would only be problematic if you put it on a 10x10 and want it bigger.
_____________________
Affordable & beautiful apartments & homes starting at 150L/wk! Waterfront homes, 575L/wk & 300 prims!

House of Cristalle low prim prefabs: secondlife://Cristalle/111/60

http://cristalleproperties.info
http://careeningcristalle.blogspot.com - Careening, A SL Sailing Blog
Pleasure Ashbourne
Registered User
Join date: 24 Dec 2007
Posts: 60
01-10-2008 01:21
From: Cristalle Karami
That's a creative solution. You could do it, but the only thing you would have to worry about is calculating the proportion on the prim, and the horizontal and vertical offset of the picture.

Is there any way to convert pixels to the length in SL? Or is there an easy way going about it?
Pleasure Ashbourne
Registered User
Join date: 24 Dec 2007
Posts: 60
01-10-2008 01:22
From: Broccoli Curry
You could... but couldn't you also just resize a prim so it appears in the right proportions?

Say... 300x200 pixels on a 3m x 2m x 0.1m cube?

I'm not clear what type of images you're uploading - is it pictures, textures or something different?

You know you can change the 'repeats per face' in 'default' and 'repeats per metre' in 'planar' on flat surfaces, yes?

It's photos.

And no, I was not aware.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
01-10-2008 02:36
what's important for resizing a prim to a textures dimensions is not it's size, it's the ratio...

your 330x248 breaks down to a (simple) of 3.3x2.48 multiples or fractions of those dimensions will work for your prim

also just so you know, it's better to resize your image to a power of 2 on each side on your own, since SL's conversion is a bit sloppy... include the original ratio in the file name and you'll be able to easily see it when you add it to a prim.

it might be useful to read the stickies in the texturing forum, to better understand SL image size requirments (which are based on openGL's requirements)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Larrie Lane
Registered User
Join date: 9 Feb 2007
Posts: 667
01-10-2008 02:48
Pleasure

Actually if you save your picture as 330x248, 24 Bit TGA File on upload to SL it will get automatically converted to a 256x256 file.

From there on apply it to a 10x10 prim (example only) then select the Stretch Textures box, then resize the prim and it should automatically come out as you want.

If you would like a more in depth explanation there are some stickies at the top of the Texture Forum that may answer your question in more detail regarding why and how SL resizes textures.
Dylan Rickenbacker
Animator
Join date: 11 Oct 2006
Posts: 365
01-10-2008 03:17
From: Larrie Lane
Actually if you save your picture as 330x248, 24 Bit TGA File on upload to SL it will get automatically converted to a 256x256 file.


Not even. The resulting image would be 256x128.
Dekka Raymaker
thinking very hard
Join date: 4 Feb 2007
Posts: 3,898
01-10-2008 03:58
Its good to know what size prim face the graphic is going to go on. If your going to put it on a prim face 3.4 x 5.1 make your graphic 340 x 510 then even though it gets loaded up as 512 x 512 or even 256 x 512 when applied to the prim it will fit perfectly.
_____________________
Spiral Silverstar
Registered User
Join date: 27 Nov 2006
Posts: 14
01-10-2008 04:11
Apparently, I must be missing something here. I am an artist, and I never worry about the size of the images I upload, and well... they All look damn good! The largest I have uploaded is 1024 X 700.
Hiro Queso
503less
Join date: 23 Feb 2005
Posts: 2,753
01-10-2008 04:24
From: Dekka Raymaker
Its good to know what size prim face the graphic is going to go on. If your going to put it on a prim face 3.4 x 5.1 make your graphic 340 x 510 then even though it gets loaded up as 512 x 512 or even 256 x 512 when applied to the prim it will fit perfectly.


Similarly you can reverse the process and fit the prim dimensions to the image, which would probably be better for a photo. So for a photo that has dimensions as in your example Pleasure (330x248), just make sure the dimensions of the prim that you are texturing have the same ratio e.g. 3.30x2.48, 6.6x4.96,10.000x7.515, etc
Hiro Queso
503less
Join date: 23 Feb 2005
Posts: 2,753
01-10-2008 04:30
From: Spiral Silverstar
Apparently, I must be missing something here. I am an artist, and I never worry about the size of the images I upload, and well... they All look damn good! The largest I have uploaded is 1024 X 700.


You really should think about the size of images uploaded, not just for proportions, but for overall size - a 1024x1024 file is 4x as large as a 512x512 file - too many of those and resident's PCs are going to start having problems rendering them all on their machines. 128x128 to 512x512 should suit most purposes, with 1024xX files needed very very rarely. Chosen does a much better job than I ever could at explaining why, and so I will link you to it!

/109/e6/150360/1.html
Larrie Lane
Registered User
Join date: 9 Feb 2007
Posts: 667
01-10-2008 04:55
From: Dylan Rickenbacker
Not even. The resulting image would be 256x128.



Dylan

FYI, I actually tried this before posting my answer and the results were that the texture was converted to 256x256 not 256x128 as you mention.
Pleasure Ashbourne
Registered User
Join date: 24 Dec 2007
Posts: 60
01-10-2008 05:13
I think I understand, it's just that the image gets screwed up in the previews is all.
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
01-10-2008 05:45
Yes, the preview will always show you a square, but it doesn't mean that it would be the final resolution.


Anyway this thread should be moved to texturing tips where people know more about it.