Problem placing Jpeg images

Hi Group,
I'm having a problem placing Jpeg images in DW CS3. Some come
in and display
themselves just fine. Others come in as what appears to be
the file name
displayed as a link, blue text and underlined. Previewed in a
browser, when
I click the link the message is:
The image
"file:///C:/Users/Bob/Documents/CUT/CSL%20Web/My%20Assets/Sandy-Kirk_Web.jpg"
cannot be displayed, because it contains errors.
I've looked at the properties of these different images and
dont have a clue
what the problem is.
Any ideas would be appreciated.
Bob

Look at the line you pasted into your reply and note that
it's a link
pointing to your hard drive. Of course that will never work
on the web.
Such broken links are often the result of an improperly
defined local site.
What happens if you remove that image and insert it again,
then save the
page? Is the link still broken?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"mont54321" <[email protected]> wrote in
message
news:fneflb$5jh$[email protected]..
> Hi Group,
> I'm having a problem placing Jpeg images in DW CS3. Some
come in and
> display
> themselves just fine. Others come in as what appears to
be the file name
> displayed as a link, blue text and underlined. Previewed
in a browser,
> when
> I click the link the message is:
> The image
>
"file:///C:/Users/Bob/Documents/CUT/CSL%20Web/My%20Assets/Sandy-Kirk_Web.jpg"
> cannot be displayed, because it contains errors.
> I've looked at the properties of these different images
and dont have a
> clue
> what the problem is.
> Any ideas would be appreciated.
> Bob
>
>

Similar Messages

  • Problem with jpeg image

    Hi, i'm a professional italian photographer, and i'm using aperture since gennary 2006, it's fantastic, but last update make me same problems, when I'm try to open from my library some jpeg images, i see the image for a second, but after it became black and appers this message: image format not supported.
    Do you now what append?
    Thank you
    powermac g5 quad   Mac OS X (10.4.8)  

    hello, max
    quote: "when I'm try to open from my library some jpeg images, i see the image for a second, but after it became black and appers this message: image format not supported."
    have you tried updating the preview?
    have you read this?
    http://docs.info.apple.com/article.html?artnum=304552
    victor

  • Problem Placing JPEGS

    When using the Place command to place identically-sized JPEGS (prepared in Photoshop), sometimes I get a JPEG that, when dragged out to 100%, is exactly 1/2 the size and resolution of the other images. To get this file to place correctly, I must go back to PS and generate a file with double the original dpi. I use InDesign & Photoshop CS5 on a Mac Pro with Snow Leopard and a Wacom Cintiq. The same problem can be reproduced with the same files on an iMac with a mouse.
    Deleting ID Preferences did not help, nor did the Export to .idml trick. Is this caused by some basic stupidity on the part of the user? Any help from you gurus would be deeply appreciated.

    Peter,
    I thank you for this insightful answer - I think you hit it on the head! Is this bug a PS or ID bug?
    Yesterday, I Placed 90 9-inch tall, 72 dpi images without a single problem. Next, I Placed 90 10-inch tall, 72 dpi images (identical in every way to the 9-inch tall images, except for height), but had to re-scale about 30-40% of them, a true PITA!
    Is a fix on the way? I am at least glad to know I wasn't overlooking something very basic.
    Thank you again, but try to answer these questions a bit more promptly... I had to wait about 20 minutes for an answer.

  • Problem with jpeg images imported from Illustrator

    Hi, i am kind of new with Premire and video, though have experience in web design and coding, but i have noticed a weird problem with premiere pro cs 5.5  when i  import jpeg pictures and put them as intro before the video that where done in adobe illustrator and have vectors and stuff, the quality of the image gets pretty bad and blurry...i searched through the internet looking for clues on what to do like changing to png, tiff formats but nothing has helped so far....any ideas on what to do. So when i import jpeg,png images from illustrator (that have vectors or illustrations) do i have to do something special with it, or import it in some special format??? i would appreciate the help.
    This is how the image looks on youtube:
    Anyway here is the video with its poor image quality. http://www.youtube.com/watch?v=o_oMNzXAZ8Y&feature=youtu.be
    This is how it looks originally before putiing it, in premiere pro cs 5.5
    Anyway here is the video with its poor image quality. http://www.youtube.com/watch?v=o_oMNzXAZ8Y&feature=youtu.be
    THANX guys would appreciate the help!!!

    hiya.
    video likes 72 dpi ( though some will say it doesnt matter .. thats a long story ). basically video 'shows' 72 dpi ( basically what the monitor resolution is...typically 72 dpi ).  As you know from print and dimensions, there is a relative sorta thing with byte count ( file size in bytes ), ppi ( I usually say dpi but in video its ppi ....same thing basically )..., and dimensions ( width x height ).
    soooo , as you know in print and web stuff...there is a relationship between number of dots or pixels, dimensions in inches or pixels, and overall byte count of file size....
    That said, in "print" it is usually best to go with 300dpi.. In video it is best to go with 72 ppi.....
    Also, in print and going offest press.. its nice to go with cmyk ( for color separations ).. but in video and web its best to go with RGB.
    The video stuff doesnt deal with vector stuff... it just sees and deals with bitmapped stuff...vector stuff is a mathematical sorta thing whereas video stuff is just plain old bitmaps ( like BMP, TIF, JPG, etc )...
    Ideally your still images and graphics in a video editing program would be bitmapped rgb 72 ppi.. and match exactly the dimension of your video format ( eg. 1080p ).  That said, it is normal to have LARGER images ( still images and graphics ) than your project dimensions if you PLAN ON SCALING AND MOTION )... like, your original graphic or pic can be larger than the project if you plan on scaling it down over time to make it look like you are zooming out in the video ....
    To get the best results of a graphic or picture in a video is to have it exactly the project size ( eg. 1920x1080 px at 72 ppi for full HD ).
    soooooo.... if you convert your vector to bitmap, save as psd or tif or something... at 72ppi , with the dimensions in inches or pixels that equals the video ( 1920x1080 for example )... you will see what you want in your second sample ( the original )...
    ps.. you can import layers to the video if you wanna do a psd file and have ONE of those layers the one you use in your video ...can label it something like " video layer " ... whatever...

  • Problem Placing an Image

    How do i place an image onto an illustrator page? I have a TIF image that i edited in photoshop and I'm trying to place on a 8.2x10.5 illustrator page. When i do this the image looks all pixely and weird (example photo below)
    http://i45.tinypic.com/19b9jp.png
    How can i solve this? Both images are 300dpi.
    I would appreciate it if someone could help me out.

    File>Place!
    Are you scalintgg it up in Illustrator? If so that is not a good idea. Place it at 100% and leave if you need to enlarge i do so from the oringal file in Photoshop.
    Also keep in mind that the magnificaion if set to an odd percentage will sometimes make it look pixelated even tthough it is high res image. Increase the magnification to say 200 or 300 and you will see the images is quite fine it is just the preview that looks pixelated here is a 300 ppi image placed in AI looks pixelated but look below when magnified 400% pretty clear and sharp but not pixelated that is what is hapening to you you zoomed out at an odd magnification and it just appears pixelated in the preview.
    They're the same image

  • InDesign problems placing PhotoShop images

    For some unknown reason I cannot work up a new image in PhotoShop and then use the "PLACE" command to put it into InDesign.  I can "PLACE" older images, but not new ones.  What did I do wronmg?

    Need more information. What format are the images from Photoshop? What version of Photoshop? What version of InDesign?
    And what is the symptom of the problem? An error message? Misplaced content with visual anomalies? What?
              - Dov

  • Problems displaying jpeg images on website.

    I am trialing a website at Clikpic for photographers. The images I have uploaded so far display fine in IE9 but not in Firefox. Spoke to support at Clikpic and they confirm they can see my images fine in Firefox. Cleared all the history, cache, cookies etc but still no good. Downgraded to 3.6.17 just incase, but still no luck. Would appreciate any advice you could give. It must be something local to my laptop I'm thinking? Really don't want to have to use IE.

    If images are missing then check that you aren't blocking images from some domains.
    See:
    * http://kb.mozillazine.org/Images_or_animations_do_not_load
    * Check the permissions for the domain in the current tab in Tools > Page Info > Permissions
    * Check the exceptions in Tools > Options > Content: Load Images > Exceptions
    * Check the "Tools > Page Info > Media" tab for blocked images (scroll through all the images)
    There are also extensions (Tools > Add-ons > Extensions) that can block images.
    * [[Troubleshooting extensions and themes]]
    You can use these steps to check if images are blocked:
    * Open the web page that has the images missing in a browser tab.
    * Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
    * Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
    * Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    * Select the first image link and scroll down through the list with the Down arrow key.
    * If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.

  • ColorSync Utility and downloading jpeg images

    Related questions have been posted with some helpful ideas but so far I don't find my same exact problem (or a solution):
    Attempting on my new MacBook Pro (Mac OS X 10.4.10) to download and open a 58KB jpeg image sent on Yahoo (and automatically scanned for viruses), a window appeared saying "ColorSync Utility cannot open files of this type". The image is downloaded as "securedownload-1, 2, 3, etc.", but won't open. This has not been the case with images sent via Hotmail, where the jpeg is recognized as such and opened in Preview. Why is it different with the Yahoo images and how do I change that preference permanently?
    (Another post-reply suggested clicking on File in Finder and then Get Info and directing it to open in another application. I did, and chose Quick Time Player, but it makes me do it for every single image. Plus I would prefer Preview, which isn't one of the options that I see, even if I click "more options". Dragging the icon to the desktop (as suggested by another post) also opens the file, but at the same scale as the image in the email, not its true size.)
    Is there some obvious fix that I just can't intuit? (I'm fairly new to Mac.) Why is ColorSync Utility the default application for opening such files (at least with Yahoo)?
    Thanks.

    i'm having the exact same problem downloading jpeg images from yahoo mail. the file name is changed to "securedownload-1,2,3 etc.", with the '.jpg' extension removed, and i get the same error message that "Colorsync Utility is unable to open files of this type". i've tried changing the "Open With" setting to Preview, and adding '.jpg' to the file name. they all seem to correct the problem, however, these all seem to be "band-aid" fixes and are not permanent. the common denominator here seems to be yahoo mail.
    to test my theory, i created a gmail account, and forwarded myself one of the jpeg files i am having problems opening. the jpeg file opened flawlessly in the Preview application! another thing that dawned on me, was i had problems opening these files at work as well! on a Dell PC desktop! when i tried downloading these pictures at work (from my yahoo mail account), nothing downloaded, but i was booted off of yahoo mail completely.
    if anyone know of a permanent solution to this problem, please let me know. but i hope this information is helpful!

  • Printing problem linked to EXIF time data for JPEG images.

    For some years I have been using Photoshop Elements 8.0 with no problems of any kind. My computer runs on XP Professional with a system comfortably in excess of the minimum requirements to run Elements 8.0. I load my images into Elements from a card reader which is the same one since I got this version of Elements. I shoot mostly in JPEG with a Nikon D300. I print to one of 2 Epson printers, an SX100 and a PX700W. I don't use the wireless feature of the PX700W, connecting it via USB.
    About a year ago I suddenly began to experience printing problems. If I tried to print an image Elements crashed just at the point where printing would begin. By trial & error I discovered that if I adjusted the time in the EXIF data of the image in Elements, whether by advancing or retarding it by hours or days and then adjusted it back to the original time I had no problems printing that image thereafter.
    I also discoveredc that where I had shot in RAW I could print direct from the RAW image in Elements or from the JPEG I saved from an edited in RAW and had no problems.
    I saw the forum discussions about the issues about the date/time in EXIF having been changed following the import into Elements. For those images I still had on my memory cards I checked the EXIF data in Elements and compared it what was on the image on the card. They were the same. I also checked the time zone and time settings of the camera and they were correct.
    I backed up my catalog, re-formatted the computer to bring it back to its ex-factoy status, re-installed Elements and restored my catalog. I imported new images, tried to print them and the problem was still there.
    Before I might upgrade to Photoshop Elements 10 I'm hoping someone else may tell me they have had the same problem and, hopefully, be able to tell me how they fixed it. I know the workaround will bypass the problem but it really annoys me that it suddenly appeared and I seem to be stuck with it. I'm also concerned that, given I totally re-formatted my computer but the problem  is still with me, that the problem may be imbedded in my catalog and simply gets backed up to,\and restored from,  my backup.
    I'd be grateful for any ideas.

    Hi Miceal,
    Though I'm not sure, but see if Catalog repair and optimize helps resolve the issue.
    For doing this, click File >> Catalog and selec your catalog and then click "repair' button.
    Tick the checkbox for rebuilding indices in the repair workflow.
    Now perform the optimize operation on the catalog similarly.
    Let me know if that helps.
    Thanks
    andaleeb

  • Problem placing buttons on top of a background image

    My knowledge of Java isn't the greatest and I am currently having problems placing buttons on top of a background image within a JApplet (this is also my first encounter with Applets).
    I'm using a Card Layout in order to display a series of different screens upon request.
    The first card is used as a Splash Screen which is displayed for 5 seconds before changing to the Main Menu card.
    When the Main Menu card is called the background image is not shown but the button is.
    While the Applet is running no errors are shown in the console.
    Full source code can be seen below;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.net.*;
    // First extend JApplet
    public class WOT extends JApplet {
         //--------------- Variables are declared here -----------------
         private CardLayout contentCardLayout = new CardLayout();  // declare CardLayout
         private Container contentContain;     // declare content Container
         private JPanel contentCard, splashScreen, mainMenu, menuImage; // declare content Panels
         private JLabel splash, menu, map; // declare image labels
         private ImageIcon mapBtn; // declare ImageIcons
         private JButton mapOption; // declare option Buttons
         private Timer timer; // declare Timer
         private ActionListener actionListener, mapOptionListener; // declare ActionListener
    //--------------- Initialise Applet -----------------
      public void init() {
         //--------------- Set-up Card Layout -----------------
         contentCard = new JPanel(contentCardLayout); // assign card panels to CardLayout
         //--------------- Splash Screen -----------------
         splashScreen = new JPanel();
         splash = new JLabel(new ImageIcon(getClass().getResource("img/bg.gif")));
         splashScreen.add(splash);
         splashScreen.setSize(600,800);
         splashScreen.setLocation(0,0);
    //--------------- "View Map" Option Button -----------------
         mapBtn = new ImageIcon(getClass().getResource("img/map.gif"));
         mapOption = new JButton(mapBtn);
         mapOption.setBorder(null);
         mapOption.setContentAreaFilled(false);
         mapOption.setSize(150,66);
         mapOption.setLocation(150,450);
         mapOption.setOpaque(false);
         mapOption.setVisible(true);
    //--------------- Main Menu Screen -----------------
         //menuImage = new JPanel(null);
         //menuImage.add(mainMenu);
         //menuImage.setLocation(0,0);
         mainMenu = new JPanel(null);
         menu = new JLabel(new ImageIcon(getClass().getResource("img/menu.gif")));
         menu.setLocation(0,0);
         mainMenu.add(menu);
         //mainMenu.setBackground(Color.WHITE);
         mainMenu.setLocation(0,0);
         mainMenu.setOpaque(false);
         //mainMenu.setSize(150,66);
         mainMenu.add(mapOption);
         //--------------- Map Image Screen -----------------
         map = new JLabel(new ImageIcon(getClass().getResource("img/map.gif")));
         //--------------- Add Cards to CardLayout Panel -----------------
        contentCard.add(splashScreen, "Splash Screen");
         contentCard.add(mainMenu, "Main Menu");
         contentCard.add(map, "Map Image");
    //--------------- Set-up container -----------------
          contentContain = getContentPane(); // set container as content pane
          contentContain.setBackground(Color.WHITE); // set container background colour
           contentContain.setLocation(0,0);
           contentContain.setSize(600,800);
          contentContain.setLayout(new FlowLayout()); // set container layout
           contentContain.add(contentCard);  // cards added
           //--------------- Timer Action Listener -----------------
           actionListener = new ActionListener()
                    public void actionPerformed(ActionEvent actionEvent)
                             //--------------- Show Main Menu Card -----------------
                             contentCardLayout.show(contentCard, "Main Menu");
         //--------------- Map Option Button Action Listener -----------------
           mapOptionListener = new ActionListener()
                    public void actionPerformed(ActionEvent actionEvent)
                             //--------------- Show Main Menu Card -----------------
                             contentCardLayout.show(contentCard, "Map Image");
         //--------------- Timer -----------------               
         timer = new Timer(5000, actionListener);
         timer.start();
         timer.setRepeats(false);
    }Any help would be much appreciated!
    Edited by: bex1984 on May 18, 2008 6:31 AM

    1) When posting here, please use fewer comments. The comments that you have don't help folks who know Java read and understand your program and in fact hinder this ability, which makes it less likely that someone will in fact read your code and help you -- something you definitely don't want to have happen! Instead, strive to make your variable and method names as logical and self-commenting as possible, and use comments judiciously and a bit more sparingly.
    2) Try to use more methods and even classes to "divide and conquer".
    3) To create a panel with a background image that can hold buttons and such, you should create an object that overrides JPanel and has a paintComponent override method within it that draws your image using the graphics object's drawImage(...) method
    For instance:
    an image jpanel:
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.io.IOException;
    import java.net.URISyntaxException;
    import java.net.URL;
    import javax.imageio.ImageIO;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    public class BackgroundImage
        // **** this will have to be changed for your program:
        private static final String IMAGE_PATH = "../../m02/a/images/Forest.jpg";
        private BufferedImage myImage = null;
        private JPanel imagePanel = new JPanel()
            @Override
            protected void paintComponent(Graphics g)
            {   // *** here is where I draw my image
                super.paintComponent(g);  // **** don't forget this!
                if (myImage != null)
                    g.drawImage(myImage, 0, 0, this);
        public BackgroundImage()
            imagePanel.setPreferredSize(new Dimension(600, 450));
            imagePanel.add(new JButton("Foobars Rule!"));
            try
                myImage = createImage(IMAGE_PATH);
            catch (IOException e)
                e.printStackTrace();
            catch (URISyntaxException e)
                e.printStackTrace();
        private BufferedImage createImage(String path) throws IOException,
                URISyntaxException
            URL imageURL = getClass().getResource(path);
            if (imageURL != null)
                return ImageIO.read(new File(imageURL.toURI()));
            else
                return null;
        public JPanel getImagePanel()
            return imagePanel;
    }and an applet that uses it:
    import java.lang.reflect.InvocationTargetException;
    import javax.swing.JApplet;
    import javax.swing.SwingUtilities;
    public class BackgrndImageApplet extends JApplet
        @Override
        public void init()
            try
                SwingUtilities.invokeAndWait(new Runnable()
                    @Override
                    public void run()
                        getContentPane().add(new BackgroundImage().getImagePanel());
            catch (InterruptedException e)
                e.printStackTrace();
            catch (InvocationTargetException e)
                e.printStackTrace();
    }

  • Problem placing images in InDesign 5.0

    I'm using InDesign 5.0 for a catalog project. On other catalogs I've placed hundreds of images without a hitch, but suddenly I am having this problem: After successfully placing several images in a document I get the spinning ball after selecting another image to place. It occurs after I've selected "Place" and have gone back to my InDesign doc. This problem began after I'd selected 25 images all at once and successfully placed them. After that I can't even select a single image without the spinning ball. I have to Force Quit and relaunch. I've tried restarting, shutting down for 20 seconds, making new documents (thought it might be a Save-As issue), but can't get more than a handful of images onto the layout before it has this problem again.

    Do you use Linotype Fontexplorer? I ask because the latest plugin update broke illustrator in a similar way, if you do, try disabling the plugin and see if the issue resolves
    Les

  • Problem displaying CMYK jpeg images

    I have a problem with a CMYK jpeg image.
    I know that about supported JPEGs in JRE - JCS_CMYK and JCS_YCCK are not supported directly.
    And I found here how to load the image:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4799903
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5100094
    I used both the suggestions described to load it, but when the image is displayed the colors are wrong, are very different from the one displayed in PhotoShop, for example.
    Any suggestion are very appreciated. If it's necessary i can send you the image.
    Roberto
    Here is the code
    package com.cesarer.example.crop;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import java.util.Iterator;
    import javax.imageio.ImageIO;
    import javax.imageio.ImageReader;
    import javax.imageio.stream.ImageInputStream;
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    public class CroppingRaster extends JPanel
        BufferedImage image;
        Dimension size;
        Rectangle clip;
        boolean showClip;
        public CroppingRaster(BufferedImage image)
            this.image = image;
            size = new Dimension(image.getWidth(), image.getHeight());
            showClip = false;
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            int x = (getWidth() - size.width)/2;
            int y = (getHeight() - size.height)/2;
            g2.drawImage(image, x, y, this);
            if(showClip)
                if(clip == null)
                    createClip();
                g2.setPaint(Color.red);
                g2.draw(clip);
        public void setClip(int x, int y)
            // keep clip within raster
            int x0 = (getWidth() - size.width)/2;
            int y0 = (getHeight() - size.height)/2;
            if(x < x0 || x + clip.width  > x0 + size.width ||
               y < y0 || y + clip.height > y0 + size.height)
                return;
            clip.setLocation(x, y);
            repaint();
        public Dimension getPreferredSize()
            return size;
        private void createClip()
            clip = new Rectangle(140, 140);
            clip.x = (getWidth() - clip.width)/2;
            clip.y = (getHeight() - clip.height)/2;
        private void clipImage()
            BufferedImage clipped = null;
            try
                int w = clip.width;
                int h = clip.height;
                int x0 = (getWidth()  - size.width)/2;
                int y0 = (getHeight() - size.height)/2;
                int x = clip.x - x0;
                int y = clip.y - y0;
                clipped = image.getSubimage(x, y, w, h);
            catch(RasterFormatException rfe)
                System.out.println("raster format error: " + rfe.getMessage());
                return;
            JLabel label = new JLabel(new ImageIcon(clipped));
            JOptionPane.showMessageDialog(this, label, "clipped image",
                                          JOptionPane.PLAIN_MESSAGE);
        private JPanel getUIPanel()
            final JCheckBox clipBox = new JCheckBox("show clip", showClip);
            clipBox.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    showClip = clipBox.isSelected();
                    repaint();
            JButton clip = new JButton("clip image");
            clip.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    clipImage();
            JPanel panel = new JPanel();
            panel.add(clipBox);
            panel.add(clip);
            return panel;
        public static void main(String[] args) throws IOException
             File file = new File("src/ABWRACK_4C.jpg");
             // Find a JPEG reader which supports reading Rasters.
            Iterator readers = ImageIO.getImageReadersByFormatName("JPEG");
            ImageReader reader = null;
            while(readers.hasNext()) {
                reader = (ImageReader)readers.next();
                if(reader.canReadRaster()) {
                    break;
         // Set the input.
            ImageInputStream input =
                ImageIO.createImageInputStream(file);
            reader.setInput(input);
            Raster raster = reader.readRaster(0, null);
             BufferedImage bi = new BufferedImage(raster.getWidth(),
                    raster.getHeight(),
                    BufferedImage.TYPE_4BYTE_ABGR);
             // Set the image data.
             bi.getRaster().setRect(raster);
            // Cropping test = new Cropping(ImageIO.read(file));
             CroppingRaster test = new CroppingRaster(bi);
            ClipMoverRaster mover = new ClipMoverRaster(test);
            test.addMouseListener(mover);
            test.addMouseMotionListener(mover);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new JScrollPane(test));
            f.getContentPane().add(test.getUIPanel(), "South");
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class ClipMoverRaster extends MouseInputAdapter
        CroppingRaster cropping;
        Point offset;
        boolean dragging;
        public ClipMoverRaster(CroppingRaster c)
            cropping = c;
            offset = new Point();
            dragging = false;
        public void mousePressed(MouseEvent e)
            Point p = e.getPoint();
            if(cropping.clip.contains(p))
                offset.x = p.x - cropping.clip.x;
                offset.y = p.y - cropping.clip.y;
                dragging = true;
        public void mouseReleased(MouseEvent e)
            dragging = false;
        public void mouseDragged(MouseEvent e)
            if(dragging)
                int x = e.getX() - offset.x;
                int y = e.getY() - offset.y;
                cropping.setClip(x, y);
    }

    The loading process It takes about 10 seconds, and every repaint it takes the same time.The painting yes, the loading no. It shouldn't take much more time to load the image then an ordinary JPEG. In particular, your now using a "natively accelerated" JPEG image reader, so it should take less time on average to load any JPEG. 10 seconds is absurd. Are you sure your not including the drawing time in that figure?
    - Another problem: JAI-ImageIO is not available for MAC OS X platform.This is somewhat true. You can take the imageio.jar file and package it together with your program (adding it to the class path). This will give you most of the functionality of JAI-ImageIO; in particular the TIFFImageReader. You just won't be able to use the two natively accelerated ImageReaders that comes with installing.
    Right now, you're using the accelerated CLibJPEGImageReader to read the image. You can't use this image reader on the MAC, so you have to take the approach mentioned in the 2nd bug report you originally posted (i.e. use an arbitrary CMYK profile).
    The conversion is too long more than 30 seconds.The code you posted could be simplified to
    BufferedImage rgbImage = new BufferedImage(w,h,
                BufferedImage.3_BYTE_BGR);
    ColorConvertOp op = new ColorConvertOp(null);
    op.filter(cmykImage,rgbImage);But again, 30 seconds is an absurd value. After a little preparation, converting from one ICC_Profile to another is essentially a look up operation. What does,
    System.out.println(cmykImage.getColorModel().getColorSpace());print out? If it's not an instance of ICC_ColorSpace, then I can understand the 30 seconds. If it is, then something is dreadfully wrong.
    the RGB bufferedImage that i get after the transformation when it is displayed is much more brightThis is the "one last problem that pops up" that I hinted at. It's because some gamma correction is going on in the background. I have a solution, but it's programming to the implementation of the ColorConvertOp class and not the API. So I'm not sure about its portability between java versions or OS's.
    import javax.swing.*;
    import java.awt.color.ICC_ColorSpace;
    import java.awt.color.ICC_Profile;
    import java.awt.image.BufferedImage;
    import java.awt.image.ColorConvertOp;
    import javax.imageio.ImageIO;
    import java.io.File;
    public class CMYKTest {
         public static void main(String[] args) throws Exception{
            long beginStamp, endStamp;
            //load image
            beginStamp = System.currentTimeMillis();
            BufferedImage img = ImageIO.read(/*cmyk image file*/);
            endStamp = System.currentTimeMillis();
            System.out.println("Time to load image: " + (endStamp-beginStamp));
            //color convert
            BufferedImage dest = new BufferedImage(img.getWidth(),
                                                   img.getHeight(),
                                                   BufferedImage.TYPE_3BYTE_BGR);
            beginStamp = System.currentTimeMillis();
            sophisticatedColorConvert(img,dest);
            endStamp = System.currentTimeMillis();
            System.out.println("Time to color convert: " + (endStamp-beginStamp));
            //display
            JFrame frame = new JFrame();
            frame.setContentPane(new JScrollPane(new JLabel(new ImageIcon(dest))));
            frame.setSize(500,500);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
        public static BufferedImage sophisticatedColorConvert(BufferedImage src,
                                                              BufferedImage dst) {
            ICC_ColorSpace srcCS =
                    (ICC_ColorSpace) src.getColorModel().getColorSpace();
            ICC_Profile srcProf = srcCS.getProfile();
            byte[] header = srcProf.getData(ICC_Profile.icSigHead);
            intToBigEndian(ICC_Profile.icSigInputClass,header,12);
            srcProf.setData(ICC_Profile.icSigHead,header);
            ColorConvertOp op = new ColorConvertOp(null);
            return op.filter(src, dst);
        private static void intToBigEndian(int value, byte[] array, int index) {
                array[index]   = (byte) (value >> 24);
                array[index+1] = (byte) (value >> 16);
                array[index+2] = (byte) (value >>  8);
                array[index+3] = (byte) (value);
    }

  • I have problems with uploading images to my printing company have the images have been manipulated through CS6 i have saved images as jpeg but the printer company tell me they are not j peg, they will not upload images save from a camera are fine

    I have problems with uploading images to my internet printing company when  the images have been manipulated through CS6 and  i have saved images as jpeg  the printer company tell me they are not j peg,
    but images saved from my phone or camera images that have not been manipulated upload fine, What am i doing wrong?

    Save/Export them as JPG. Photoshop defaults to PSD, so make sure you select JPG and not just rename the file to .jpg.
    There are two ways to save them as JPG: Regular Save as option or Save for Web & Devices
    Take your pick.

  • Problem importing some jpeg images

    **** all
    For some reason I cant import selected jpeg images, about 75% of them are grayed out for some reason, the images are jpegs I have collected on line and are the only images I seem to have a problem with.
    Any idea way ?
    Thanks

    yes I have the actual image, I found the problem .
    they where all grayed out cause of the image size, I downloaded desktop images.
    I'm glad I worked it out cause I'm using these images as backgrounds and, have 487 of them. I ran them through easybatchphoto and resized the width on all of them to 800. now they all work fine.

  • Problem while encoding JPEG image from JFrame paintComponent in a servlet

    Hello!
    I m developing webapplication in which I made one servlet that calls JFrame developed by me, and then encoding into JPEG image to send response on client browser. I m working on NetBeans 5.5 and the same code runs well. But my hosting server is Linux and I m getting the following error:
    java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
         java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
         java.awt.Window.<init>(Window.java:406)
         java.awt.Frame.<init>(Frame.java:402)
         java.awt.Frame.<init>(Frame.java:367)
         javax.swing.JFrame.<init>(JFrame.java:163)
         pinkConfigBeans.pinkInfo.pinkModel.pinkChartsLib.PinkChartFrame.<init>(PinkChartFrame.java:36)
         pinkConfigBeans.pinkController.showLastDayRevenueChart.processRequest(showLastDayRevenueChart.java:77)
         pinkConfigBeans.pinkController.showLastDayRevenueChart.doGet(showLastDayRevenueChart.java:107)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.25 logs.
    I m building the application in NetBeans and when runs then it runs well, even while browsing from LAN. But when I place the web folder creted under buil directory of NetBeans in the Tomcat on Linux, then it gives above error.
    Under given is the servlet code raising exception
    response.setContentType("image/jpeg"); // Assign correct content-type
    ServletOutputStream out = response.getOutputStream();
    /* TODO GUI output on JFrame */
    PinkChartFrame pinkChartFrame;
    pinkChartFrame = new PinkChartFrame(ssnGUIAttrInfo.getXjFrame(), ssnGUIAttrInfo.getYjFrame(), headingText, xCordText, yCordText, totalRevenueDataList);
    pinkChartFrame.setTitle("[::]AMS MIS[::] Monthly Revenue Chart");
    pinkChartFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    //pinkChartFrame.setVisible(true);
    //pinkChartFrame.plotDataGUI();
    int width = 760;
    int height = 460;
    try {
    BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
    Graphics2D g2 = image.createGraphics();
    pinkChartFrame.pinkChartJPanel.paintComponent(g2);
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    encoder.encode(image);
    } catch (ImageFormatException ex) {
    ex.printStackTrace();
    response.sendRedirect("index.jsp");
    } catch (IOException ex) {
    ex.printStackTrace();
    response.sendRedirect("index.jsp");
    out.flush();
    Do resolve anybody!
    Edited by: pinkVag on Oct 15, 2007 10:19 PM

    >
    I m developing webapplication in which I made one servlet that calls JFrame developed by me, and then encoding into JPEG image to send response on client browser. I m working on NetBeans 5.5 and the same code runs well. But my hosting server is Linux and I m getting the following error:
    java.awt.HeadlessException: >That makes sense. It is saying that you cannot open a JFrame in an environment (the server) that does not support GUIs!
    To make this so it will work on the server, it will need to be recoded so that it uses the command line only - no GUI.
    What is it exactly that PinkChartFrame is generated an image of? What does it do? (OK probably 'generate a chart') But what APIs does it use (JFreeChart or such)?

Maybe you are looking for