invalid image size

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
the underminer
Posts: 123
Joined: Mon Oct 03, 2005 4:25 am
Location: Netherlands

invalid image size

Post by the underminer »

I got a invalid image size error when i tried to create a new image of 512X512. I thought luaplayer supported this resolution?
Loading a 512X512 png works though
Behold! The Underminer got hold of a PSP
OCteam
Posts: 7
Joined: Sun Mar 05, 2006 11:12 pm
Location: UK
Contact:

Re: invalid image size

Post by OCteam »

the underminer wrote:I got a invalid image size error when i tried to create a new image of 512X512. I thought luaplayer supported this resolution?
Loading a 512X512 png works though
I've noticed this as well - Lua Player will not load images over 512x512. Just use multiple images stored next to eachother. This must be a game application right ;) ?
PP121494863-PSP1001
www.illfoundedmind.com
my psprecious
Posts: 24
Joined: Fri Feb 17, 2006 5:08 am

Post by my psprecious »

try 500x500 instead, it worked for me, after getting the same error
matriculated
Posts: 31
Joined: Sat Mar 04, 2006 1:35 am

Post by matriculated »

I actually have this code:

Code: Select all

if xx > 480 then xx = 480 end
if yy > 272 then yy = 272 end
menuImg = Image.createEmpty(xx, yy)
and I get that same invalid size error. And that code is bulletproof I tells ya. BULLETPROOF! :P
the underminer
Posts: 123
Joined: Mon Oct 03, 2005 4:25 am
Location: Netherlands

Post by the underminer »

try 500x500 instead, it worked for me, after getting the same error
Hmm if 500x500 works and 480x272 doesn't work...
then what is the maximum size?

Anyways, I need 512 width, not a pixel less. Or I will have to split up, wich I already did.
Behold! The Underminer got hold of a PSP
my psprecious
Posts: 24
Joined: Fri Feb 17, 2006 5:08 am

Post by my psprecious »

The max is 512x512, but for some unknown reason sometime I get an error like you

so splited in smaller parts actually 256x256 and everything works well

it's the best I can do
Post Reply