Try to resize a bitmap - FASTJPEG: progressive decoding is not supported

Hi all

I went through the forums and tried many examples to remedy this, but none of them have worked.

I download a .jpg file from a URL of site Web, internal to our society, to get a photo of the employee.

I then use the code to resize the image to 100 x 100, no matter what the image is the size I need to resize to 100 x 100.

The last code I tried is as follows:

EncodedImage image = EncodedImage.createEncodedImage(imageBytes, 0, imageBytes.length); 

        int currentWidthFixed32 = Fixed32.toFP(image.getWidth());
        int currentHeightFixed32 = Fixed32.toFP(image.getHeight());

        int width = 100;
        int height = 100;

        int requiredWidthFixed32 = Fixed32.toFP(width);
        int requiredHeightFixed32 = Fixed32.toFP(height);

        int scaleXFixed32 = Fixed32.div(currentWidthFixed32, requiredWidthFixed32);
        int scaleYFixed32 = Fixed32.div(currentHeightFixed32, requiredHeightFixed32);

        image = image.scaleImage32(scaleXFixed32, scaleYFixed32);

        return image.getBitmap();

However, it is not hidden image and gives me the following error:

FASTJPEG: Progressive decoding is not supported

It does not for all images, only some of them.  I discovered that the images in this case on images jpeg at 300 dpi, while those who work well is 96 dpi.  Is this the reason why?  Is there a way that these images can be resized properly, even if they are 300 dpi?

I have not control how these images are saved in our society, I just have to get them via Http and resize them to display nicely on the Blackberry screen.

Thanks for any help you can give.  I will continue to try other things as much as possible.

Kind regards

David

If you work with OS 5.0 +, you can try the native Bitmap scaling methods provided.

Tags: BlackBerry Developers

Similar Questions

  • My Icloud account does not work. As soon as I try to connect my PC know "this browser is not supported. What went wrong and what can do?

    My Icloud account does not work. As soon as I try to connect my PC know "this browser is not supported. What went wrong and what can do? I previously used the same connection to my account for a long time without any problem. My PC I have a tie with Windows 8

    < personal information deleted by host >

    Hi bengtfrombelgentier,

    Welcome to the communities of Apple Support! I'm sorry to hear that you are experiencing these problems access iCloud. If you are unable to access iCloud.com due to an error of supported browser, you can check the browser requirements set out in the following article:

    Requirements for iCloud - Apple Support

    Concerning

  • try to download a game get message O.S. not supported can anyone help

    try to download a game get message O.S. not supported can anyone help

    Hello

    always check the compatibility of vista programs on the link below

    http://www.Microsoft.com/Windows/compatibility/Windows-Vista/default.aspx

    If a program is compatible vista you can try to download and save it on the desktop, then right click on the setup.exe, and then selecting run as administrator

    It is not compatible with vista, you can try running it in a previous operating system mode

    This does not work for all programs

    read the information below

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-compatibility-mode/

    ____________________________________________________________

    and read this information MS, too

    http://Windows.Microsoft.com/en-us/Windows-Vista/start-the-program-compatibility-Wizard

  • When you try to watch netflix it says 64 bit does not support silverlight

    Have windows vista version, had netflixs and looked just fine. Something happened to the p.c., now when I go to look at, it says that 64 bit version does not support soft micro silver light. Not true! We need to help, please!

    Have windows vista version, had netflixs and looked just fine. Something happened to the p.c., now when I go to look at, it says that 64 bit version does not support soft micro silver light. Not true! We need to help, please!

    Search for malware:

    Download, install, execute, update and perform analyses complete system with the two following applications:

    Remove anything they find.  Reboot when necessary.  (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.

    Uninstall all Plugins Internet

    Make a note of what you uninstall so after getting their all uninstalled, you can reboot and install again.  Be sure to get Adobe Flash Player (all versions), Microsoft SilverLight, Apple Quicktime/iTunes, RealPlayer/RealAternative, Adobe Air, Adobe Shockwave Player, etc..

    -After a reboot - visit their web pages, and then install the latest versions.

    Reset.

    Try again.

  • Error when you try to insert the bitmap file

    Hello!

    I have a problem with the symbol editor in Multisim 11.  When I try to insert a bitmap the entire program crashes.

    I would like to have the symbol Opamp in multisim. See: http://commons.wikimedia.org/wiki/File:Normsymbol_OPV.svg

    How can I do this?

    Thank you!

    mikcon

    Hi Mikcon,

    I have install Multisim 11.0 take your symbol and resize it and saved as a bitmap.

    Then I opened the component wizard and try to create a new component with your symbol of OPV and everything works fine without errors or accidents.

    Here some screenshots for you:

    So most likely your Multisim Installation is corrupted.

    Please try to repair your Multisim and again test this issue.

    Kind regards
    Oleg Scherling, mengg | Engineering applications. National Instruments | NIG. |

  • Resize the Bitmap and get changed background = /...

    Hi I have a simple code for mounira a bitmap, but, when I get the new resized Bitmap of it have a black background? and I don't want to. Here's the code.

    public class ImageUtils {
    
        public static Bitmap resizeImage(Bitmap originalImage, int newWidth, int newHeight) {
            Bitmap newImage = new Bitmap(newWidth, newHeight);
            originalImage.scaleInto(newImage, Bitmap.FILTER_BILINEAR, Bitmap.SCALE_TO_FILL);
            return newImage;
        }
    }
    

    Try this:

    http://supportforums.BlackBerry.com/T5/Java-development/resizing-transparent-bitmaps/Ta-p/703239

  • Resizing a bitmap using .scaleImage32 instead of .setScale

    I have a simple piece of code that I created and which takes a string (the name of the image), gets the image and reszies it and outputs a Bitmap file.

       public static Bitmap scaleBitmap(String imagename)
        {
            EncodedImage ei = EncodedImage.getEncodedImageResource(imagename);
            ei.setScale(2); 
    
            Bitmap bmp = ei.getBitmap();
            return bmp;
        }
    

    The problem is that .setScale is obsolete, and although still works, I want to make sure I use the latest features, so my app works in all areas. I want also to the scale not by half. I can't get .scaleImage32 to work tho.

       public static Bitmap scaleBitmap(String imagename)
        {
            int numerator = Fixed32.toFP(1);
            int denominator = Fixed32.toFP(2);
            int scale = Fixed32.div(numerator, denominator);
    
            EncodedImage ei = EncodedImage.getEncodedImageResource(imagename);
            ei.scaleImage32(scale, scale);
            Bitmap bmp = ei.getBitmap();
            return bmp;
        }
    

    I'm using it wrong?

    I test on the 8830 and the 9000. the results are the same on both, if resizes no problem, the scaleImage does not work.

    Try this:

    private Bitmap getScaledBitmapImage(String imagename)
        {
    
            EncodedImage image = EncodedImage.getEncodedImageResource(imagename); 
    
            int currentWidthFixed32 = Fixed32.toFP(image.getWidth());
            int currentHeightFixed32 = Fixed32.toFP(image.getHeight());
    
            int width = image.getWidth() /2;
            int height = image.getHeight() /2;
    
            int requiredWidthFixed32 = Fixed32.toFP(width);
            int requiredHeightFixed32 = Fixed32.toFP(height);
    
            int scaleXFixed32 = Fixed32.div(currentWidthFixed32, requiredWidthFixed32);
            int scaleYFixed32 = Fixed32.div(currentHeightFixed32, requiredHeightFixed32);
    
            image = image.scaleImage32(scaleXFixed32, scaleYFixed32);
    
            return image.getBitmap();
        }
    

    Concerning

    Bika

  • Using PhotoShop elements Version 9.3 14?) : I have a file I've flattened and now want to resize now.  When I try to resize the size of the document from inches to Pixels.   When I choose to change - there is no other choice "Pixel".  I'm in., Points,

    Using PhotoShop elements Version 9.3 14?) : I have a file I've flattened and now want to resize now.  When I try to resize the size of the document from inches to Pixels.   When I choose to change - there is no other choice "Pixel".  I'm in., Points, cm, but no Pixel option.      I have the following options checked: resampling, constraint proportions, scale of Styles.

    The plan was to add a frame of 60 pixels around the 5.56 a picture and then framed 8 x 10 x 7.

    Go to Image > resize > canvas size. You should be able to find the scale of the pixel in the menu dropdown.

  • Resize the Bitmap image in the image control in flex3

    I'm loading an image in the image at the start control. Then I am a color transformation applying to this image and want to load this bitmap in flex3. That works, but automatic resizing does not work then. If I load another image, then AutoSize works well. Image control does not support resizing of the same bitmap object image?.

    Here is the part of the code:
    < mx:Image source = "{imgpath}" id = creationComplete = "imageCompleted ('MyImage'); "x ="20"y ="30"width ="365"height ="440"maintainAspectRatio = 'true '.
    / >
    private void applyColor(event:Event):void {}

    myBitmapDataObject = new BitmapData (myImage.height, true, myImage.width, 0x00CCCCCC);

    myBitmapDataObject.draw (myImage.content);
    myBitImage = new Bitmap (myBitmapDataObject);

    myBitmapDataObject.colorTransform (myBitmapDataObject.rect, new ColorTransform (1, 1, 1, 1, 39, 76, 135, 100));
    myImage.removeChildAt (0)
    myImage.load (myBitImage);


    }

    Any help is appreciated.

    You must create the BitmapData as the size of the original loaded image, not mx:Image height and width. Simply convert you / copy only a portion of the original size that matches the size of the Image. That is to say. whether you have a picture of 400 x 400 and your Image is 100 x 100. Your BitmapData is created at 100 x 100, NOT 400 x 400, you need to do. Everything simply because you resize the Image, does not mean that the underlying BitmapData is also resized.

    Also, in general, addChild would serve after removeChild, never used charge myself. Not sure if this is important.

  • Error: "failure of the decoder or not installed' when try to play a DVD in Windows Media Center.

    Original title: Dell Inspiron 1501 with Windows XP Media Edition drive d / error/defect of the decoder.

    After download of Internet Explorer 8 I now get a decoder error when you insert a DVD and Media Center. The message says 'malfunction of the decoder or not installed' and suggests to restart the computer and Media Center. This does not solve the problem. The drive is identified as Philips SDVD8820. What can I do to fix this?

    Hi Don,

    You can download and run the Microsoft Windows XP Video Decoder Checkup Utility . This utility will help you determine if an MPEG-2 video decoder, or a DVD decoder is installed on your system and if the decoder is compatible with Windows Media Player 10 and Windows XP Media Center Edition 2005.

    Hope the helps of information.

  • Try to resize a window of console VM to VIC

    I'm under ESX3i and connect to my virtual machines with VMware Infrastructure

    Customer (VIC) on a Windows XP computer. Virtual machines running XP or Windows

    Server 2003.

    I select a VM to VIC and click on the launch of Virtual Machine Console.

    I then resize the window of console for one more big size, then click on the "see - & gt; Menu item fit Guest now.

    I get the error "Resolution not supported for comments - cannot resize the comments resolution to match the size of the window."

    As far as I can tell, I have the latest VMware tools on the VM images,

    and have had the same problem with 2 different VM. Two of these virtual machines

    have been able to resize with success when running under VMware Server, but

    Since their conversion on my server ESXi, I can't resize the

    Windows.

    Worse still, in virtual machines, if I go into the display properties of Windows, I

    can only set the maximum resolution to 1180 x 885, and it is both

    the XP and 2003 VMs.

    Any ideas?

    James

    RDP is not the size of the console is limited  Use RDP to connect to servers and/or client XP, and you can have the size as needed.  The console is not necesarilly designed for big screen, because it is limited in buffer size to 4 MB.  Others have managed to increase this limit, see here: http://communities.vmware.com/thread/90634

    -KjB

  • "Windows Media cannot play the DVD because no compatible DVD decoder is not installed on your computer"

    When I insert one no matter what DVD in my Dvd Player, I get a message indicating

    "Windows Media cannot play the DVD because no compatible DVD decoder is not installed on your computer"

    I have Windows XP Professional, I have not played a DVD on the computor in several months. How can I fix this.

    When I insert one no matter what DVD in my Dvd Player, I get a message indicating

    "Windows Media cannot play the DVD because no compatible DVD decoder is not installed on your computer"

    I have Windows XP Professional, I have not played a DVD on the computor in several months. How can I fix this.

    =========================================
    If you have a DVD decoder (for example Power DVD) try reinstalling it.

    If it is not... Take a look at the following site:

    Info about DVD decoders:
    Plug-ins for Windows Media Player
    http://www.Microsoft.com/windows/windowsmedia/player/plugins.aspx

    Also, you could try one of the players following freeware that will play DVDs:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    VLC Media Player
    http://www.videolan.org/

    Media Player Classic
    http://www.filehippo.com/download_media_player_classic/
    (just unzip and run it... (no installation required)

    Media Player Classic Home Cinema
    http://MajorGeeks.com/Media_Player_Classic_Home_Cinema_d6213.html
    (works on XP/Vista/7)

    Also, it may be interesting to try to install one of the following Codec Packs:

    * Proceed at your own risk *.

    (1) news of CCCP (combined Community Codec Pack)
    http://www.CCCP-project.NET/wiki/index.php?title=Main_Page

    (2) K-Lite Codec Pack (full)
    http://www.filehippo.com/download_klite_codec_pack/

    Good luck...

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • I can't play DVD's with Windows Media Player because no compatible DVD decoder is not installed on my computer

    Original title: Windows Media Player

    I can't read the dvd with Windows Media Player... it says

    Windows Media Player cannot play this DVD because no compatible DVD decoder is not installed on your computer.

    What can I do to make it work... and I don't want to pay for another program.

    Thank you.

    Can not read the DVD in the drive Media of Windows XP
    ====================================

    Running the following command may be worth a try:

    Reach... Start / run... and type or copy / paste:

    regsvr32 jscript.dll

    Press on... Come in

    You should see the following dialog box:

    DllRegisterServer in jscript.dll successful / OK

    No luck?... read more...

    FWIW... Win XP cannot natively recognize Commercial
    DVD video... it requires a DVD decoder.

    If you could play before commercial video DVD...
    do a system restore to a time before this started
    may be your solution.

    (306084) how to restore Windows XP to a
    previous state
    http://support.Microsoft.com/?kbid=306084

    Or you could buy a DVD decoder at the following link:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    (948247) how to set a system restore
    point in Windows XP
    http://support.Microsoft.com/kb/948247

    Info about DVD decoders:
    Plug-ins for Windows Media Player
    http://Windows.Microsoft.com/en-us/Windows/downloads/Windows-Media-Player/plug-ins

    Or you can download and use one of the following
    freeware multimedia players:

    VLC Media Player
    http://www.filehippo.com/download_vlc/
    (works on XP/Vista/7)
    (name of the file to download: vlc - 2.0.1 - win32.exe)

    Media Player Classic Home Cinema
    http://MajorGeeks.com/Media_Player_Classic_Home_Cinema_d6213.html
    (works on XP/Vista/7)
    (name of the file to download: MPC - HomeCinema.1.6.1.4235.x 86 .exe)

    Or... you can try to download and install the
    Following Codec Pack.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    * Proceed at your own risk *.

    K - Lite Codec Pack (full)
    http://www.filehippo.com/download_klite_codec_pack/
    (Win XP / Vista / Win 7-32 bit and 64 bit)

    Good luck...

  • I went to play a DVD on my computer this evening and received this msg: Windows Media Player cannot play the DVD because no compatible DVD decoder is not installed on your computer.

    DVD decoder not installed?

    I went to play a DVD on my computer this evening and received this msg: Windows Media Player cannot play the DVD because no compatible DVD decoder is not installed on your computer.
    A few weeks ago, I played DVD on my computer. I would like to know what is happening. Any ideas/suggestions?

    I tried to play one of the same DVDs I played before... same message.  Nothing to my knowledge has been removed from my computer and I'm the only one with access... "very confused.

    Thanks if anyone can help.

    Yes, and if you install the utility on your system, you'll see all decoders.

    The utility will also tell you if a decoder is compatible or not.

    Using Media Player version 10 or 11?

    the utility tells me I have no decoder... the only thing I can think is that if I actually deleted it... I rarely remove anything because I do not add a lot... but it is possible a few weeks ago, I have to get rid of some things (I'm quite cautious because I'm not an expert).   It is the Media Player version 11, I was trying to use... but I rebooted now 10 to see if there was something to update related that mess.

    because I used the VLC Player successfully, I have not yet tried Windows Media Player (since WMP reloading and load the codec pack)

    So great to have the entry of a person who knows what he's doing.  Thanks again. I will try the Windows Media Player later and see if I have his use of return.

    Have a great day!

  • How can I solve this problem on Media Player? Windows Media Player cannot play the DVD because no compatible DVD decoder is not installed on your computer.

    Windows Media Player cannot play the DVD because no compatible DVD decoder is not installed on your computer.

    FWIW... Win XP cannot natively recognize Commercial
    DVD video... it requires a DVD decoder.

    If you could play before commercial video DVD...
    do a system restore to a time before this started
    may be your solution.

    Or you could buy a DVD decoder at the following link:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    (948247) how to set a system restore
    point in Windows XP
    http://support.Microsoft.com/kb/948247

    Info about DVD decoders:
    Plug-ins for Windows Media Player
    http://Windows.Microsoft.com/en-us/Windows/downloads/Windows-Media-Player/plug-ins

    Or you can download and use one of the following
    freeware multimedia players:

    VLC Media Player
    http://www.filehippo.com/download_vlc/
    (works on XP/Vista/7)

    Media Player Classic Home Cinema
    http://MajorGeeks.com/Media_Player_Classic_Home_Cinema_d6213.html
    (works on XP/Vista/7)

    Or... you can try to download and install one of
    the following Codec Packs.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    * Proceed at your own risk *.

    (1) K-Lite Codec Pack (full)
    http://www.filehippo.com/download_klite_codec_pack/
    (Win XP / Vista / Win 7-32 bit and 64 bit)

    (2) information on CCCP (combined Community Codec Pack)
    http://www.CCCP-project.NET/wiki/index.php?title=Main_Page
    (Windows 7, Vista and XP SP1 and above - 32-bit and 64-bit)

    Good luck...

Maybe you are looking for