Load, crop and saving jpg and gif images with JFileChooser

Hello!
I wonder is there someone out there who can help me with a applic that load, (crop) and saving images using JFileChooser with a simple GUI as possible. I'm new to programming and i hope someone can show me.
Tor

import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.io.*;
import javax.imageio.ImageIO;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.filechooser.*;
import javax.swing.filechooser.FileFilter;
public class ChopShop extends JPanel {
    JFileChooser fileChooser;
    BufferedImage image;
    Rectangle clip = new Rectangle(50,50,150,150);
    boolean showClip = true;
    public ChopShop() {
        fileChooser = new JFileChooser(".");
        fileChooser.setFileFilter(new ImageFilter());
    public void setClip(int x, int y) {
        clip.setLocation(x, y);
        repaint();
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        if(image != null) {
            int x = (getWidth() - image.getWidth())/2;
            int y = (getHeight() - image.getHeight())/2;
            g2.drawImage(image, x, y, this);
        if(showClip) {
            g2.setPaint(Color.red);
            g2.draw(clip);
    public Dimension getPreferredSize() {
        int width = 400;
        int height = 400;
        int margin = 20;
        if(image != null) {
            width = image.getWidth() + 2*margin;
            height = image.getHeight() + 2*margin;
        return new Dimension(width, height);
    private void showOpenDialog() {
        if(fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
            File file = fileChooser.getSelectedFile();
            try {
                image = ImageIO.read(file);
            } catch(IOException e) {
                System.out.println("Read error for " + file.getPath() +
                                   ": " + e.getMessage());
                image = null;
            revalidate();
            repaint();
    private void showSaveDialog() {
        if(image == null || !showClip)
            return;
        if(fileChooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {
            File file = fileChooser.getSelectedFile();
            String ext = ((ImageFilter)fileChooser.getFileFilter()).getExtension(file);
            // Make sure we have an ImageWriter for this extension.
            if(!canWriteTo(ext)) {
                System.out.println("Cannot write image to " + ext + " file.");
                String[] formatNames = ImageIO.getWriterFormatNames();
                System.out.println("Supported extensions are:");
                for(int j = 0; j < formatNames.length; j++)
                    System.out.println(formatNames[j]);
                return;
            // If file exists, warn user, confirm overwrite.
            if(file.exists()) {
                String message = "<html>" + file.getPath() + " already exists" +
                                 "<br>Do you want to replace it?";
                int n = JOptionPane.showConfirmDialog(this, message, "Confirm",
                                                      JOptionPane.YES_NO_OPTION);
                if(n != JOptionPane.YES_OPTION)
                    return;
            // Get the clipped image, if available. This is a subImage
            // of image -> they share the same data. Handle with care.
            BufferedImage clipped = getClippedImage();
            if(clipped == null)
                return;
            // Copy the clipped image for safety.
            BufferedImage cropped = copy(clipped);
            boolean success = false;
            // Write cropped to the user-selected file.
            try {
                success = ImageIO.write(cropped, ext, file);
            } catch(IOException e) {
                System.out.println("Write error for " + file.getPath() +
                                   ": " + e.getMessage());
            System.out.println("writing image to " + file.getPath() +
                               " was" + (success ? "" : " not") + " successful");
    private boolean canWriteTo(String ext) {
        // Support for writing gif format is new in j2se 1.6
        String[] formatNames = ImageIO.getWriterFormatNames();
        //System.out.printf("writer formats = %s%n",
        //                   java.util.Arrays.toString(formatNames));
        for(int j = 0; j < formatNames.length; j++) {
            if(formatNames[j].equalsIgnoreCase(ext))
                return true;
        return false;
    private BufferedImage getClippedImage() {
        int w = getWidth();
        int h = getHeight();
        int iw = image.getWidth();
        int ih = image.getHeight();
        // Find origin of centered image.
        int ix = (w - iw)/2;
        int iy = (h - ih)/2;
        // Find clip location relative to image origin.
        int x = clip.x - ix;
        int y = clip.y - iy;
        // clip must be within image bounds to continue.
        if(x < 0 || x + clip.width  > iw || y < 0 || y + clip.height > ih) {
            System.out.println("clip is outside image boundries");
            return null;
        BufferedImage subImage = null;
        try {
            subImage = image.getSubimage(x, y, clip.width, clip.height);
        } catch(RasterFormatException e) {
            System.out.println("RFE: " + e.getMessage());
        // Caution: subImage is not independent from image. Changes
        // to one will affect the other. Copying is recommended.
        return subImage;
    private BufferedImage copy(BufferedImage src) {
        int w = src.getWidth();
        int h = src.getHeight();
        BufferedImage dest = new BufferedImage(w, h, src.getType());
        Graphics2D g2 = dest.createGraphics();
        g2.drawImage(src, 0, 0, this);
        g2.dispose();
        return dest;
    private JPanel getControls() {
        JPanel panel = new JPanel(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.weightx = 1.0;
        gbc.fill = GridBagConstraints.HORIZONTAL;
        gbc.gridwidth = GridBagConstraints.REMAINDER;
        panel.add(getCropPanel(), gbc);
        panel.add(getImagePanel(), gbc);
        return panel;
    private JPanel getCropPanel() {
        JToggleButton toggle = new JToggleButton("clip", showClip);
        toggle.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                showClip = ((AbstractButton)e.getSource()).isSelected();
                repaint();
        SpinnerNumberModel widthModel = new SpinnerNumberModel(150, 10, 400, 1);
        final JSpinner widthSpinner = new JSpinner(widthModel);
        SpinnerNumberModel heightModel = new SpinnerNumberModel(150, 10, 400, 1);
        final JSpinner heightSpinner = new JSpinner(heightModel);
        ChangeListener cl = new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
                JSpinner spinner = (JSpinner)e.getSource();
                int value = ((Number)spinner.getValue()).intValue();
                if(spinner == widthSpinner)
                    clip.width = value;
                if(spinner == heightSpinner)
                    clip.height = value;
                repaint();
        widthSpinner.addChangeListener(cl);
        heightSpinner.addChangeListener(cl);
        JPanel panel = new JPanel(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.insets = new Insets(2,2,2,2);
        gbc.weightx = 1.0;
        panel.add(toggle, gbc);
        addComponents(new JLabel("width"),  widthSpinner,  panel, gbc);
        addComponents(new JLabel("height"), heightSpinner, panel, gbc);
        return panel;
    private void addComponents(Component c1, Component c2, Container c,
                               GridBagConstraints gbc) {
        gbc.anchor = GridBagConstraints.EAST;
        c.add(c1, gbc);
        gbc.anchor = GridBagConstraints.WEST;
        c.add(c2, gbc);
    private JPanel getImagePanel() {
        final JButton open = new JButton("open");
        final JButton save = new JButton("save");
        ActionListener al = new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                JButton button = (JButton)e.getSource();
                if(button == open)
                    showOpenDialog();
                if(button == save)
                    showSaveDialog();
        open.addActionListener(al);
        save.addActionListener(al);
        JPanel panel = new JPanel();
        panel.add(open);
        panel.add(save);
        return panel;
    public static void main(String[] args) {
        ChopShop chopShop = new ChopShop();
        ClipMover mover = new ClipMover(chopShop);
        chopShop.addMouseListener(mover);
        chopShop.addMouseMotionListener(mover);
        JFrame f = new JFrame("click inside rectangle to drag");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(new JScrollPane(chopShop));
        f.getContentPane().add(chopShop.getControls(), "Last");
        f.pack();
        f.setLocation(200,100);
        f.setVisible(true);
class ImageFilter extends FileFilter {
    static String GIF = "gif";
    static String JPG = "jpg";
    static String PNG = "png";
    // bmp okay in j2se 1.5+
    public boolean accept(File file) {
        if(file.isDirectory())
            return true;
        String ext = getExtension(file).toLowerCase();
        if(ext.equals(GIF) || ext.equals(JPG) || ext.equals(PNG))
            return true;
        return false;
    public String getDescription() {
        return "gif, jpg, png images";
    public String getExtension(File file) {
        String s = file.getPath();
        int dot = s.lastIndexOf(".");
        return (dot != -1) ? s.substring(dot+1) : "";
class ClipMover extends MouseInputAdapter {
    ChopShop component;
    Point offset = new Point();
    boolean dragging = false;
    public ClipMover(ChopShop cs) {
        component = cs;
    public void mousePressed(MouseEvent e) {
        Point p = e.getPoint();
        if(component.clip.contains(p)) {
            offset.x = p.x - component.clip.x;
            offset.y = p.y - component.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;
            component.setClip(x, y);
}

Similar Messages

  • Can no longer copy and past jpg and gifs into InDesign from c:\user\doc\pics

    Here is the error message we get when doing a copy and past from the hard drive to InDesign.
    Error Message from InDesign:
    Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing...
    First, do I need to add a plug-in to be able to copy and past jpgs and gifs?
    Second, we have always used clip organizer with no problem. Ability to copy and paste jpg & gif suddenly stopped. We get a box but no image ont the page. Have already tried dumping temp internet files through internet explorer. Have already un & re installed InDesign and repaired and fixed everything I could think of.
    Third, we can use the place command to place jpgs but can not place gifs.
    William (Helping Mrs. White)

    It sounds as if Mrs White needs to search visually for graphics and then place them. She can either set Windows Explorer
    to thumbnail view and drag a graphic on to an InDesign page - this will in effect be placing the graphic, not copying
    and pasting, and is the right way to go. Or she can use File > Place, and set the view in the Explorer window that she
    selects from in the Place command to a thumbnail view to see the graphics.
    GIFs can be placed. They are not a recommended format, but if you are placing clip art then you may have no option.
    So, in answer to your original question, no, you don't need a plug-in to place JPEGs and GIFs. But note that is place,
    not copy and paste.
    k

  • Mail and Safari dont display GIF images

    After about a weeks worth of use, I realized that Safari and Mail dont display GIF images unless I download them and open them in Preview. Even then, I have to manually click each image to see the pictures motion. Sometimes in stead of the question mark, I will get the first picture of the sequence, but none more. Does anyone know how to fix this?

    i dont have a solution, i just said it because i was tired of seeing it unanswered. Sorry, STILL haven't fixed this

  • How JPG or GIF Image open in MIDP?

    How my j2me application can support jpg or gif image format. I have tested png file in midp 1.0 and its not support other than png format( im not sure about midp 2.0 does it support or not). I have seen lot of mobiles those support gif and jpg file formats. Does j2me applications on those mobile can support other image formats?
    Plus it is possible that i can develop my own decoder for jpg or gif format. I know it possible, but im talking related to its processing power consumption. Or is there any third party api exist to support jpg or gif file format on midp. Please r

    Here is the code snap that read image from a URL.. I have tested this code on localhost & two different pc on lan in emulator.. but not in actuall mobile... but i hope it will work...
    Image image = null ;
    DataInputStream httpInput = null ;
    DataOutputStream httpOutput = null ;
    HttpConnection httpCon = null ;
    String url = "http://localhost:8080/images/picture.png"
    try
    httpCon = (HttpConnection)Connector.open(url);
    int bufferSize = 512 ;
         byte byteInput[] = new byte[bufferSize] ;
         ByteArrayOutputStream imageBuffer = new ByteArrayOutputStream(1024*50);
         httpInput = new DataInputStream( httpCon.openInputStream() );
                   System.out.println("Http-Input Connecting Establish Successfully");
                   httpOutput = new DataOutputStream( httpCon.openOutputStream() );
                   System.out.println("Http-Output Establish Successfully");
    int size = 0 ;
    // read all image data ....
         while ( ( size = httpInput.read( byteInput , 0 , bufferSize ) ) != -1 )
                        imageBuffer.write( byteInput , 0 , size ) ;
    // get byte from buffer stream
              byte byteImage[] = imageBuffer.toByteArray();
                   System.out.println("read byte " + byteImage.length );
         // convert byte to image ...
         image = Image.createImage( byteImage , 0 , byteImage.length );
         return image ;
         //return null ;
    catch( IOException e )
                   System.out.println("\nUnable to Perform Image IO Operation with Host");
         return null ;
    ....................................

  • Problem occurring when opening and saving files in AI SC5 with Windows 7

    Hi, I ‘am a Graphic Designer and first time working in UAE Windows 7 is basically the only OS here. My PC is:
    HP Elite 7000
    Intel® Core™ i5 CPU 2.67GHz
    4GB RAM
    32-bit
    Now to the problem, not that knowledgeable in IT stuff so here goes:
    1. Problem occurring when opening and saving files in AI SC5 with Windows 7. (You will actually see a “Not Responding” word coming out while opening and saving files, whether small or large files)
    2. Locked layers occasionally are moved accidentally.(Working on multiple layers is normal so we need to lock it specially the once on top. But there are times I still manage to select locked layers)
    3. After typing and locking the text, pressing “V” for the arrow key shortcut is still added to the text that is locked. (After typing I lock the text layer with my mouse and Press “V” to activate the arrow key… yes the arrow key is activated but the text is still typing the actual keyboard pressed)
    I’ve only use the brand new PC and installer for a month now. Not sure if this is compatibility issues or something else I’m not aware of.
    Thanks in advance to people that will reply.
    Cheers!!!

    Well I’m still wondering if it is compatibility issues because I’m also having problem with Photoshop CS5. These 3 are all bought at the same time (PC, Illustrator and Photoshop installers). The problem I’m having in Photoshop is not that too important, every time I Ctrl+O to view files, all PSD are shown in white paper like icons, no preview, and saving as well.
    Or I just purchased a corrupted or pirated installers… Adobe updates are done every time I’m prompted.

  • How do I restore text erased from a .txt document, named and saved frequently, and on Yosemite OSX?

    How do I restore text erased from a .txt document, named and saved frequently, and on Yosemite OSX?

    1. I have no reason to doubt it, the task is pretty simple.
    2. You should realise that these are not rewrites but progressions. PDF 1.7 adds just a little to PDF 1.6, and so on. Early versions of Acrobat would always update the version number to the latest version, whether or not they needed to do so. More recent versions have got smarter. Sounds as if XI is smarter still and is writing the version number actally needed rather than just the highest number it knows. People have strange ideas about PDF version numbers and sometimes want to do things like "open and save in the latest version" but this is not just useless but meaningless.
    3. In many cases the first line of the PDF contains the version number (but not the extension number), but this need not be accurate as a later piece of information (much later and harder to find) can override it.

  • Loading, cropping and saving jpg files in Flex

    I'm attempting to apply the code for selecting, cropping and saving image data (.jpg, .png) as shown on the web site:
    http://www.adobe.com/devnet/flash/quickstart/filereference_class_as3.html#articlecontentAd obe_numberedheader_1
    The sample application is contained within a class called Crop contained in the action script file Crop.as which begins as follows:
    package
        import com.adobe.images.JPGEncoder;
        import com.adobe.images.PNGEncoder;
        import flash.display.BitmapData;
        import flash.display.DisplayObject;
        import flash.display.DisplayObjectContainer;
        import flash.display.Loader;
        import flash.display.LoaderInfo;
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.events.IOErrorEvent;
        import flash.events.MouseEvent;
        import flash.geom.Matrix;
        import flash.geom.Rectangle;
        import flash.net.FileFilter;
        import flash.net.FileReference;
        import flash.utils.ByteArray;
        public class Crop extends Sprite
    My application attempts to make use of the Crop class by including the Crop.as file:
         <mx:Script source="Crop.as"/> 
    in the Flex Component which needs it, and then calling the Crop constructor to perform the methods of the class
       var localImage:Crop = new Crop();
       localImage.Crop();
    My application does not compile. The package statement (or the curly bracket on the following line) is flagged with the error "Packages may not be nested".
    I have no idea why this should be as I cannot see any nested definitions anywhere in my application. The component includes the Crop.as file which contains the package and class definition.
    Can anyone give my some guidance as to why this error is occurring?
    Any help would be greatly appreciated.  

    Hi Scott,
    #1
    that error is because "fx:Script" (or mx:Script) are intended to include part of Actionscript code - but not class defitions or blocks.
    So if you are trying to include e.g. such class:
    package
         import flash.display.Sprite;
         public class Crop extends Sprite
              public function Crop()
                   super();
              public function processImage():void
                   trace("processImage()");
    compiler will immediately complain as you are trying to incorporate nested class within your application code.
    #2
    here is correct way (I think) to incorporate some class via mxml tags (here using fx:Script):
    Using class sample above:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                      xmlns:s="library://ns.adobe.com/flex/spark"
                      xmlns:mx="library://ns.adobe.com/flex/mx"
                      xmlns:utils="*"
                      applicationComplete="completeHandler(event)">
         <!-- util Crop will be initialized here as instance "cropUtil" -->
         <fx:Declarations>
              <utils:Crop id="cropUtil"/>
         </fx:Declarations>
         <!-- script where "cropUtil" will be used -->
         <fx:Script>
              <![CDATA[
                   import mx.events.FlexEvent;
                   protected function completeHandler(event:FlexEvent):void
                        cropUtil.processImage();
              ]]>
         </fx:Script>
    </s:Application>
    But note that you could simply create instance of your class by direct import in fx:Script:
         <fx:Script>
              <![CDATA[
                   import mx.events.FlexEvent;
                   private var cropUtil:Crop = null;
                   protected function completeHandler(event:FlexEvent):void
                        cropUtil = new Crop();
                        cropUtil.processImage();
              ]]>
         </fx:Script>
    hth,
    kind regards,
    Peter Blazejewicz

  • Problems loading and saving pdf files from sites with latest version.

    On my utilities I wish to download and save pdf files of my e-bill.
    Lately when I click on getting bill, Firefox opens new tab and stops.
    with a light message in url place saying "Type a web address".
    To get around this I must do a right click on the save bill and
    select open in new window, then it opens a new copy of Firefox,
    and two tabs, with the second one asking me to use Adobe to see
    pdf file. I tell it to open and then save it and print it from the tab
    that opens with the pdf file in it. This never happened before was
    always able to just click on link and it would open new tab with
    pdf file there.

    Thanks for the replies. I don't think I was clear enough with my question.
    What I want to be able to do is to click on a PDF file in my Firefox browser and be able to save it as an Adobe PDF file, not a Preview PDF file, in any folder on my computer, rather than just the specified default location for downloads. This way I can save, for example, phone bills in the phone bills folder and bank statements in the bank statements folder without having to save them to the desktop, "Get Info" on each, and change the "Open with:" box from Preview to Adobe Reader.
    Fortunately, thanks to Michael's post, I found an add-on from Firefox that allows me to do just that: https://addons.mozilla.org/en-US/firefox/addon/636
    Thanks for your help. Now, within my Firefox browser, I can choose whether to view or download PDF files, always in Adobe rather than Preview, and when I save them I get the option to choose the location each and every time.
    MacBook Mac OS X (10.4.9)
    MacBook Mac OS X (10.4.9)

  • Convert jpg to gif images

    I make an application that create jpg images with jfree chart.
    But my client need the graphics in GIF format.
    I need:
    1. A conver program to pass from JPG to GIF format
    or
    2. A program to generate graphics (pie 3-d with texts) in GIF
    Someone likes help me?
    Thanks.
    MIGUEL ANGEL CARO
    [email protected]

    JFreeChart is open source, I'm sure you can get a Java GIF encoder library and wedge it into the JFreeChart API to make it create GIFs.
    Why does it need to be GIFs, though?

  • Macbook pro crashes and goes to the background image with no access to dock etc..

    Macbook Pro Early 2011 version, running Lion OSX, crashes randomly and goes to the background image. the dock is not accesible nor are any other options, I have to hold down power to restart. I have found that a lot of my applications have started to crash especially iphoto, itunes and safari. Ive repaired permissions deleted anti virus software which i thought was slowing the computer down. Any help would be appreciated..

    I suggest you post this issue on the iTunes forum.  You will have an audience that is oriented specifically towards this application.
    Ciao.

  • Dump when creating and saving organization and contact

    Hi experts,
    I have a dump in WebUI when I try to create and save organization and contact.
    The problem is not in the saving but in the validation of address that i entered.
    When I put a value for example on street number, then I change it, the system check if there was relevant modifications.
    So, the system call the method compare_fields_of_addresses of the Class CL_GEOCODER:
    check given attributes of ADRC_STRUC
      LOOP AT fieldnames INTO lv_fieldname.
      get attribute value of first address
        ASSIGN COMPONENT lv_fieldname OF STRUCTURE address1 TO <fs1>.
      get attribute value of second address
        ASSIGN COMPONENT lv_fieldname OF STRUCTURE address2 TO <fs2>.
      compare values
        IF <fs1> <> <fs2>.
        if different, add to table of different fields
          APPEND lv_fieldname TO different_fields.
        ENDIF.
      ENDLOOP.
    fieldnames : contains all the fields of Structure ADRC_STRUC from table DD03L
    address1/address2  : contains data of the above adress with structure ADRC_STRUC from DDIC(se11)
    ADRC_STRUC contains specific fields and in DD03L, it insert field .INCLU--AP
    in DDIC, it insert field .APPEND
    to say that there are extended fields.
    So, there is normal dump because we try to compare field symbol that is not assigned
    Could you help me to resolve it please? As I know, we don't have rights to modify standards methods.
    Best regards.

    Hi everyone,
    I have found solution in OSS notes : 1561501 - GETWA_NOT_ASSIGNED in CL_GEOCODER
    So I will close my thread and thank everyone.
    I want to share this solution if there will be other people facing the same.
    Regards

  • Opening gif images with AEGP_NewFootage

    Hey guys,
    For some reason it does not work. JPEGs work properly. Any idea?
    Thanks,
    Eran

    Same thing for me in vista 64 bit and Windows 7 RC. Random.
    Just letting you know your not the only one.
    Ok, not trying to hi-jack. If I use paint shop pro or the windows 7 RC paint program to open a image then close it, then I open bridge and double click a image, Paint shop Pro or wndows 7 paint will open with the image showing. I have to close the program, open bridge, right click on the image and select CS4 to open the file. After that Bridge will have CS4 open files. So the random opening might be related? Who knows!
    Ricky-T wrote:
    Hi,
    This problem has happened to me quite a bit only with CS4, so i thought i'd finally ask. Practically all of my images are set to open with Photoshop. My probelm is that many times, i double click an image on my computer to open it in photoshop, and then photoshop comes up and doesnt open it or even attempt to. The image usually does open if photoshop is currently not open, and is lanuched by double clicking the image though. The problem seems very random and does it to JPEG's, PNG's, GIF's and BMP's and TIFF's as far as i am awear. PSD's seem fine. Note that this problem has not been resolved by resetting preferences as i have recently doen that and it is still here. Any suggestions on how to make it work?

  • Dreamweaver CC 2014 still wants to open jpg, png, gif files with uninstalled Photoshop CC rather than installed Photoshop CC 2014

    Anyone know a fix. It seems that it wants to look for photoshop.exe and still wants to look for the uninstalled Photoshop CC folder.
    1. Yes, I have set the Preferences in Dreamweaver to point to Photoshop CC 2014 as the Primary.
    2. I'm on Windows 7.
    I also had to do this fix to get PSD, IND, AI and EPS files to open in their respective programs: Photoshop: CS6 not default program for jpg and/or jpeg in Windows 7 Professional 64-bit
    Ugh, Adobe and their updates.
    Thanks!@

    You can try the help article
    http://helpx.adobe.com/x-productkb/global/file-associations-broken-uninstall-applications. html
    Also may be you can get answer from the forum:
    https://forums.adobe.com/message/4468808

  • I made a path and saved it and when I try to select it, it turns my stage completely black? Can anyone help me?

    As my question says, I am cropping out a figure exactly how I usually do it and for some reason this time it is not working. I made points with the pen tool and then moved it around with the direct selection tool (light grey pointer) and everything worked fine. I then saved the path and usually you just hold down control and click on the picture of the path next to the name and it selects it for you (marching ants) and then I select the inverse and delete the background. This time for some reason when I control and click on the image of the path, it just turns the stage completely black. When I undo it goes back to normal but everytime I try, the same thing happens. I am using Adobe Photoshop CS6 (64-Bit) By the way
    Can anyone help me?? Thanks in advance

    Can you show some screen captures. Ctrl+Click on a Path in the path palette should make a section from the combined path. Have your tried resetting you Photoshop preferences.

  • Storing jpg or gif images in database

    Hi,
    I want to store the images from system folder to database.
    Ex: "c:/images"
    is the foldername
    I want to access this folder from JSP and want to store a selected image from the user to database and getting back that image to view by a query. so how can i achive this.....

    Hi All,
    I have 2 things to discuss in this thread.
    First to store Images in Database: We can store Images as Binary content in the Database with the Datatype as BLOB. This is possible in ORACLE. I am not sure what the Datatype is in other RDBMS. Please refer to Vendor documentation. After storing, the content can be retrieved and displayed in the pages as image resources using a Servlet. The Servlet will only render the content of the Image.
    Second to load Images from User's Systems folder: Why do you have such a requirement? Even then, you need to use any common techniques like Multipart form to upload the specific image file to the Server. Kindly read Oreilley's Multipart Request Form Object example for implementation.
    Thanks and regards,
    Pazhanikanthan. P

Maybe you are looking for

  • In search of ...powered firewire hub for mac mini.

    Greetings mac users , luv my mac mini!! Fits my small desk space well. I'm looking for a powered firewire/usb hub with @ 1Tb. memory. I plan to use this for downloading audio and video.(SONY A/V GEAR) I really like the look and space saving quality o

  • My iphone5 using too much data

    ANyone know why im using so much data on my iphone 5 ive never down loaded music films or any thing and used up 1gb in 17days

  • Is there an outage in Bethesda, MD

    How do I find out if there is an outage in my area?

  • Safari & iTunes --- where's my music????

    My last Apple update for iTunes landed me in Safari land. I went it to Safari to change update my iPod music only to discover that it doesn't quite work that way...not easily. I either need to figure out how to get my music into Safari, or I need to

  • How to Get to Level 2?

    Hi, How many points do you have to get in order to reach Level 2?  Thanks in advance.  ---likeabird---