Skip to main content

Image size limitation

12 replies [Last post]
Anonymous

Are there any size limitations of an image you can put inside a resource
bundle?

What I'm seeing, on BlackBerry anyway, is that if I put an image bigger than
1KB in I get the dreaded verification error message.

--
http://www.spectrumdt.com
http://codepimps.org
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shai Almog

Pack means indexed, if the indexed image functionality is causing
issues in the BB then the LWUIT demo itself shouldn't work either...

> but wait I don't understand, is the recommendation here for images
> to not be packed then? I assume "pack" meant "pack" and I've been
> putting pack on all my images, let me try this again without this
> keyword
>
> On Fri, Jul 18, 2008 at 10:26 AM, Shai Almog
> wrote:
> The Ant task accepts the pack="true" argument to images (see the
> LWUIT Demo sample). Packed images is essentially the old name for
> indexed images which we just forgot to update...
>
>> any ant tasks for doing this? I'm afraid I'm not having much luck
>> with the resource editor.
>>
>> On Fri, Jul 18, 2008 at 12:39 AM, Shai Almog
>> wrote:
>> Thanks nafs this is correct.
>> In the resource editor you can convert the Image object to an
>> Indexed image using a radio button at the top of the Image panel
>> (selecting between indexed and RGB).
>> Indexed is not limited in size but is limited in colors (and is
>> slow), currently most images in the LWUTI demo are indexed. So if
>> the LWUIT demo works this should work too.
>>
>> Its possible that the BB has issues with PNG decoding which is
>> something the Nokia S40 devices have.
>>
>>
>>> IndexedImage class
>>> [Message sent by forum member 'nafs' (nafs)]
>>>
>>> http://forums.java.net/jive/thread.jspa?messageID=287455
>>>
>>> --------------------------------------------------------------------
>>> -
>>> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
>>> For additional commands, e-mail: users-help@lwuit.dev.java.net
>>>
>>
>> Shai Almog
>> http://lwuit.blogspot.com/
>>
>>
>>
>>
>> --
>> http://www.spectrumdt.com
>> http://codepimps.org
>
> Shai Almog
> http://lwuit.blogspot.com/
>
>
>
>
> --
> http://www.spectrumdt.com
> http://codepimps.org

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

Patrick Julien

I have not tried the demo on BlackBerry myself, all I know is that this
fixes the verification errors on large images for me.

On Fri, Jul 18, 2008 at 10:41 AM, Shai Almog wrote:

> Pack means indexed, if the indexed image functionality is causing issues in
> the BB then the LWUIT demo itself shouldn't work either...
>
> but wait I don't understand, is the recommendation here for images to not
> be packed then? I assume "pack" meant "pack" and I've been putting pack on
> all my images, let me try this again without this keyword
>
> On Fri, Jul 18, 2008 at 10:26 AM, Shai Almog wrote:
>
>> The Ant task accepts the pack="true" argument to images (see the LWUIT
>> Demo sample). Packed images is essentially the old name for indexed images
>> which we just forgot to update...
>>
>> any ant tasks for doing this? I'm afraid I'm not having much luck with
>> the resource editor.
>>
>> On Fri, Jul 18, 2008 at 12:39 AM, Shai Almog wrote:
>>
>>> Thanks nafs this is correct.
>>> In the resource editor you can convert the Image object to an Indexed
>>> image using a radio button at the top of the Image panel (selecting between
>>> indexed and RGB).
>>> Indexed is not limited in size but is limited in colors (and is slow),
>>> currently most images in the LWUTI demo are indexed. So if the LWUIT demo
>>> works this should work too.
>>>
>>> Its possible that the BB has issues with PNG decoding which is something
>>> the Nokia S40 devices have.
>>>
>>>
>>> IndexedImage class
>>> [Message sent by forum member 'nafs' (nafs)]
>>>
>>> http://forums.java.net/jive/thread.jspa?messageID=287455
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
>>> For additional commands, e-mail: users-help@lwuit.dev.java.net
>>>
>>>
>>> Shai Almog
>>> http://lwuit.blogspot.com/
>>>
>>>
>>
>>
>> --
>> http://www.spectrumdt.com
>> http://codepimps.org
>>
>>
>> Shai Almog
>> http://lwuit.blogspot.com/
>>
>>
>
>
> --
> http://www.spectrumdt.com
> http://codepimps.org
>
>
> Shai Almog
> http://lwuit.blogspot.com/
>
>

--
http://www.spectrumdt.com
http://codepimps.org
[att1.html]

Shai Almog

No idea???
When you say large do you mean in terms of memory or width * height?

Thanks.

> I have not tried the demo on BlackBerry myself, all I know is that
> this fixes the verification errors on large images for me.
>
> On Fri, Jul 18, 2008 at 10:41 AM, Shai Almog
> wrote:
> Pack means indexed, if the indexed image functionality is causing
> issues in the BB then the LWUIT demo itself shouldn't work either...
>
>> but wait I don't understand, is the recommendation here for images
>> to not be packed then? I assume "pack" meant "pack" and I've been
>> putting pack on all my images, let me try this again without this
>> keyword
>>
>> On Fri, Jul 18, 2008 at 10:26 AM, Shai Almog
>> wrote:
>> The Ant task accepts the pack="true" argument to images (see the
>> LWUIT Demo sample). Packed images is essentially the old name for
>> indexed images which we just forgot to update...
>>
>>> any ant tasks for doing this? I'm afraid I'm not having much
>>> luck with the resource editor.
>>>
>>> On Fri, Jul 18, 2008 at 12:39 AM, Shai Almog
>>> wrote:
>>> Thanks nafs this is correct.
>>> In the resource editor you can convert the Image object to an
>>> Indexed image using a radio button at the top of the Image panel
>>> (selecting between indexed and RGB).
>>> Indexed is not limited in size but is limited in colors (and is
>>> slow), currently most images in the LWUTI demo are indexed. So if
>>> the LWUIT demo works this should work too.
>>>
>>> Its possible that the BB has issues with PNG decoding which is
>>> something the Nokia S40 devices have.
>>>
>>>
>>>> IndexedImage class
>>>> [Message sent by forum member 'nafs' (nafs)]
>>>>
>>>> http://forums.java.net/jive/thread.jspa?messageID=287455
>>>>
>>>> -------------------------------------------------------------------
>>>> --
>>>> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
>>>> For additional commands, e-mail: users-help@lwuit.dev.java.net
>>>>
>>>
>>> Shai Almog
>>> http://lwuit.blogspot.com/
>>>
>>>
>>>
>>>
>>> --
>>> http://www.spectrumdt.com
>>> http://codepimps.org
>>
>> Shai Almog
>> http://lwuit.blogspot.com/
>>
>>
>>
>>
>> --
>> http://www.spectrumdt.com
>> http://codepimps.org
>
> Shai Almog
> http://lwuit.blogspot.com/
>
>
>
>
> --
> http://www.spectrumdt.com
> http://codepimps.org

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

Patrick Julien

Just the overall size. Any png image that I put in that is over 1KB and is
"pack"ed causes a verification error on startup. Removing the pack
attribute fixes the problem.

On Fri, Jul 18, 2008 at 10:48 AM, Shai Almog wrote:

> No idea???
> When you say large do you mean in terms of memory or width * height?
>
> Thanks.
>
> I have not tried the demo on BlackBerry myself, all I know is that this
> fixes the verification errors on large images for me.
>
> On Fri, Jul 18, 2008 at 10:41 AM, Shai Almog wrote:
>
>> Pack means indexed, if the indexed image functionality is causing issues
>> in the BB then the LWUIT demo itself shouldn't work either...
>>
>> but wait I don't understand, is the recommendation here for images to not
>> be packed then? I assume "pack" meant "pack" and I've been putting pack on
>> all my images, let me try this again without this keyword
>>
>> On Fri, Jul 18, 2008 at 10:26 AM, Shai Almog wrote:
>>
>>> The Ant task accepts the pack="true" argument to images (see the LWUIT
>>> Demo sample). Packed images is essentially the old name for indexed images
>>> which we just forgot to update...
>>>
>>> any ant tasks for doing this? I'm afraid I'm not having much luck with
>>> the resource editor.
>>>
>>> On Fri, Jul 18, 2008 at 12:39 AM, Shai Almog wrote:
>>>
>>>> Thanks nafs this is correct.
>>>> In the resource editor you can convert the Image object to an Indexed
>>>> image using a radio button at the top of the Image panel (selecting between
>>>> indexed and RGB).
>>>> Indexed is not limited in size but is limited in colors (and is slow),
>>>> currently most images in the LWUTI demo are indexed. So if the LWUIT demo
>>>> works this should work too.
>>>>
>>>> Its possible that the BB has issues with PNG decoding which is something
>>>> the Nokia S40 devices have.
>>>>
>>>>
>>>> IndexedImage class
>>>> [Message sent by forum member 'nafs' (nafs)]
>>>>
>>>> http://forums.java.net/jive/thread.jspa?messageID=287455
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
>>>> For additional commands, e-mail: users-help@lwuit.dev.java.net
>>>>
>>>>
>>>> Shai Almog
>>>> http://lwuit.blogspot.com/
>>>>
>>>>
>>>
>>>
>>> --
>>> http://www.spectrumdt.com
>>> http://codepimps.org
>>>
>>>
>>> Shai Almog
>>> http://lwuit.blogspot.com/
>>>
>>>
>>
>>
>> --
>> http://www.spectrumdt.com
>> http://codepimps.org
>>
>>
>> Shai Almog
>> http://lwuit.blogspot.com/
>>
>>
>
>
> --
> http://www.spectrumdt.com
> http://codepimps.org
>
>
> Shai Almog
> http://lwuit.blogspot.com/
>
>

--
http://www.spectrumdt.com
http://codepimps.org
[att1.html]

Shai Almog

Hi Patrick,
there is no technical limit for sizes although I have run into some
limitations with very large images (multi-megabyte).

Its possible that the blackberry doesn't support an image type or
something, try making the image Indexed to see if that works.

Thanks,
Shai.

> Are there any size limitations of an image you can put inside a
> resource bundle?
>
> What I'm seeing, on BlackBerry anyway, is that if I put an image
> bigger than 1KB in I get the dreaded verification error message.
>
> --
> http://www.spectrumdt.com
> http://codepimps.org

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

Patrick Julien

Hmm, but I'm talking about more than 1KB here.

Does LWUIT offer any help for dealing with indexed images at all?

On Wed, Jul 16, 2008 at 11:30 PM, Shai Almog wrote:

> Hi Patrick,
> there is no technical limit for sizes although I have run into some
> limitations with very large images (multi-megabyte).
>
> Its possible that the blackberry doesn't support an image type or
> something, try making the image Indexed to see if that works.
>
> Thanks,
> Shai.
>
> Are there any size limitations of an image you can put inside a resource
> bundle?
>
> What I'm seeing, on BlackBerry anyway, is that if I put an image bigger
> than 1KB in I get the dreaded verification error message.
>
> --
> http://www.spectrumdt.com
> http://codepimps.org
>
>
> Shai Almog
> http://lwuit.blogspot.com/
>
>

--
http://www.spectrumdt.com
http://codepimps.org
[att1.html]

nafs
Offline
Joined: 2008-06-10

IndexedImage class

Shai Almog

Thanks nafs this is correct.
In the resource editor you can convert the Image object to an Indexed
image using a radio button at the top of the Image panel (selecting
between indexed and RGB).
Indexed is not limited in size but is limited in colors (and is
slow), currently most images in the LWUTI demo are indexed. So if the
LWUIT demo works this should work too.

Its possible that the BB has issues with PNG decoding which is
something the Nokia S40 devices have.

> IndexedImage class
> [Message sent by forum member 'nafs' (nafs)]
>
> http://forums.java.net/jive/thread.jspa?messageID=287455
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

Patrick Julien

any ant tasks for doing this? I'm afraid I'm not having much luck with the
resource editor.

On Fri, Jul 18, 2008 at 12:39 AM, Shai Almog wrote:

> Thanks nafs this is correct.
> In the resource editor you can convert the Image object to an Indexed image
> using a radio button at the top of the Image panel (selecting between
> indexed and RGB).
> Indexed is not limited in size but is limited in colors (and is slow),
> currently most images in the LWUTI demo are indexed. So if the LWUIT demo
> works this should work too.
>
> Its possible that the BB has issues with PNG decoding which is something
> the Nokia S40 devices have.
>
>
> IndexedImage class
> [Message sent by forum member 'nafs' (nafs)]
>
> http://forums.java.net/jive/thread.jspa?messageID=287455
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
> Shai Almog
> http://lwuit.blogspot.com/
>
>

--
http://www.spectrumdt.com
http://codepimps.org
[att1.html]

Shai Almog

The Ant task accepts the pack="true" argument to images (see the
LWUIT Demo sample). Packed images is essentially the old name for
indexed images which we just forgot to update...

> any ant tasks for doing this? I'm afraid I'm not having much luck
> with the resource editor.
>
> On Fri, Jul 18, 2008 at 12:39 AM, Shai Almog
> wrote:
> Thanks nafs this is correct.
> In the resource editor you can convert the Image object to an
> Indexed image using a radio button at the top of the Image panel
> (selecting between indexed and RGB).
> Indexed is not limited in size but is limited in colors (and is
> slow), currently most images in the LWUTI demo are indexed. So if
> the LWUIT demo works this should work too.
>
> Its possible that the BB has issues with PNG decoding which is
> something the Nokia S40 devices have.
>
>
>> IndexedImage class
>> [Message sent by forum member 'nafs' (nafs)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=287455
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
>> For additional commands, e-mail: users-help@lwuit.dev.java.net
>>
>
> Shai Almog
> http://lwuit.blogspot.com/
>
>
>
>
> --
> http://www.spectrumdt.com
> http://codepimps.org

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

Patrick Julien

but wait I don't understand, is the recommendation here for images to not be
packed then? I assume "pack" meant "pack" and I've been putting pack on all
my images, let me try this again without this keyword

On Fri, Jul 18, 2008 at 10:26 AM, Shai Almog wrote:

> The Ant task accepts the pack="true" argument to images (see the LWUIT Demo
> sample). Packed images is essentially the old name for indexed images which
> we just forgot to update...
>
> any ant tasks for doing this? I'm afraid I'm not having much luck with the
> resource editor.
>
> On Fri, Jul 18, 2008 at 12:39 AM, Shai Almog wrote:
>
>> Thanks nafs this is correct.
>> In the resource editor you can convert the Image object to an Indexed
>> image using a radio button at the top of the Image panel (selecting between
>> indexed and RGB).
>> Indexed is not limited in size but is limited in colors (and is slow),
>> currently most images in the LWUTI demo are indexed. So if the LWUIT demo
>> works this should work too.
>>
>> Its possible that the BB has issues with PNG decoding which is something
>> the Nokia S40 devices have.
>>
>>
>> IndexedImage class
>> [Message sent by forum member 'nafs' (nafs)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=287455
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
>> For additional commands, e-mail: users-help@lwuit.dev.java.net
>>
>>
>> Shai Almog
>> http://lwuit.blogspot.com/
>>
>>
>
>
> --
> http://www.spectrumdt.com
> http://codepimps.org
>
>
> Shai Almog
> http://lwuit.blogspot.com/
>
>

--
http://www.spectrumdt.com
http://codepimps.org
[att1.html]

Patrick Julien

Yeah, if I remove the "pack" attribute, all my images, which range between
500bytes to 5KB, are good to go.

On Fri, Jul 18, 2008 at 10:31 AM, Patrick Julien
wrote:

> but wait I don't understand, is the recommendation here for images to not
> be packed then? I assume "pack" meant "pack" and I've been putting pack on
> all my images, let me try this again without this keyword
>
>
> On Fri, Jul 18, 2008 at 10:26 AM, Shai Almog wrote:
>
>> The Ant task accepts the pack="true" argument to images (see the LWUIT
>> Demo sample). Packed images is essentially the old name for indexed images
>> which we just forgot to update...
>>
>> any ant tasks for doing this? I'm afraid I'm not having much luck with
>> the resource editor.
>>
>> On Fri, Jul 18, 2008 at 12:39 AM, Shai Almog wrote:
>>
>>> Thanks nafs this is correct.
>>> In the resource editor you can convert the Image object to an Indexed
>>> image using a radio button at the top of the Image panel (selecting between
>>> indexed and RGB).
>>> Indexed is not limited in size but is limited in colors (and is slow),
>>> currently most images in the LWUTI demo are indexed. So if the LWUIT demo
>>> works this should work too.
>>>
>>> Its possible that the BB has issues with PNG decoding which is something
>>> the Nokia S40 devices have.
>>>
>>>
>>> IndexedImage class
>>> [Message sent by forum member 'nafs' (nafs)]
>>>
>>> http://forums.java.net/jive/thread.jspa?messageID=287455
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
>>> For additional commands, e-mail: users-help@lwuit.dev.java.net
>>>
>>>
>>> Shai Almog
>>> http://lwuit.blogspot.com/
>>>
>>>
>>
>>
>> --
>> http://www.spectrumdt.com
>> http://codepimps.org
>>
>>
>> Shai Almog
>> http://lwuit.blogspot.com/
>>
>>
>
>
> --
> http://www.spectrumdt.com
> http://codepimps.org
>

--
http://www.spectrumdt.com
http://codepimps.org
[att1.html]