How to save a JPG in 256 colors?

I'm using Photoshop CS2.
1. How to save a JPG in 256 colors?
2. Is there a way to see an image properties?
-- I want to know if that image is in 256 color or not...

Mary Jo, since you are a newcomer, you may not yet understand that in any given Adobe forum, there are a whole bunch of conversations going on at the same time. Each one of these is about a certain "topic", described in the title and opening post. The discussion sometimes stays right on point, and sometimes veers off a bit, and there are often quick side-issues branching off from the main topic, but still related. Within limits, people here try to keep the discussion on a single general topic. For example, in this topic, the initial issue is whether there is a way, in Photoshop, to limit the number of colors in a JPEG image to 256; there were discussions about whether this could be done or not, and alternative programs that may be able to accomplish this, and a comparison of the file sizes for 256 bit images in different file types.
Your question, however, is not a logical outgrowth of the discussion. It's a perfectly good question, but it deserves its own new discussion topic. It's like a bunch of people have been sitting around a table discussing the merits of Canon vs. Nikon SLRs, and someone sits down at the table and, instead of joining the conversation, asks a completely unrelated question about point-and-shoot cameras, or camcorders.
It's off-topic here, and you should start a new topic. Make the title descriptive, such as "Why does a 8 megapixel image result in a 3 megabyte file on my computer?" (assuming that's what you want to ask -- just "M" doesn't tell me whether you are talking about MP or MB). In the initial post, provide a more detailed description of what you want to know. Tell us what camera and Photoshop version you are using, and how you encountered the issue. People will see that a new topic raises an issue they know something about and you will get a response -- probably a good answer, if you keep in the conversation.
[Edit: Trez hit "post" before I did. Trez-- I think she is using Photoshop, not Elements; she did say CS2.]

Similar Messages

  • Convert JPG to 256 color GIF

    Is there any existing class file to convert a JPG to 256 color GIF?
    I tried some free src from there:
    http://www.geocities.com/marcoschmidt.geo/java-image-coding.html
    But seems that all throrw exception if the image got more than 256 colors, since my server is not using JDK.1.3x, so I can't use Java Media Framework.
    Any good suggestion?

    GIF files only support up to 256 unique colors, so you need to reduce the number of colors used in your images -- a process called quantization. This will result in a degradation of quality, but the result is usually acceptable.
    See the discussion here for a link to a decent quantizer:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=327240

  • How to save a BufferredImage with RGB color encoded JPEG file.

    Hi, I am new to Java Imaging API programming.
    When I try to write a BufferredImage using following code -
    BufferedImage output = new BufferedImage (width, height, BufferedImage.TYPE_INT_ARGB);
    // Save
    File outputFile = new File("image.jpeg");
    ImageIO.write(output, "jpeg", outputFile);
    It seems that myfile.jpg have CMYK color encoding, Can someone tell me how can I save the BufferredImage with RGB color encoding.
    Thanks,
    Sanjay Ujjainkar

    how to format the text ?
    i have format ted the text but it seems not work!
    Message was edited by:
    Enjoyfans

  • How to save a jpg and give it a label automatically

    Hi guys. I've found myself regularly repeating a set of actions and I was wondering if there was some way of automating them using CS4. The scenario is that I use Bridge as my main photo organisation app. I rate my shots from 1-5 stars and then tend to double click on ones to edit them in PS. After saving the edited shot as a jpg with "_edited" added to the filename, I apply a label which is called 'Enhanced' and then apply a 'Original' label to the original jpg. This lets me immediately filter of my edited/enhanced shots in Bridge and locate the originals if I need them. It also makes the edited files stand out when looked at in a file view of Explorer etc .
    Is there an action or script I can create so that when I've finished editing a jpg it will take the original file name, add "_edited", save it as quality 10, baseline optimised, then apply the 'Optimised' label to the new file and exit the original jpg without saving but with applying the 'Original" label?
    Any advice would be much appreciated. Thanks.

    I have modified the function slightly, could you try this version please?
    #target photoshop
    if (!BridgeTalk.isRunning("bridge")) BridgeTalk.launch("bridge");
    if(documents.length >0){
    var originalFile = activeDocument.fullName.fsName;
    var saveFile = activeDocument.fullName.fsName.slice(0,-4)+"_edited.jpg";
    SaveJPEG(saveFile, 10);
    activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    labelPic(originalFile,"Original");
    labelPic(saveFile,"Enhanced");
    function labelPic(file,tag) {
       var bt = new BridgeTalk;
       bt.target = "bridge";
       var myScript = "";
       myScript += "var file = new Thumbnail(\'"+file+"\');";
       myScript += "var md = file.synchronousMetadata;";
       myScript += "md.namespace = \"http://ns.adobe.com/xap/1.0/\";";
       myScript +="md.Label = \'"+ tag +"\';";
       bt.body = myScript;
       bt.send();
    function SaveJPEG(saveFile, jpegQuality){
    jpgSaveOptions = new JPEGSaveOptions();
    jpgSaveOptions.embedColorProfile = true;
    jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    jpgSaveOptions.matte = MatteType.NONE;
    jpgSaveOptions.quality = jpegQuality; //1-12
    activeDocument.saveAs(new File(saveFile), jpgSaveOptions, true,Extension.LOWERCASE);

  • How to save a jpg and gif at same pixel size?

    This doesn't seem to be very convenient.. I need two file types of same image, identical dimensions..
    Thx

    I don't have AI 13 (CS3), but in AI 12 (CS2), I get the same pixel dimensions for both .jpg and .gif versions created via Save for Web (using your 350x200 example).
    To report oddball forum software behavior, post over at Forum Comments. Don't hold your breath.

  • Converting print Ad to 256 color jpg for ATM Screen

    Got specs for converting a print ad to jpg for ATM: 800wx600h; 72dpi; 256 colors. As far as I know, the only way to get 256 colors is to convert to index. When I do, the halftones get slightly grainy. Also, I can only save the file as .psd, not .jpg as required. Any advice on how to convert my file to 72 dpi jpg with 256 colors appreciated. Thanks.

    Maybe after using index color to get the 256 colors, then convert back to RGB Color and save as a jpeg.

  • How to save info in a meta-data of a jpg file?

    hi, i need to know how to save info in a meta-data of a jpg file:
    this is my code (doesn't work):
    i get an exception,
    javax.imageio.metadata.IIOInvalidTreeException: JPEGvariety and markerSequence nodes must be present
    at com.sun.imageio.plugins.jpeg.JPEGMetadata.mergeNativeTree(JPEGMetadata.java:1088)
    at com.sun.imageio.plugins.jpeg.JPEGMetadata.mergeTree(JPEGMetadata.java:1061)
    at playaround.IIOMetaDataWriter.run(IIOMetaDataWriter.java:59)
    at playaround.Main.main(Main.java:14)
    package playaround;
    import java.io.*;
    import java.util.Iterator;
    import java.util.Locale;
    import javax.imageio.*;
    import javax.imageio.metadata.IIOMetadata;
    import javax.imageio.metadata.IIOMetadataNode;
    import javax.imageio.plugins.jpeg.JPEGImageWriteParam;
    import javax.imageio.stream.*;
    import org.w3c.dom.*;
    public class IIOMetaDataWriter {
    public static void run(String[] args) throws IOException{
    try {
    File f = new File("C:/images.jpg");
    ImageInputStream ios = ImageIO.createImageInputStream(f);
    Iterator readers = ImageIO.getImageReaders(ios);
    ImageReader reader = (ImageReader) readers.next();
    reader.setInput(ImageIO.createImageInputStream(f));
    ImageWriter writer = ImageIO.getImageWriter(reader);
    writer.setOutput(ImageIO.createImageOutputStream(f));
    JPEGImageWriteParam param = new JPEGImageWriteParam(Locale.getDefault());
    IIOMetadata metaData = writer.getDefaultStreamMetadata(param);
    String MetadataFormatName = metaData.getNativeMetadataFormatName();
    IIOMetadataNode root = (IIOMetadataNode)metaData.getAsTree(MetadataFormatName);
    IIOMetadataNode markerSequence = getChildNode(root, "markerSequence");
    if (markerSequence == null) {
    markerSequence = new IIOMetadataNode("JPEGvariety");
    root.appendChild(markerSequence);
    IIOMetadataNode jv = getChildNode(root, "JPEGvariety");
    if (jv == null) {
    jv = new IIOMetadataNode("JPEGvariety");
    root.appendChild(jv);
    IIOMetadataNode child = getChildNode(jv, "myNode");
    if (child == null) {
    child = new IIOMetadataNode("myNode");
    jv.appendChild(child);
    child.setAttribute("myAttName", "myAttValue");
    metaData.mergeTree(MetadataFormatName, root);
    catch (Throwable t){
    t.printStackTrace();
    protected static IIOMetadataNode getChildNode(Node n, String name) {
    NodeList nodes = n.getChildNodes();
    for (int i = 0; i < nodes.getLength(); i++) {
    Node child = nodes.item(i);
    if (name.equals(child.getNodeName())) {
    return (IIOMetadataNode)child;
    return null;
    static void displayMetadata(Node node, int level) {
    indent(level); // emit open tag
    System.out.print("<" + node.getNodeName());
    NamedNodeMap map = node.getAttributes();
    if (map != null) { // print attribute values
    int length = map.getLength();
    for (int i = 0; i < length; i++) {
    Node attr = map.item(i);
    System.out.print(" " + attr.getNodeName() +
    "=\"" + attr.getNodeValue() + "\"");
    Node child = node.getFirstChild();
    if (child != null) {
    System.out.println(">"); // close current tag
    while (child != null) { // emit child tags recursively
    displayMetadata(child, level + 1);
    child = child.getNextSibling();
    indent(level); // emit close tag
    System.out.println("</" + node.getNodeName() + ">");
    } else {
    System.out.println("/>");
    static void indent(int level) {
    for (int i = 0; i < level; i++) {
    System.out.print(" ");
    }

    Hi,
    Yes, you need store data to table, and fetch it when page is opened.
    Simple way is create table with few columns and e.g. with CLOB column and then create form based on that table.
    Then modify item types as you like, e.g. use HTML editor for CLOB column
    Regards,
    Jari

  • How to save status bar background color in local settings(Windows Phone 8.1)

    I have given the user the freedom to change background colour and save it in local settings. But I am confused on how to save the status bar colour settings because I want to give the user the freedom to choose from 4-5 colours where background of status bar
    can be changed.
    public static void SaveStatusBarColor()
    // get status bar color
    var statusBar = StatusBar.GetForCurrentView();
    var color = statusBar.BackgroundColor;
    // convert color to hex string
    var hexCode = color.HasValue ? color.Value.ToString() : "";
    // store color in local settings
    ApplicationData.Current.LocalSettings.Values["StatusBarColor"] = hexCode;
    public static void LoadStatusBarColor()
    // get color hex string from local settings
    var hexCode = ApplicationData.Current.LocalSettings.Values["StatusBarColor"] as string;
    if (string.IsNullOrEmpty(hexCode))
    return;
    // convert hexcode to color
    var color = new Color();
    color.A = byte.Parse(hexCode.Substring(1, 2), NumberStyles.AllowHexSpecifier);
    color.R = byte.Parse(hexCode.Substring(3, 2), NumberStyles.AllowHexSpecifier);
    color.G = byte.Parse(hexCode.Substring(5, 2), NumberStyles.AllowHexSpecifier);
    color.B = byte.Parse(hexCode.Substring(7, 2), NumberStyles.AllowHexSpecifier);
    // set the status bar color
    var statusBar = StatusBar.GetForCurrentView(); // Exception Line
    statusBar.BackgroundColor = color;
    }This is what was suggested to me. Initially the app runs and saves the settings.But when the app is closed and restarted again it crashes.

    Hi shriyansh,
    Where did you call the method SaveStatusBarColor() and LoadStatusBarColor()?
    I have called your SaveStatusBarColor() in the OnNavigatedFrom method and called the LoadStatusBarColor() in the OnNavigatedTo method, it worked very well in my side.
    So I can not reproduce your issue.
    Here are my code and result, please try to check it:
    public class test
    public Color colors { get; set; }
    public sealed partial class MainPage : Page
    List<test> testdemo = new List<test>();
    public MainPage()
    this.InitializeComponent();
    testdemo.Add(new test() { colors = Colors.Red });
    testdemo.Add(new test() { colors = Colors.Green});
    testdemo.Add(new test() { colors = Colors.Gray});
    testdemo.Add(new test() { colors = Colors.Blue });
    this.NavigationCacheMode = NavigationCacheMode.Required;
    public static void SaveStatusBarColor()
    // get status bar color
    var statusBar = StatusBar.GetForCurrentView();
    var color = statusBar.BackgroundColor;
    // convert color to hex string
    var hexCode = color.HasValue ? color.Value.ToString() : "";
    // store color in local settings
    ApplicationData.Current.LocalSettings.Values["StatusBarColor"] = hexCode;
    public static void LoadStatusBarColor()
    //get color hex string from local settings
    var hexCode = ApplicationData.Current.LocalSettings.Values["StatusBarColor"] as string;
    if (string.IsNullOrEmpty(hexCode))
    return;
    // convert hexcode to color
    var color = new Color();
    color.A = byte.Parse(hexCode.Substring(1, 2), NumberStyles.AllowHexSpecifier);
    color.R = byte.Parse(hexCode.Substring(3, 2), NumberStyles.AllowHexSpecifier);
    color.G = byte.Parse(hexCode.Substring(5, 2), NumberStyles.AllowHexSpecifier);
    color.B = byte.Parse(hexCode.Substring(7, 2), NumberStyles.AllowHexSpecifier);
    var statusBar = StatusBar.GetForCurrentView();
    statusBar.BackgroundColor = color;
    statusBar.BackgroundOpacity = 1;
    protected override void OnNavigatedTo(NavigationEventArgs e)
    LoadStatusBarColor();
    protected override void OnNavigatedFrom(NavigationEventArgs e)
    SaveStatusBarColor();
    private void ChangeColorButton_Click(object sender, RoutedEventArgs e)
    var statusBar = StatusBar.GetForCurrentView();
    statusBar.BackgroundColor = testdemo[Convert.ToInt32(Mytextbox.Text)].colors;
    statusBar.BackgroundOpacity = 1;
    The result:
    Best Regards,
    Amy Peng
    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.

  • How do I save a jpg that I have in photoshop elements as a high-res or vector format.

    how do I save a jpg that I have in photoshop elements as a high-res or vector format.
    thanks

    Welcome to the forum.
    I wonder, however, if you meant to post to the Photoshop Elements Forum, and not to the Premiere Elements (Video editing program) Forum?
    If you want PSE, then see the above link.
    To Save_As uncompressed, you might want to look at PNG for the format.
    Good luck,
    Hunt

  • How can i create 256 colors (8 bits) jpeg ?

    Dear all :
    The jpeg created by JPEGEncoder was in true color (24 bits) , how can i create or convert the jpeg to 256 colors . Because i want to convert the jpeg to gif in further , but the gifencoder i found can only accept the images that with 256 colors only , so any one can give me a help ? Or the ways that convert a jpeg to gif using java ?

    To reduce the number of colors in an image, try:
    http://www.gurge.com/amd/java/quantize/
    This does a very good job of reducing colors without making the image look too different.
    Further, if you want to encode a GIF file, try using:
    http://www.acme.com/java/software/Acme.JPM.Encoders.GifEncoder.html
    There should be some sample code which shows you how to use those packages on their respective websites. Hope this helps!

  • How do I change the white background color in a b/w line drawing jpg?

    How do I change the white background color in a b/w line drawing jpg?

    Just put a Solid Color Layer atop it and set it to Blend Mode Multiply or
    • load the Channel with the best contrast (cmd-click it in the Channels Panel)
    • invert Selection (cmd-I)
    • create a black Solid Color Layer
    • put whatever below that Layer

  • Officejet 6110xi, How to save scan as .jpg?

    officejet 6110xi, How to save scan as .jpg?

    Hello jpg0, and welcome to the HP Forums, I hope you enjoy your experience!
    I see you are looking into your scan settings.  I would love to try and help you, but I do need a little information first. I am linking a few HP Support documents below that will show you how to find which operating system you are using. Also, if you're using Windows, please include whether your operating system is 32-bit or 64-bit. With this information we can provide you with accurate information.
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Which Windows operating system am I running?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    Please let me know what you find, and thanks for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • How can I save the jpg change the compression?

    how can I save the jpg change the compression fpr smaler files?

    Sorry, this can not be changed.
    You may want to change the image dimension.
    Thanks!

  • Can anyone tell me how to save a picture thats on facebook as a jpg instead of webarchive

    can anyone tell me how to save a picture as a jpg all the time
    when I try to save a picture from facebook it saves as a webarchive and then you can't put it into iphoto

    If you are using Safari, control-click on the image. One of the options in the resulting floating menu should be "Add Image to iPhoto Library."

  • Why, when I save a .BMP as Black & White, it is 256 color?

    AAARRRGGHhh!!!!!
    I HATE the MS Paint in Win 7!!!
    I want to save a .BMP with just TWO colors - Black & White -  for use in another program where I import a .BMP.
    However I can't import since I get an error that the .BMP is more than 256 colors....EVEN AFTER I SAVED AS BLACK & WHITE!!
    IF IT AIN'T BROKE, DON'T FIX IT!!!!

    Hi,
    This is just a warning to in case you do some mishandling.
    You can save the original picture in the desktop, then launch paint program. Click  ->Open to import the picture.
    Then save as "Monochrome Bitmap(*.bmp;*.dib)" tape, you will get the black&white picture.
    Karen Hu
    TechNet Community Support

Maybe you are looking for

  • Request to Mods. re: Yoga Tablet pro 2 not wakeable after it goes to sleep

    We have a number of posts regarding the Yoga Tablet Pro 2 going to sleep and not waking up.  Can we get some kind of confirmation that this is actively being worked on or passed along?  I feel most of us have tried to do a factory reset, for some it'

  • Problem with namespace prefix

    Dear all, I'm using code generated by NW Developer Studio  2004s for use inside Portal components acting as a web service consumer. The problem is that the code generated includes a namespace prefix for each element in the body of the message, but EC

  • Slow performance with macbook pro retina

    Saving an image (JPEG) with my lightning fast new macbook pro 2012 retina edition takes 30-60 seconds.  Any ideas why?  Mountain lion Mac OS, 8GB RAM.  Can't upgrade RAM but shouldn't have to!  I moved images to external hard drive since I was fillin

  • Installing Oracle Forms Developer 9i

    1) I downloaded the trial version (free 30 days) of Oracle Forms Developer 9i and burned the application onto 2 separate disks at my college computer lab. The files were downloaded from the Oracle website as ZIP files. 2) Next, I made a directory (fo

  • Failed to update - disk write error (WinXP Pro)

    These are the steps I performed to get my Nano in it's current state of displaying the contact "www.apple.com/support/ipod" error message. When I bought it last November, the itunes on the CD was outdated and needed updating. Today, after a fresh ins