Sunday, January 20, 2013

Re: Some of my images arnt being turned into image strips :?

I'm starting to think...unless I am doing something stupid...this is a
GWT error.
At the very least the behavior contradicts the documentation:

"The ClientBundle generator combines all of the images defined in your
interface into a single, optimized image."

This certainly doesn't seem to be the case. Even without my specific
problem, I am pretty sure many small images would get converted to
DataURLs no?



On Jan 8, 3:54 pm, darkflame <darkfl...@gmail.com> wrote:
> Still no luck.
> If it helps diagnose I can supply sample images.
>
>
>
>
>
>
>
> On Saturday, December 29, 2012 11:31:06 PM UTC+1, darkflame wrote:
>
> > ...and thus are rather flickery when animating between them. (they are
> > frames in a animated sprite).
>
> > What baffles me is they are defined the same way as others that do
> > seem to work.
>
> > eg. I have a file like:
> > public interface MemDayImages extends ClientBundle {
> > ...
> >     @Source("/MemorableDayIcons/MEDIUM/magrietbag0.png")
> >     ImageResource MEDmagrietbag0();
>
> >      @Source("/MemorableDayIcons/MEDIUM/magrietbag1.png")
> >      ImageResource MEDmagrietbag1();
>
> >       @Source("/MemorableDayIcons/MEDIUM/magrietbag2.png")
> >        ImageResource MEDmagrietbag2();
>
> > ...
>
> > Which makes a lovely image strip that animates really smoothly.
>
> > I have another group of sprites however:
>
> > public interface NoirInternalSprites extends ClientBundle {
>
> >         @Source("com/darkflame/client/JargScene/firelopp/fireloop0050.png")
>
> >         ImageResource fireloop0050();
>
> >         @Source("com/darkflame/client/JargScene/firelopp/fireloop0051.png")
>
> >         ImageResource fireloop0051();
>
> >         @Source("com/darkflame/client/JargScene/firelopp/fireloop0052.png")
>
> >         ImageResource fireloop0052();
>
> >         @Source("com/darkflame/client/JargScene/firelopp/fireloop0053.png")
>
> >         ImageResource fireloop0053();
> > ...
>
> > Which does not.
> > These pngs instead turn into dozens of separate files - not a image
> > strip at all.
>
> > So what gives :?
> > What determines when images are combined and when they are not ?
>
> > For reference, I use
> >   <set-property name="ClientBundle.enableInlining" value="false" /
>
> > in my gwt.xml to stop data urls being formed.
>
> > Thanks for any pointers,
> > -Thomas

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate