Saving image without bits loss/change

hi there,
I was trying to save an Image (which i created myself with MemoryImageSource, and proper bit manipulation where red bits hold some characters, very important)and then i saved the image to jpeg by by using BufferedImage and com.sun.image.codec pacakage...its very important that when i read back the saved image, the bits the pixels array are the same as they had been created....but i found them changing...though image looks almost similar....can anybody out there help me how can i recover the same bits in Image pixel array or save it properly using some other technique, so that when i read the image the bits are not changed???
helps would be appreciated a lot..and your name would appear in my software's about dialog..that's a deal..plz help...
kushal

What codec were you using.
You want one that has "lossless" compression.
i.e. GIF, TIFF, TGA, BMP, etc.
JPEG has "lossy compression" although as someone mentioned you may be able to call a method to force it to be lossless.

Similar Messages

  • How to see all image file types when saving images without selecting "all files"

    Hallo, and thank you fom reading.
    I am a person who saves a lot of images online in different folders with different names like G - 456 or F - 35.
    I have been using firefox 10.0.2 for a long time because of a bug (I guess) that made it easier to save images.
    When I saved an image it would always show me all the image files in any folder I wanted to save it, and that way making it easier for me to save files with the right names.
    Now with the newer firefox (currently 19.0) whenever I try to save a JPEG I only see the JPEG files in the folder and only way to see the others is by selecting "save as type" all files, but with this I also see all the files that are not images.
    This used to save me a lot of trouble and a bit of time but I dont see anything in the options menu that can help me. Is there a way to recreate this function?
    Thank you for your time.

    I suspect this is a Windows problem. I am surmising the FilePicker uses the Operating System or Desktop facilities. Does Windows 7 offer any other file categories like ''images'' ?
    I do not normally use Windows 7, but may the option depend upon the directory being an indexed one, I ask after finding this thread ''Bring File types tab back'' [http://www.windows7taskforce.com/view/819]
    This question is a duplicate of [/questions/951764]
    Normally I would lock the duplicate question, but in this instance I will leave it open as it is unanswered and someone may give a better reply.

  • How can I import an image without Motion 5 changing its proportions?

    I have an image that's intentionally larger than the canvas size (1080x1920) in Motion 5. Every time I import it or drag it to the timeline, Motion automatically squeezes the image to fit the canvas proportions. I know I can go and adjust the width of the image to get it back closer to its correct proportions, but I'm going to be importing multiple images like this will add a ton of extra (and non-precise) work.
    Is there a setting to change this?

    I've tried that. The properties show that it is at 100%, and I have to stretch it out further than 100% in order for the proportions to look normal again. I've also selected "Do Nothing" in Preferences and it doesn't make a difference. It seems that option is for scaling images that are larger than the project pixel dimensions, but it still squishes my imported images.
    Since this was a relatively simple animation, I just did the scene in Final Cut and then brought it back into my Motion project as a Quicktime movie. I would think such a workaround shouldn't be necessary though.

  • Saving image without encoding

    Hi,
    I'm writing an appliaction that reads jpg files from local file system, resize them and write to disk. During this process most time is taken by encoding bitmap data to jpeg file format. I'm wondering if it's possible to write bitmap data to file without encoding it. Is it really necessary to encode jpg data again as jpg data? or is there any way to do resizing really fast?

    My bad, it's pretty obvious that when I have bitmap data it's no longer stored as jpeg data and I can't save it as jpeg on disk.
    My problem was solved by very efficient 3rd party jpeg encoding library: http://segfaultlabs.com/devlogs/alchemy-asynchronous-jpeg-encoding.
    Currently I'm trying to compile it's latest version because the version I have now has some memory leaks. Wish me luck

  • Another technique to hide a message in wbmp image (1 bit image)

    1. i would like to know is there another technique or method that i can do to hide
    message in wbmp image format without loosing the quality of the image?
    if i use LSB technique, it would loosing the quality of the image because LSB technique is no suitable
    for WBMP image but it used widely in BMP,JPEG and other image format because the images are
    8bit to 24 bit of color representation.please give me a hint to solve my problem. any technique would
    be fine as long it can hide message in wbmp image format.
    thank you

    You are asking for something impossible. To be able to hide a message in an image without noticeable loss of quality, either the image should contain a lot more information than the message, or you should have a preconception of what's in the image. Usually the latter is not possible, and in the case of bitmap images like wbmp the former is not true. You need at least 32 bits to encode one letter (assuming English alphabet) and that's already 32 pixels. But if the picture is big and the 32 pixels are scattered all around you might not notice the change.
    Let's make a thought experiment: suppose we were to store 64 characters (a short line of text) using 32 bits per character, we'd need 32*64 pixels just for this information. Experimenting with a graphics program shows that putting more than 8 random pixels in a block of 64x64 pixels already gets noticeable (depending on image). 32*64/8 = 256, so we'll need 256 of 64x64 pixel blocks to store all the information. So total the image should have at least 256*64*64 pixels. If the image was square sized, the size would have to be at least 1024x1024 pixels to encode one single line of text!
    I'm not familiar with the wbmp file format though, maybe there's a way to include a hidden comment header that doesn't affect the graphics area.

  • Saved image displays differently outside Photoshop

    When I save an image I've been working on in Photoshop, then open the saved file outside Photoshop, the image looks quite different than it does inside Photoshop, much drabber and less saturated. I have both Photoshop and the display program set to sRGB.  I figure that I should have consistency within the monitor, whether it's calibrated or not.  I'm sure I'm missing something basic here.  I'd appreciate any help here, because my prints wind up drab, too.  Many thanks!

    LBJack wrote:
    I overlooked one switch in the Save dialog.  Now the images display correctly.
    Can you be more specific, please?
    Were you saving images without a color profile before, and some application(s) in your system were displaying them improperly?
    Problem is, in that case one wouldn't really expect to see the kind of difference you describe unless your document profile really wasn't sRGB IEC61966-2.1.
    Is it possible you're editing your images in the Adobe RGB 1998 color space?  That could happen if you're opening images through Camera Raw, as the color space it's set to deliver is configured separately (via the link at the bottom-center of the Camera Raw dialog) from the Photoshop defaults.
    By the way, if you don't already know, you can easily set the status block in the lower-left of the Photoshop window to show you the color space of your current document:
    -Noel

  • Converting a Signed 16 bit colour Image to 32 bit Image without Losing the Colour

    Hi,
    I am using the IMAQColourHistogram which only accepts 32 bit image inputs. I changed the Image from 16 bit to 32 bit using 'Cast Image'. The program worked but inserting an indicator, I realised that the Cast Image actually changes the Color in the image to a black and white Image. Is there a way I can change the 16 bit to 32 bit without losing the colour. 
    Any suggestions on this would be very helpful as I am currently stuck in my project.
    Thanks.

    Hi,
    Is your 16bit image a real color image or only a grayscale image with a false color palette?
    If your image is only a grayscale image, simply use the IMAQHistogram function  (located in the Analysis palette) wich accepts 8 and 16bit images.
    Color images are 32bit because you have 3 planes of 8 bit (Red, Green, Blue)
    16bit are not usually color images, but grayscale image with extended pixel depth compared ti traditionnal 8bit images.
    Regards

  • I did a presentation with many images and animations, now I need to change only the images without modify the related animations. How can I do it?

    I did a presentation with many images and animations, now I need to change only the images without modify the related animations. How can I do it?
    I use Keynote 09

    Select the image you want to change and go to Format Menu>Advanced>Define as Media Placeholder (or command, option, control i).

  • Images Not Being Saved as 16-bit

    Hello,
    We are using a Basler acA2000-340km camera.  I am able to capture frames in 10-bit and 12-bit pixel bit depth successfully.  However when I try to save those frames to disk they are only being saved in 8-bit format.  I tried using both .tif and .png images.  I am using the imgSessionSaveBufferEx() function to save the image.
    I noticed in MAX 10-bit and 12-bit acquired frames are correctly being saved as 16-bit images.  What am I missing here?
    Thank you.

    Hello Amit,
    Yes the image was acquired in 10-bit and stored in a 16-bit buffer.  I tried both TIF and PNG formats.  It looks like the problem is that NI needs to be specifically told that the image is 16-bit.  I am hoping that I don't need to create customized camera files just to set the bit depth.  I was hoping I could do it through one of the attributes.
    Are you coding in C++?  How are you indicating that you have 16-bit images?

  • Saving a image without a background

    I did the tutorial on Removing Image Backgrounds with
    Fireworks. That works great, but I don't know how to save a image
    without a background. I am trying to save it for a website. I have
    Fireworks 8.0. I tried to save it as a Alpha Transparency GIF file
    , but the image is poor. I don't know the correct way of saving
    this.
    Any help would be greatly appreciated.
    Tony

    On Tue, 16 May 2006 20:48:12 +0400, Tony024
    <[email protected]>
    wrote:
    > Ilya Razmanov,
    >
    > I did have that problem viewing under IE 6 on one of my
    pc. My other
    > pc is
    > running IE 7 and it is fine. I am trying to save the
    image without any
    > bacakground so I can upload it to dreamweaver 8.0 so
    that it can be
    > viewed in
    > any IE. I am trying to use a GIF or a JPEG file.
    Official JPEG specs does not allow any transparency at all,
    so save your
    time and quit trying it. GIF only support limited colors (up
    to 256), one
    of that can be assigned as "transparent". So when FW exports
    GIF from a
    source file that have any partial transparency, it "premixes"
    any partial
    transparent color of source with "matte" color. In case the
    latter
    correspond to average color of your page background, and your
    page
    background is not too wild and colorful, and you are not
    using too wide
    partially transparent stuff, it normally work well.
    Among the image formats common on the Web, only PNG provides
    true partial
    transparency. Alas, IE still does not correctly understand
    that part of
    PNG specs that was set years ago. So if you definitely
    positevely can't
    live without transparency things that are available in GIFs,
    PNG plus
    specific CSS and\or Javascript trics is the only way to go.
    However, I'd
    personally make sure I can't live with old limited GIFs
    before going that
    way.
    Ilya Razmanov
    http://photoshop.msk.ru -
    Photoshop plug-in filters

  • How to reduce size of image without loss quality

    I am website developer design a website http://www.ritikakaur.com/ in wordpress php i am new in photoshop and i want to use some image plz suggest me how can i reduce size of image without loss of image quality.

    Which file formats are eligible for your purposes?
    non-destructive compression has limits, so you may have to compromise.

  • When saving image i want that firefox auto change the file name if same name exists like google chrome etc. if there is any option pl let me know.

    when saving image i want that firefox auto change the file name if same name exists, like google chrome does this. if there is any option pl let me know.

    this saves images, i just want to save single image, and wants while saving image, it auto changes the name if find similar name of file in the folder. chromium and maxthod does this

  • How to change a number to a barcode image without other softwares ?

    hi all ,
    latest version of apex (on the cloud) ,
    How to change a number to a barcode image without other softwares ?
    for example
    a number item and a button
    click the button to change the number to a barcode image ??

    Check out this application sample: https://apex.oracle.com/pls/otn/f?p=31517:101:374672662665:::::
    Thank you,
    Tony Miller
    LuvMuffin Software

  • Getting Error while saving a transaction without making any changes to it.

    Hi All,
    I have a page where in the advance table I add few rows and save the transaction. First time when I save it everything works fine, but when I save it again without making any changes to the fields I get following error:
    "Unable to perform transaction on the record. \nCause: The record has been deleted by another user. \nAction: Cancel the transaction and re-query the records to get the new data."
    In the same page if I make any changes again it allows me to save the transaction.
    Please guide how we can avoid it..
    I have already checked many threads related to the issue but nothing has worked. Please help!!
    Any help would be highly appreciated..
    Regards,
    Nisheeth

    Hi All,
    please help!!

  • How to resize photoshop image without changing canvas size?

    When i had the older versions of photoshop i would change the image size and it would enlarge on my canvas for me to rearrange. Lately i realized on CC when i increase image size so does my canvas size. Is there anyway to prevent my canvas size from increasing too?

    I am having what appears to be this same issue.    I am using PS CC.  
    hello @ c.pfaffenbichler
    I resized my image in image> image size.  
    Details:
    I am not a ps expert but woefully self taught.  However through much trial and error I have in my experience over the years, achieved some comfortability with the image size dialog box as well as the canvas size dialog box.  SOME comfortability lol.  That is, I feel that I understand what is going on most of the time and when flummoxed have studied adobe literature or read hundreds of posts here and elsewhere to gain additional knowledge which many times resolves the issue.  I like digging and finding the answers.
    In this case, my digging is done dug a giant hole and I am exhausted and found nuthin'.
    I feel like I am going nutso.
    In my mind,
    1.  There is the image I am working on
    2.  There is the canvas the image is sitting on
    My expectation and previous experience is that I can change the Image size by going to Image > image size and this change does not affect the canvas size.
    My expectation and previous experience is that I can go to Image >canvas size and change the canvas size and this does not affect the image size.
    I could also use the Transform to resize the image which also, would not in my expectation, change the canvas size.
    In the beginning of my workflow on this particular collage I did not have this issue,  so that leads me to believe I did or am doing something to cause this rather than it being some kind of bug.    But what do I know.
    I thank you in advance for your assistance.

Maybe you are looking for

  • Pdf portfolio source file name and date in file details

    Is it possible to import the source file name and extension as well as the source file created date in the portfolio file details?  Need to document source to portfolio in working with 3rd parties that will only have the original source.  Need to doc

  • How can I extract part of a PDF file and copy it to a new PDF file?

    How can I extract part of a PDF file and copy it to another PDF file?

  • Two Apple displays not possible with Nvidia 7300 GT (bug?)

    I have a Mac Pro with a Nvidia GeForce 7300 with an Apple 23" display connected to it. Yesterday I wanted to hook up a second 20" Apple display to it and it was simply not possible because the two sockets on the graphics cards are so near to each oth

  • Use Enum to keep config attributes.

    Hi Guys, There´s some restrictions to keep config atributes on enum??? Thanks !! I have an xml and use the folow code to retrieve data, and i think to replace this with a enum ... public static Map loadFolderConfig()     if (xmlConfig != null)      

  • AIR 3.4 - Congratulations Adobe!

    As developers we are the first to bicker and complain when things don't work the way we'd like them to. This isn't one of those posts! I am very impressed with the improvements in AIR 3.4 BETA All of the memory crashes, lagging, etc I was seeing all