Set image DPI and Depth BITS

Hi,
I've been working in an app that takes images, converts them to a matrix and then back to images. I use jpeg files. I noticed that an image of 1024x768 thats 500Kb size ends up 1024x768 of 102Kb size.
I checked the images and noticed that for an unknown reason my app take imges of, lets say 300dpi and turns them into 72dpi images.
I would like to know if there is anyway i can tell my app to store the image with 100dpi. I would also like to know if there is any way i can change its bits depth from 24bits to 8 or 4bits.
I did some research but i dont know how to use this:
Package com.sun.image.codec.jpeg
Ideas?
Thanks a lot.

Rodney_McKay wrote:
SoulTech2012 wrote:
i'm sorry you're having so much trouble with this concept
go to Google and type in "image resolution vs. dpi"
this links seems like a good one:
http://www.rideau-info.com/photos/mythdpi.html
I'm sorry you're having so much trouble with the difference between technical terms and the attempt of simple users to explain things in simple words so they can understand.sounds like backpeddling to me
either way, this is a technical forum, get over it
statements must be technically accurate lest you send a noob in the wrong direction
I gave you the definition from a dictionary and an encyclopedia, and you put a link to some unknown site that is intended for simple users of photo editing software.Look, I can't help it if you found some bad definitions.
But that doesn't change the fact that image resolution has nothing to do with dpi
Don't believe everything you read in the Internet...exactly!
DPI is not even a term it's just an acronym of a unit.
If you right click in a JPEG in Windows OS and select Properties->Summary you will see the Horizontal and Vertical resolution of the JPEG in DPI.for the last time, there is the resolution of the image, and then there is the DPI when rendered to the screen or printed on paper, THEY AREN'T THE SAME THING
But wait - you will say Microsoft is also wrong.
I agree that it is confusing this way, but life is hard...it is not confusing to me in the slightest
look, you can argue for your beliefs all you like, i'm done with this topic
furthermore, it's been discussed here many times

Similar Messages

  • HOW TO SET IMAGE DPI

    I read images which are 300 DPI . I get it in BufferedReader, and do some pixel manipulation. When I save those pics as PNG or JPEG the image DPI becomes 72 DPI. There should be a way to set image DPI when converting from Bufferedeader to .pgn or .jpg file.

    I need to know how to set DPI to 400 without destroying the image data or pixel height and width. I know of two places within the header of a jpeg that this can be set a third I can see through debug information in metadata but cannot set. Why is this so difficult to manipulate?

  • Image DPI and resolution

    Hi all,
    I need to set the resolusion and dpi of an image with text,
    because i need to print it in a A4 and it has to be with high quality.
    Thanks!

    [Double-posted|http://forum.java.sun.com/thread.jspa?threadID=5311597&tstart=0].
    ~

  • Setting image dpi size of tiff Image

    Can anyone suggest me a method for setting the size of tiff image to 300 dpi.
    I got the following code
    http://markmail.org/download.xqy?id=lljtrh4jtsowwlok&number=1
    But the image dpi size remains the same after this
    Edited by: Priya on Dec 29, 2008 10:58 AM

    Why do you think the dpi remains the same after using the code in the link?
    Any given printer dosen't necessarily have to honor the dpi setting in an image format. In fact, usually the image viewer used to print the image takes control of the physical size of the image.

  • Setting image zoom and offset properties in Forms 6

    I have a Forms 6 form with an image item with "Sizing Style" set to "Adjust" and "Show Palette" set to "Yes".
    When running the application, the users typically need to view approximately the same region of a set of images. Currently, they have to reapply their favorite zoom settings and move to the correct region whenever a new image is displayed. Now they would like the images to be displayed with their personal zoom and offset settings applied automatically.
    Is it possible to figure out the zoom factor and region which is displayed in an image item? As an alternative, is it possible to intercept clicks on the image palette buttons?
    Thanks, Beat

    your test_image table better to have another primary key item like file_id number with table trigger to sequence generating its value for IF INSERTING event, or it will have no handle to get the image back.

  • How to set both dpi and dimensions?

    I haven't used illustrator in a while, but for classes, I have to set the image to 300dpi and 800x800 px, and I can only keep one or the other, so how do I keep both?
    My art board is 800x800px, I've set my doc raster effects settings to 300dpi. I've tried searching for an answer but I can only find solutions to one or the other, so I'm suspecting it's something simple that I just can't figure out! Any help would be appreciated! Thanks!

    This question is one of the most frequent points of confusion asked about in this forum. So I will go ahead and post the answer I typed, despite your having resolved the issue. It may be of benefit to others.
      ...I have to set the image to 300dpi and 800x800 px...
    You have to set what image to those values, and where?
    This is a vector-based drawing and design assembly program. Unlike a raster imaging program (Photoshop, etc.) it isn't about just manipulating a single array of pixels. Any program like Illustrator (or like InDesign, etc.) is about assembling any combination of independent OBJECTS into a layout. Each of those OBJECTS can be a raster image, a mathematically-defined shape (vector-based path), or a text object.
    So you have to be careful about your terminology when asking for explanations. In the context of a program like Illustrator, the term "image" is assumed to refer to a raster image object. That object may be an individual raster image that exists somewhere on the page, or a rasterization of the entire page that you intend to export, or a raster image that is automatically generated on-the-fly when you apply a raster-based Effect like a Drop Shadow or a Blur. Your question makes it clear that you are confusing all three, and the answer to your question depends on which kind of object you are talking about setting to the required values.
    PPI (Pixels Per Inch) is nothing but a scaling factor. 800 x 800 pixels is a specific COUNT of rows and columns of pixels. Any COUNT of pixels can be scaled so as to achieve any PPI. "Pixels" is only half of the equation. "Inch" is the other half.
    In other words, you can't know the PPI of a raster image until you know TWO things: The COUNT of rows/columns of pixels contained in the image and the MEASURE of the overall image. Only then can you know the third thing: the COUNT per MEASURE; the Pixels Per Inch:
    COUNT / MEASURE=Count Per Measure
    So your stated requirements provide two values: 800 is a COUNT of pixels (actually rows or columns) contained in an image. 300 is a COUNT per MEASURE after the image has been scaled to some unknown MEASURE. So:
    800/300=Number of Inches
    The PPI of an 800 x 800 pixel raster image is 300 PPI only when those 800 pixels (rows/columns) contained in the image have been scaled to occupy 2.66666.... inches. (Notice that this is actually quite intuitive enough to do in your head: How many "threes" does it take to equal one "eight"? Two-and-two-thirds, or 2.6666....)
    So whatever 800 x 800 pixel image you are talking about will have to be scaled to MEASURE 2.66 inches in order for its PPI to be 300. That's 2.66... inches or its equivalent in some other unit of actual measure.
    Again the question remains: What image are we talking about? And how does that relate to Illustrator's rulers and Document Raster Effects setting? Read on.
    Read the first paragraph again and be sure you understand this point: An Illustrator page can contain any number of INDEPENDENT raster images. Each is an independent OBJECT that each can be independently scaled. Therefore, each raster image on an Illustrator page can have its own, individual, PPI value. But Illustrator has only one horizontal page ruler. So there is no way that setting Illustrator's rulers to "Pixels" can reliably indicate
    the actual number of pixels contained in any and all raster image(s) that may exist on the page.
    Unlike Photoshop, Illustrator's rulers are always an indication of linear measure. A pixel has no linear measure whatsoever until you give it one; i.e.; until you scale it to an actual size. Therefore, a pixel is not a unit of linear measure. So the actual PPI of any raster object that resides on the page, in truth, has absolutely NOTHING to do with the "Pixels" indicated on the page rulers when you set the ruler units to "Pixels," unless you deliberately set up that correspondence.
    (I can't decipher from Jacob's tongue-in-cheek response to whom he is referring as "some." If "some" includes me, I assure you I am not saying this to confuse anyone. I'm saying this to help clear up the confusion that chronically occurs among newcomers due to this regretful element of the interface.)
    Suppose for example, you have an image that you know contains one pixel. You import this image into an Illustrator document. The rulers are set to Inches. In the Transform palette, you set the height and width of this raster image object to 1 inch. You carefully position the upper left corner of the image to the page origin.
    Based on what you observe by looking at the rulers, the resolution of this image is one Pixel Per Inch. Makes sense, right?
    Now change the rulers' Unit of Measure to "Pixels."
    Based on what you observe by looking at the rulers, the resolution of this image is one Pixel Per 72 Pixels. Wha...? Umm... its resolution is 1/72 Pixels Per Pixel? Its resloution is .013888... Pixel Per Pixel? What kind of sense does this make?
    See? Remember: In order to know the resolution of a raster image, you need two values: A COUNT and a MEASURE. What the heck does "Pixel Per Pixel" mean?
    In Illustrator, it simply means Pixel Per Point (1/72 inch).
    ...and I can only keep one or the other, so how do I keep both?
    Sure you can have both. Again, any number of pixels can be scaled to any size, to result in any PPI. But in Illustrator, the only way an 800-pixel image is going to have a PPI of 300 is if it is scaled to measure 2.666... inches. Simply select the 800 x 800 image, set the Unit of Measure to Inches, go to the Transform palette, turn on the proportional chain link, and set the width or height to 2.66.
    But if you then change the Unit of Measure back to "Pixels", don't expect the rulers to indicate a "width" or "height" of 800 "Pixels." They will indicate 192 "Pixels", because 2.66... inches equals 192 Points.
    My art board is 800x800px,...
    No. As you should now understand, your Artboard is, in fact, 800 x 800 points, which is 11.111... inches. If you don't believe this, just change your Unit of Measure temporarily to Inches. The only way you will get an 800 x 800 pixel image corresponding to this Artboard is if you export it to a raster image format (i.e.; create a raster image of it) at a resolution of 72 PPI.
    I've set my doc raster effects settings to 300dpi.
    That simply means that the raster images that are created when you apply raster-based live Effects (Drop Shadows, Glows, Blurs, etc.) will be created with pixels which measure 1/300th of an inch, according to Illustrator's rulers which, again, always refer to an actual unit of measure. So if your rulers are set to Inches, a 1 inch by 1 inch Effect will be rasterized to 300 x 300 pixels. If you change your rulers to "Pixels", the Effect will still be rasterized to 300 x 300 pixels, but your ruler will indicate that that raster image only measures 72 x 72 "Pixels." What that really means is merely that the image measures 72 points, which is equal to 1 inch.
    Don't blame me. I didn't design the program.
    JET

  • 865PE NEO2 need help on findout how to get the memory set to dual and a bit of overclocking

    hello everyone all`s it is i need some advice how to find out that my motherboard is set right and my memory is set to dual. at the moment i have my memory 3200 512ram in DIMM 1 A and in DIMM 3 B can anyone tell me if this is right for my motherboard (865PE NEO2 ) and can anyone tell me the best setting to have to overclock my system at the moment i have 2.5 proccesor overclocked to 2.7.

    Your memory is in the correct location for Dual Channel.
    Btw, providing us your full system and PSU specs will be better for us to give you directions.

  • How to view resolution (ppi/dpi) and bit depth of an image

    Hello,
    how can I check the native resolution (ppi/dpi) and bit depth of my image files (jpeg, dng and pef)?
    If it is not possible in lighroom, is there a free app for Mac that makes this possible?
    Thank you in advance!

    I have used several different cameras, which probably have different native bit depths. I assume that Lr converts all RAW files to 16 bits, but the original/native bit depth still affects the quality, right? Therefore, it would be nice to be able to check the native bit depth of an image and e.g. compare it to an image with a different native bit depth.....
    I know a little bit of detective work would solve the issue, but it
    would be more convenient to be able to view native bit depth in
    Lightroom, especially when dealing with multiple cameras, some of which
    might have the option to use different bit depths, which would make the
    matter significantly harder.
    This
    issue is certainly not critical and doesn't fit into my actual
    workflow. As I stated in a previous post, I am simply curious and wan't
    to learn, and I believe that being able to compare images with different
    bit depths conveniently would be beneficial to my learning process.
    Anyway,
    I was simply checking if somebody happened to know a way to view bit
    depth in Lr4, but I take it that it is not possible, and I can certainly
    live with that.
    Check the specifications of your camera to know at what bit depth it writes Raw files. If you have a camera in which the Raw bit depth can be changed the setting will probably be recorded in a section of the metadata called the Maker Notes (I don't believe the EXIF standard includes a field for this information). At any rate, LR displays only a small percentage of the EXIF data (only the most relevant fields) and none of the Maker Notes. To see a fuller elucidation of the metadata you will need a comprehensive EXIF reader like ExifTool.
    However, the choices nowadays are usually 12 bit or 14 bit. I can assure you that you cannot visually see any difference between them, because both depths provide a multiplicity of possible tonal levels that is far beyond the limits of human vision - 4,096 levels for 12 bit and 16,384 for 14 bit. Even an 8 bit image with its (seemingly) paltry 256 possible levels is beyond the roughly 200 levels the eye can perceive. And as has been said, LR's internal calculations are done to 16 bit precision no matter what the input depth (although your monitor is probably not displaying the previews at more than 8 bit depth) and at export the RGB image can be written to a tiff or psd in 16 bit notation. The greater depth of 14 bit Raws can possibly (although not necessarily) act as a vehicle for greater DR which might be discerned as less noise in the darkest shadows, but this is not guaranteed and applies to only a few cameras.

  • Hi there! So I am using Lightroom 3 on a pc and I have ran into an issue when exporting images. The DPI and image size (in inches) that I am selecting during the export process. For example I just exported a collection and set the dpi to 180 and the size

    Hi there! So I am using Lightroom 3 on a pc and I have ran into an issue when exporting images. The DPI and image size (in inches) that I am selecting during the export process. For example I just exported a collection and set the dpi to 180 and the size to 7 inches on the long edge. My exported result is 457 dpi and sized at 3200x2134 pixels.. Any ideas on why this is happening and what I can do to correct it?

    The DPI setting in a digital image has no meaning at all. You need to learn how to calculate what you need in your exported image. The only measurement in a digital image that has any meaning is the number of pixels in each direction. It doesn't matter what you set that DPI to (actually it's PPI or pixels per inch). The image will have the same number of pixels regardless of the setting. If you need an image that is 5 x 7" (for example) at 200 PPI then you would want an image that measured:
    5 x 200 = 1000 pixels
    7 x 200 = 1400 pixels
    So you would need an image that is 1000 x 1400 pixels to have a 5 x 7" image at 200 PPI. The reason your exported image had such a high PPI setting is because you specified the number of inches you wanted the image to be. And there were enough pixels in the image that it calculated out to be that high PPI setting.
    I apologize, I don't explain this very well. But you need to learn to do the math to determine how large you really want your exported images to be.

  • How to set PS for the most reliable image previews and how to make sure the color spaces are the same across plateforms

    I've been having an ongoing problem with some of my images changing color/luminance values after merging or flattening an image. This seems to most often happen if I use one of the filters (like crosshatch or notepaper, not sharpen or blur). I can make a copy using command/option/shift + E which most often will look exactly like what's on screen.
    Some people have suggested that it's to do with resolution, PS showing me a low resolution image but I don't think so because the histogram changes -- sometimes in a big way, but most often those spikes in the luminance levels are shaved off. Also, when I have the image open at 100% and effect a merge/flatten, the color changes.
    I'd like to know if there's a way to have PS show me one for one what I'm working on while I'm working on it, or if there is a way to control the color profiles when I'm saving. My best guess at this point is that there is a color profile mismatch going on somewhere. I just don't know where to look for it.
    Typically I work in 16 bit, so my color space is set to ProPhoto RGB; my camera is set to the Adobe color space;
    color management policies are set to preserve color profiles;
    conversion options --> intent is set to relative colorimetric.

    But it is calibrated. I use Xrite 1 and update it every month (on the first).
    The colors can be really off. Here's an example.
    https://flic.kr/p/r6A1Zd (what I want) https://flic.kr/p/qc5QTD (not what I want)
    Also, I can't see how the bit depth will have any effect since the change in color happens in PS when I merge or flatten. It's 8 bit through the editing and 8 bit when I flatten it.
    Have you any suggestions on what I can do on the computer side?

  • Need a good iOS app for measuring image size and app to set printer PPI.

    I'm looking for a photo app for IOS that will give me an accurate representation of the PPI size of my images from my iPhone 6plus as well as my point and shoot camera and also let me set the dpi on my photo printer. Printing photos from the native IOS camera roll is a gamble at best. Nearly impossible to print an 8 x10 with white borders for framing.

    The aspect ratio of the iPhone camera image is 3:4 (3 units high x 4 units wide when held horizontally).  Notice I did not say pixels or dots per inch but units which can represent any kind of measurement. The aspect ratio of a 8x10 print is 4 units x 5 units so no matter how you slice it you cannot fit a un-cropped full frame iPhone photo onto a 8x10 print without white boarder on two sides while the other two sides are printed to the edge. You can but the image would be distorted. Simply put PPI doesn't translate well to DPI. This isn't the place for photo class so I'll leave at that. Before you go out and buy editing software for resizing images for print you should study PPI vs. DPI and resizing digital images for print. Knowing those differences will help you make the best software choice.

  • How to set up the interaction between InDesign CS6 8.0 and Photoshop CS 6 - if Photoshop is installed and the 64 and 32-bit?? default InDesign refers to the 64-bit version of Photoshop and scripts do not work.

    how to set up the interaction between InDesign CS6 8.0 and Photoshop CS 6 - if Photoshop is installed and the 64 and 32-bit?? default InDesign refers to the 64-bit version of Photoshop and scripts do not work.

    Nice of you to point it out here as I at least don’t follow Mr.Nash’s blog regularly.

  • How to Set Image to Lock Screen and Background in Windows Store API?

    How to set an image to windows lock screen and desktop background for windows store app in c#?
    if changing lock screen is available in windows store C# how about changing the desktop background using Windows store C#?

    Hi icce cage,
    To change the Windows lock screen we can use this API:
    LockScreen class with set image methods.
    To change the desktop background, it is not possible as I know.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The value should be set for Base image URL and Image file directory

    Hi experts
    Now customer has the following issue.
    XML Publisher concurrent request, using RTF layout template with LOGO, does not generate the LOGO for Excel output.
    but in output formats PDF, it is shown normally.
    from the debug log, we can found the following error message
    ======
    [051812_054716051][][ERROR] Could not create an image. Set html-image-dir and html-image-base-uri correctly.
    ======
    so I tell the customer to do the following action plan.
    1. in XML Publisher Administrator resp > Administration expand the HTML Output section.
    2a. enter a value for 'Base image URI'
    2b. enter a value for 'Image file directory'
    Customer set the value as following and retest this issue,but he found the issue is not solved.
    Base image URI: /u01/r12/ebssnd/apps/apps_st/comn/java/classes/oracle/apps/media/XXSLI_SONY_LIFE_LOGO.gif
    Image file directory: /u01/r12/ebssnd/apps/apps_st/comn/java/classes/oracle/apps/media
    I verified 'Base image URI' and 'Image file directory' settings:
    1) Change output type to HTML.
    2) Click the Preview.
    but the image is correctly displayed on HTML, so I think the issue is caused by user's uncorrectly setting of the base image URL and/or image file directory
    but could anyone give me some advice on which value should be set for Base image URL and Image file directory
    Regards
    shuangfei

    First thing to do is to edit the post and use some tags to format the code as it is unreadable and too much!
    Read the FAQ (https://forums.oracle.com/forums/help.jspa) to find out how to do this.
    Next we need to know the jdev version you are using!
    As the code is generated I would first try to generate it again after the db change.
    Timo

  • Diff. between image copy and backup set ?

    Hi,
    i hv problem some interview question just like
    what is difference between image copy and backup set?

    below there is exact answer for your question
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup001.htm#sthref281

Maybe you are looking for