Is that the normal behavior of ImageReader?

When javax.imageio.ImageReader reads frames of an optimized animated gif (where only the changes in each frame are saved), it will only return a small portion of the image when it falls on an optimized frame. So let's say an animation has the size 50x50, ImageReader.read(...) will return BufferedImages of varying lengths due to the optimization. Is that the normal behavior, or should it build up the complete image back itself? If I should be responsible to reconstitute the image, then anyone knows how I should go about it?
Thanks in advance for your input!
Dalzhim

Probably. The GIF will only basically have partial frames after the first, or where the entire frame changes. That would suggesst that the class can't really handle that type of GIF in a way that it would recreate each frame based on the previous one(s). I'm not sure that it's a bug, though. It could be intentional, as it just gives the images that are there, and nothing more or less, letting the user deal with them. I would imagine you could overlay them to get the right effect?

Similar Messages

  • What should be the normal behavior when calling a retired/stopped process?

    Dear all,
    I thought that when one of my asynchronous BPEL process would call another asynchronous BPEL process that is retired or stopped(with no other version number active), I would receive any kind of error. So I tried it, and instead of receiving an error, the first BPEL process sent his message and received the ack without any errors (that is in both cases, retired or stopped). So I checked if the message was put in the thread queue or any other kind of queue and no it wasn't. I tried to reactivate the second process, and nothing happened. So I guess the message had been lost. Is this the normal behavior??
    Since we are implementing asynchronous processes to do a "fire and forget" type of system, we would have liked to receive some kind of error so we know that no instance had been instanciated and that the message had not really been delivered?
    Can anyone tell me where I'm wrong. Is there a chapter talking about that in any document. If anyone has read about that I'd like to know where so I can understand the way it works!
    Thank you!

    Thanks for your prompt reply,
    I'm sorry but I'm not sure I understand the onError callback thing,
    If we consider my called asynchronous process was a one-way process (no callbacks),
    Correct me if I'm wrong but:
    -This means I would have to define a callback in the called process (that onError callback).
    -Then, I gotta put a receive or a pick activity, which means I need to wait for an error answer, which is not wanted.
    -And, would a retired or stopped process really answer me and throw me an error?!?! I'm not sure since its stopped... So i would probably wait forever I guess.
    I'm just trying to find a way to make sure the message has been taken in charge by the next process and if not, to be alerted!
    Thanks for helping a beginner like me!
    Btw I've read that post:
    Re: How to throw a Fault from an asynchronous process to another process
    It helps understanding the fault handling in asynch processes, but my problem is more about the fact that my async process is stopped/retired!

  • I have iphone 4 . I don't know how that happened that  the normal color  on all icons changed ( for example, normally green color phone icon is now purple color ) and photo pictures turned negative ( ghost-like ). Your help will be appreciated .

    I have iphone 4 . I don't know how that happenned that the normal color on screen and all icons changed ( for example , normally green color phone icon became purple color ,) and photo pictures turned negative appearance ( ghost-like ) . Any idea how to fix this mishap ?  Your help will be appreciated.

    Hi kshieh
    You can try two possible steps:-
    1]Triple click the home button.  You should get an accessibility menu.deselect the negative/black and white option.
    2]Go to settings->General->accessibility->and deselect invert colours.
    That should fix it
    Rithwik

  • Double execution of actionListener method, normal behavior

    Hi,
    I don't understand this behavior i have a commandButton in my JSP
    <h:commandButton value="testActionListener" actionListener="#{LoginBean.actionListener}" immediate="true" />When I click on this button, the associated code (my actionListener method in my bean) is executed two times.
    In my opinion if the scope of my bean is "request" the execution would have to be the constructor then my method actionListener.
    Why do this method is executed two times after the constructor ? Is it the normal behavior ?
    Thanks
    Edited by: Antony97 on Dec 13, 2008 8:03 AM

    hello
    try this link
    http://www.javabeat.net/tips/67-how-to-implement-actionlistener-factionlist.html
    initally i got the same problem
    write seperate bean and actionlistener. as the link suggest your problem is solved

  • Does anyone else feel that the iPhone is sluggish after update 1.1.1?

    Is it just me or does anyone else feel that the iPhone feels more sluggish after update 1.1.1? I haven't unlocked or hacked the phone in any way and so it must be due to the update. I thought that the sluggish behavior could be due to a recent update and so I reset the phone. But I still feel that the iPhone has lost that responsiveness that it used to have before. Any one else experiencing this?

    Yes, without question I thought typing, especially, was sluggish at first. However, after a day it has seemed to speed up and now, I'd say, is back to original performance, or close to it.
    Also, I have lots of contacts (2500), and the phone has been very slow to make the first identification of email addresses when I start typing. Specifically, it freezes for several seconds after the first letter is typed. However, I believe that process is a bit faster after this update.
    Derek

  • I have an iPhone 4s just eight months, it is normal that the battery lasts only 3 hours? please help me thank you very much.

    I have an iPhone 4s just eight months, it is normal that the battery lasts only 3 hours? please help me thank you very much.

    Three hours if definitely NOT normal. I get at least 48 hours out my 2 year old iPhone 4S' battery with light usage. Did you do the iOS 7 update on the phone it self (OTA) or through iTunes? In my experience most problems are caused by the OTA updates. For this reason I ALWAYS update using iTunes on my computer.
    I would suggest restoring your phone using iTunes on your computer and setting it us as a new phone. This downloads a fresh copy of iOS 7.1 from Apple and installs it on your phone. Just make sure that you transfer all purchased items (apps, music, etc.) as well as photos to your computer before restoring as the restore will completely wipe your phone. Do not restore from a back-up. Yes, you will loose all your data on the phone but restoring a back-up can restore the problem you are currently having back to your phone. Once your phone has been restored you can manually sync back your apps and music.
    Before restoring you can also check to see that battery-killers like Location Services, Background App Refresh, etc are only turned on for the apps that really need it. I recently read and article that said that the Facebook app can be a real battery killer. If you have this app installed turn of location services and background app refresh for this app and see if that helps. Also go to Settings / General / Restrictions / Location Services / System Services and turn off all the options in that menu. Your phone does not need any of those to function. Constantly using your phone's GPS is a huge battery killer. I only have Location Services enabled for Find my iPhone and Background App Refresh is turned off completely.
    I hope this helps.

  • By default, on a mac keyboard F3 lets you see all the open apps and the such. However, I changed it so that I use those keys for keyboard shortcuts; But i'd like the normal F3 key to still work without me having to press FN.

    By default, on a mac keyboard F3 lets you see all the open apps and the such. However, I changed it so that I use those keys for keyboard shortcuts; But i'd like the normal F3 key to still work without me having to press FN.

    rajlego,
    in the Keyboard pane of System Preferences, select the Shortcuts tab, and then select Mission Control on the left-hand side. On the right-hand side, make sure that the Mission Control checkbox is checked, double-click on its current key combination (by default “^↑”) so that the key combination is highlighted, and then press the F3 button — that will set its shortcut to be F3. You can now press F3 to bring up Mission Control without needing to also press the Fn button.

  • My iphone doesn't show me the effect on picture that are taken with effect is shows me it as a normal pic with out any effect but when I press edit it shows that the effect is already on but u can see it

    my iphone doesn't show me the effect of the picture that Are taken with effect it just show them to me as a normal picture with out any effect and when I go to edit it shows there that the pic already has an effect and when I see the picture in group it shows that it has effect only when I tap on one to see it larger the effect disappear

    I'm having the same issue, i restored my phone to Factory settings, even tried restoring it to my backup, half of my music bought from itunes won't play on my iphone and i'm super annoyed, this only happened once i updated to ios 7.2 so i assume its another glitch to go with my imessages not sending, getting sick of this.

  • How do I get an iPod touch to turn on other than the normal way. It has been dropped and all I can get is a blank screen. Have tried holding the HOME button down for 30 sec. but that didn't work.

    How does one get an iPod nano to turn on other than the "normal" way? This one has been dropped and all I can get is a blank screen. I have tried holding down the HOME button to restart it but no go. When I connect it to my computer, I am told to enter the PASSCODE which I cannot do as there is no touchpad.

    David ..
    Your topic refers to an iPod touch
    Then you say:  How does one get an iPod nano to turn on ......
    If it's an iPod touch, try a reset.
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't help, whether it's an iPod nano or touch, it probably needs service >  Apple - Support - Service Answer Center

  • I synced my Ipod to itunes now i can only double click the icons on the screen it seems that the swiping feature has been disabled, how do I get it back to normal? I've restored it but nothing has changed

    I synced my Ipod to itunes now I can only double tap the icons on the screen, it seems that the swipeing feature has somehow been disabled, Is there a way i could fix it or get it back to normal?

    Hi there,
    It sounds like you may have an accessibility feature called VoiceOver enabled. Take a look at the article below for more information on how to use VoiceOver as well as how to disable it.
    iPod nano (6th generation and later): How to use VoiceOver
    http://support.apple.com/kb/ht4317
    -Griff W.

  • I'm new to Photoshop Elements and just getting started.  While in the organizer I have one group of photos up to learn with and now it says Edit in Progress with a padlock icon.  How can I remove this so that the photos will be restored to normal?

    I'm new to Photoshop Elements and just getting started.  While in the organizer I have one group of photos up to learn with and now it says Edit in Progress with a padlock icon.  How can I remove this so that the photos will be restored to normal?

    Go back to the editor and close the photo there.

  • Iphone 5 is taking too long to download through EDGE why????????Please help i just wnat to confirm that it is the normal behaviour or it is some kind of problem please help

    iphone 5 16 gn black my iphone is taking too long to download apps from apps to download on my iphone so please help from overcoming this problem
    i just want to know this is the normal behaviour or it is some kind of problem

    You have to turn on 3G/4G/LTE and be in a coverage area for such to happen.
    Or connect to wifi.
    Normal behavior for Edge is very very slow.

  • I cannot delete a new "game" app that won't finish downloading, the normal way doesn't work because there is no X to delete it.

    I have downloaded a slot machine app that has been "downloading" for days now.  The normal delete method doesn't work because it does not have the X in the corner.  Also I'm not able to download new apps because it just gives the waiting message.  I can't highlight it so I can't double click on the main menu button to troubleshoot it across the bottom of the screen.  I'm really having problems, so if you can help please do.  Thanks for reading my question at the very least.

    Settings>General>Usage>Storage>Try deleting from here

  • I just updated my iPhone 5 from virgin mobile to ios7, and upon the normal setup i find that i my sim card is not being read; apparently now it isn't supported. please someone help me.

    I just updated my iPhone 5 from virgin mobile to ios7, and upon the normal setup i find that i my sim card is not being read; apparently now it isn't supported. please someone help me.

    my iphone is and has been locked to one carrier. all i've done is a software update to ios7, like all the other updates since i bought the phone when it was released. same carrier, same sim card. :/

  • I have an iphone 4 and i'm having lot of problems: my back camera is blurred although my front camera is fine and working normal. my biggest problem is that the screen is showing colored horizontal lines

    I have an iphone 4 and i'm having lot of problems:
    _ my back camera is blurred although my front camera is fine and working normally
    _ my biggest problem is that the screen is showing colored horizontal lines(as perhaps electrical problems). The phone did fell and I already changed its back and front but everything was normal until these problems appeared suddenly
    Please can somebody help me to solve it and tell me what are the reasons?
    Thx

    you can try turning it off and on again, but i doubt that's gonna work, that sounds like more of a hardware issue. Your best bet may be to contact apple and seek service or replacement

Maybe you are looking for