Image Events - how do i do it??

I am trying to create an image that can be displayed arbitrarily in a container. I have used Toolkit.getDefaultToolkit().getImage("image.gif") and draphics2d.drawImage(etc etc to place the image on the screen. However, I want to use events with this image i.e. when the mouse goes over the image or I click on it - create an event. Obviuosly, this won't implement events, so I created an image button instead. Unfortunately (as far as I am aware) buttons require a layout manager and I want to display the images in arbitrary position - anyone know how I can do this?? I sort of know how events works and have events working for a panel within a frame - just not an image displayed within the pane - please help

Thanks for your response noah
Here is my example code I am using....
import java.awt.*;
import java.awt.geom.*;
import javax.swing.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
public class NewTransparent2 extends JFrame implements MouseListener, MouseMotionListener
private static final int H = 600;
private static final int W = 740;
private JLabel statusBar;
public int xValue;
public int yValue;
     int mx;
     int my;
NewTransparent2()
getContentPane().add(new TransparentPanel());
pack();
statusBar = new JLabel();
getContentPane().add(statusBar, BorderLayout.SOUTH);
addMouseMotionListener(this);
addMouseListener(this);
setSize(new Dimension(W, H));
public void mouseClicked(MouseEvent e)
          String title = "Clicked " + e.getClickCount() + " times(s)";
          if(e.isMetaDown()) title += " with right mouse button";
          else
               if(e.isAltDown()) title += " with center mouse button";
               else title += " with left mouse button";
          setTitle(title);
          repaint();
     public void mousePressed(MouseEvent e)
          //statusBar.setText("Pressed at ["+ e.getX()+ ", "+e.getY()+"]");
     public void mouseReleased(MouseEvent e)
          //statusBar.setText("Released at ["+ e.getX()+ ", "+e.getY()+"]");
     public void mouseEntered(MouseEvent e)
          //JOptionPane.showMessageDialog(null, "Hi");
     public void mouseExited(MouseEvent e)
          //statusBar.setText("Mouse outside window");
     public void mouseDragged(MouseEvent e)
          //statusBar.setText("Dragged at ["+ e.getX()+ ", "+e.getY()+"]");
     public void mouseMoved(MouseEvent e)
          statusBar.setText("Moved at ["+ e.getX()+ ", "+e.getY()+"]");
class TransparentPanel extends JPanel
GradientPaint myGradient, myGradient2;
Color darkblue, darkrose;
Image telindus_flag;
public TransparentPanel()
               darkblue = new Color(63, 64, 124);
darkrose = new Color(159, 61, 100);
myGradient = new GradientPaint(0, 0, darkblue, 0, 50, darkrose);
telindus_flag = Toolkit.getDefaultToolkit().getImage("generic_flag_2.jpg");
try
MediaTracker mt = new MediaTracker(this);
mt.addImage(telindus_flag, 0);
mt.waitForID(0);
catch (Exception e)
e.printStackTrace();
setBackground(Color.white);
setPreferredSize(new Dimension(W, H));
public void paintComponent(Graphics g)
               JLabel mylabel;
               super.paintComponent(g);
Graphics2D g2 = (Graphics2D) g;
g2.setPaint(myGradient);
g2.drawRect(5, 5, getWidth() - 12, getHeight() - 12);
NewDevice newDevObject = new NewDevice();
g2.drawImage(newDevObject.devImage, 60, 60, this);
NewDevice newDevObject2 = new NewDevice();
g2.drawImage(newDevObject2.devImage, 160, 160, this);
//ImageIcon i = new ImageIcon("router.gif");
//mylabel = new JLabel(i);
//mylabel.addMouseListener(this);
//g2.drawImage(i, 0, 0,
g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.2F));
g2.drawImage(telindus_flag, 18, 18, this);
               //Ping newPing = new Ping();
class NewDevice
          // not declaring these variables static makes them instance variables
          // i.e. one instance of the variable per new class instantiated
          Image devImage;
          String devType, devHostname, devLocation, devIPaddress;
          int myinteger=20; // irrespective of the number of new objects createdp
          NewDevice() // NewDevice Constructor
               devImage = Toolkit.getDefaultToolkit().getImage("router.gif");     
class Ping
     InetAddress ip;
          Ping()
               try
     ip = InetAddress.getLocalHost();
     System.out.println("IP address : " + ip.getHostAddress());
     //String name = InetAddress.getLocalHost().getHostName();
     //System.out.println("IP address : " + ip.getHostAddress() + "\nHostname: " + name);
     catch (Exception e)
     System.out.println(e);
     try
          Runtime r = Runtime.getRuntime();
     Process p = r.exec("ping " + ip.getHostAddress());
     if (p == null)
     System.out.println("Could not connect");
     BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
     String line;
     while ((line = in.readLine()) != null)
     System.out.println(line);
     in.close();
          catch (IOException io)
     System.err.println(io.toString());
public static void main(String[] args)
     NewTransparent2 myapp = new NewTransparent2();
     myapp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
myapp.setVisible(true);
As you can see I have used MouseListener etc as an interface and therefore implemented all of the methods required. I have added the MouseListener and MouseMotionListener for the panel which works exceptionally well. I would like it howerver to respond to events for the images (devImage) I have created with the class NewDevice - any ideas!?
Thanks

Similar Messages

  • In iPhoto, I want to copy certain photos in an event and then have the copies in another event WITHOUT removing the original photos from their original event; how to do that?

    in iPhoto, I want to copy certain photos in an event and then have the copies in another event WITHOUT removing the original photos from their original event; how to do that?

    The only way to do that is to export the image to a new file and then re-import it.
    It's not really the intended way of working as it uses twice the disk space and is inefficient.
    Use Albums instead. A Photo can be in any number of albums and use no extra disk space as it just simply references the image in the Library. Albums can be sorted any way you want - including manaually - and can have image from anywhere in the Library just by drag and drop.

  • Quality of JPEG when being converted by Folder Actions (Image Events)

    I take a lot screenshots with Command + Shift + 3/4. They are in PNG and I love them. Yet, I need to send them via email sometimes.
    I convert them to JPEG using Preview, but it is time-consuming when especially I have hundreds of them.
    I have just learnt that it is possible to do convert in batch using Folder Actions. However, I meet few very serious problems.
    1. In Preview, I could choose the quality of JPEG before converting. But, there is no such option in Folder Actions. I even searched online to try to modify the script and it seems that nobody cares about the quality of converted JPEG.
    My question: What is the quality of JPEG converted? And, is it possible to modify it?
    2. Since I do not know the quality of conversion using Folder Actions, I tried different qualities using Preview and match the outputs with those using Folder Actions. I got no result. As Preview is using Core Image as the processing architecture.
    My question: What is the image processing architecture adopted by Image Events?
    3. If the quality is unchangeable, can anyone teach me how to write a new script to do the conversion using Preview?
    I really hope Mac OS gurus could explain these to me and possibly solve my problems. I am interested to learn the AppleScript part to modify it.
    Thank you very much.

    It is the original folder action script from Mac OS. Here is the copy.
    Could you help me as well where to add the "compression level"? Also, what do "high", "low" and "medium" mean, in % just like Preview, if they use the same image processing architecture?
    Again, thank you very much for quick reply.
    ================
    Image - Duplicate as JPEG
    This Folder Action handler is triggered whenever items are added to the attached folder.
    The script creates a JPEG version of the file, but leaves a copy of the file
    in its original format. If the original file is already in JPEG format, the script does
    not duplicate the file.
    Copyright © 2002–2007 Apple Inc.
    You may incorporate this Apple sample code into your program(s) without
    restriction.  This Apple sample code has been provided "AS IS" and the
    responsibility for its operation is yours.  You are not permitted to
    redistribute this Apple sample code as "Apple sample code" after having
    made changes.  If you're going to redistribute the code, we require
    that you make it clear that the code was descended from Apple sample
    code, but that you've made changes.
    property done_foldername : "JPEG Images"
    property originals_foldername : "Original Images"
    property newimage_extension : "jpg"
    -- the list of file types which will be processed
    -- eg: {"PICT", "JPEG", "TIFF", "GIFf"}
    property type_list : {"TIFF", "GIFf", "PNGf", "PICT"}
    -- since file types are optional in Mac OS X,
    -- check the name extension if there is no file type
    -- NOTE: do not use periods (.) with the items in the name extensions list
    -- eg: {"txt", "text", "jpg", "jpeg"}, NOT: {".txt", ".text", ".jpg", ".jpeg"}
    property extension_list : {"tif", "tiff", "gif", "png", "pict", "pct"}
    on adding folder items to this_folder after receiving these_items
              tell application "Finder"
                        if not (exists folder done_foldername of this_folder) then
      make new folder at this_folder with properties {name:done_foldername}
                        end if
                        set the results_folder to (folder done_foldername of this_folder) as alias
                        if not (exists folder originals_foldername of this_folder) then
      make new folder at this_folder with properties {name:originals_foldername}
                                  set current view of container window of this_folder to list view
                        end if
                        set the originals_folder to folder originals_foldername of this_folder
              end tell
              try
                        repeat with i from 1 to number of items in these_items
                                  set this_item to item i of these_items
                                  set the item_info to the info for this_item
                                  if (alias of the item_info is false and the file type of the item_info is in the type_list) or (the name extension of the item_info is in the extension_list) then
                                            tell application "Finder"
                                                      my resolve_conflicts(this_item, originals_folder, "")
                                                      set the new_name to my resolve_conflicts(this_item, results_folder, newimage_extension)
                                                      set the source_file to (move this_item to the originals_folder with replacing) as alias
                                            end tell
      process_item(source_file, new_name, results_folder)
                                  end if
                        end repeat
              on error error_message number error_number
                        if the error_number is not -128 then
                                  tell application "Finder"
      activate
      display dialog error_message buttons {"Cancel"} default button 1 giving up after 120
                                  end tell
                        end if
              end try
    end adding folder items to
    on resolve_conflicts(this_item, target_folder, new_extension)
              tell application "Finder"
                        set the file_name to the name of this_item
                        set file_extension to the name extension of this_item
                        if the file_extension is "" then
                                  set the trimmed_name to the file_name
                        else
                                  set the trimmed_name to text 1 thru -((length of file_extension) + 2) of the file_name
                        end if
                        if the new_extension is "" then
                                  set target_name to file_name
                                  set target_extension to file_extension
                        else
                                  set target_extension to new_extension
                                  set target_name to (the trimmed_name & "." & target_extension) as string
                        end if
                        if (exists document file target_name of target_folder) then
                                  set the name_increment to 1
                                  repeat
                                            set the new_name to (the trimmed_name & "." & (name_increment as string) & "." & target_extension) as string
                                            if not (exists document file new_name of the target_folder) then
      -- rename to conflicting file
                                                      set the name of document file target_name of the target_folder to the new_name
                                                      exit repeat
                                            else
                                                      set the name_increment to the name_increment + 1
                                            end if
                                  end repeat
                        end if
              end tell
              return the target_name
    end resolve_conflicts
    -- this sub-routine processes files
    on process_item(source_file, new_name, results_folder)
      -- NOTE that the variable this_item is a file reference in alias format
      -- FILE PROCESSING STATEMENTS GOES HERE
              try
      -- the target path is the destination folder and the new file name
                        set the target_path to ((results_folder as string) & new_name) as string
                        with timeout of 900 seconds
                                  tell application "Image Events"
      launch -- always use with Folder Actions
                                            set this_image to open file (source_file as string)
      save this_image as JPEG in file target_path with icon
      close this_image
                                  end tell
                        end timeout
              on error error_message
                        tell application "Finder"
      activate
      display dialog error_message buttons {"Cancel"} default button 1 giving up after 120
                        end tell
              end try
    end process_item

  • I moved some e-mailed pictures to my iphoto library and they have the date rightin the middle of the image..how do I get rid of the date?

    Imoved some e-mailed photos to iphoto, but they come up showing the date in the middle of the image..how do I get rid of the date?

    Thhere is no way that iPhoto did that - either source put the data on the photo, you used a photo editor to put it there or the receiving e-mail client is displaying it there - iPhoto has no capability to add any text including dates to a photo
    iPhoto will display the date on an event while viewing photos if you have that option set in the preferences
    LN

  • Help needed with Image Events problem

    Hi there I'm writing what I thought was a simple script to convert a folder full of images from jpg to tiff. But the script fails when trying to convert the first image in the folder. Instead of converting the image, Preview opens with the image shown and I get this error message: error "The variable ImageRef is not defined." number -2753 from "ImageRef".
    I have seen some posts about other people having the same problem, but I haven't seen any solutions.
    Here's the script.
    on run
    tell application "Finder"
    set PicturesFolder to ((path to home folder) as string) & "Pictures:SenseCam" as alias
    set Photographs to (get entire contents of PicturesFolder) as alias list
    end tell
    tell application "Image Events"
    launch
    repeat with Photo in Photographs
    if (Photo as string) ends with "jpg" then
    set ImageRef to open Photo
    save ImageRef in Photographs as TIFF
    close ImageRef
    end if
    end repeat
    end tell
    tell application "Finder"
    repeat with Photo in Photographs
    delete Photo
    end repeat
    end tell
    end run
    Thanks in advance for any help.
    John

    Hello
    You may try something like the modified code below.
    Noticiable changes :
    #1 - Removed the parentheses. Your original code won't yield alias list but a list of finder objects, which is the reason why Preview opens the image. (The statment 'open finderObject' behaves the same as double clicking it in Finder)
    #2 - Only delete the original jpeg files which are converted to tiff.
    #3 - Build new path for converted image.
    #4 - Save in new path. (When saving image in a format other than its original format, always save the image to a new file and do not attempt to overwrite the source file.)
    cf.
    http://www.macosxautomation.com/applescript/imageevents/08.html
    on run
    tell application "Finder"
    set PicturesFolder to (path to home folder as string) & "Pictures:SenseCam:" as alias
    set Photographs to get entire contents of PicturesFolder as alias list -- #1
    end tell
    set DonePhotos to {} -- #2
    tell application "Image Events"
    launch
    repeat with Photo in Photographs
    set Photo to Photo's contents
    set oldPath to Photo as string
    if oldPath ends with ".jpg" then
    set newPath to oldPath's text 1 thru -5 & ".tif" -- #3
    set ImageRef to open Photo
    save ImageRef as TIFF in newPath -- #4
    close ImageRef
    set end of DonePhotos to Photo -- #2
    end if
    end repeat
    end tell
    tell application "Finder"
    delete DonePhotos -- #2
    end tell
    end run
    Hope this may help,
    H

  • I created a signature ID and customized the signature; however, when I go to sign it only shows the name layout or graphic image? How do I go back to using the certificate?

    Dear Forum
    I was using Adobe version XI and the signature feature disappeared from the menu. Now I downloaded Acrobat Reader DC. Using the menu and instructions I created a signature ID and customized the signature; however, when I go to sign a document it only shows the name layout or graphic image? How do I go back to using the certificate that I created?
    Any help would be greatly appreciated.
    Regards
    Carlos

    Firefox works fine on Windows 2000 SP4 for me.
    Any chance you have a dial-up connection that uses a web accelerator to speed the loading of content?

  • I need to create a ghost image of my G4 iBook (OSX 10.3.9) and replace the OS9 on my G4 tower with the created iBook ghost image. How do you do this?

    I need to create a ghost image of my G4 iBook (OSX 10.3.9) and replace OS9 on a G4 tower with the Ghost image. How do you do this? Will my applications still work?
    The iBook is running Pather, i have tons of programs i use on it, project files, etc... and my G4 Mac tower is more powerful, faster, and more reliable than the iBook. I basiclly just want to take the entire OS, programs and files... create an image, and drop the image on the G4 Tower so it basically will function just like the iBook. Like a mirror image of everything that is on the iBook.  I know that you can create image files in the Disk Utility on Panther, but will that back up the entire OS with settings, programs, files and all?  ive never done anything like this before, so i wanted to post this up to see if i would get an answer. In the meantime, im reading "Mac OS X, Help Desk Essentials By Owen Linzmayer" to see if i can find the steps to do this.
    Any help would be greatly apprciated. Much thanks!

    Can't be done as an exact copy from one Mac to the other.  The operating systems are system specific. First make sure your system doesn't need a firmware update to get 10.2 or later on it. You'll need to install 9 on it if it does, direct from a 9 retail CD that is compatible with it *.  This disc can't say Upgrade, Dropin, or OEM. To determine compatibility, identify your G4 tower:
    http://support.apple.com/kb/HT3082
    http://docs.info.apple.com/article.html?artnum=42739
    Then look at the OS 9 compatibility:
    http://docs.info.apple.com/article.html?artnum=25517
    Then apply the correct update
    http://docs.info.apple.com/article.html?artnum=86117
    The last Mac OS 9 to come retail is 9.2.1, and that's newer than 9.0.4, 9.0.2, and 9.1.
    Your ghost image can be done using cloning software, but then you'll have to use a retail 10.3 installer and 10.3.9 combo update on the G4 tower.  Then use the Migration Assistant to import the data from the clone of the iBook. The 10.3 retail disc looks like * and does not say upgrade, dropin, or OEM.  The 10.3.9 combo update is here:
    http://www.apple.com/support/downloads/macosxcombinedupdate1039.html
    The clone to an external hard drive can be done with these instructions*:
    http://www.macmaps.com/backup.html The import of the external hard drive with the migration assistant can be done with these instructions:
    http://docs.info.apple.com/article.html?artnum=25773

  • Applescript and Image Events

    The following script works correctly:
    property openTypes : {"PDF", "com.adobe.pdf", "BMP", "com.microsoft.bmp", "JPEG", "JPEG2", "jpg", "public.jpeg", "PICT", "com.apple.pict", "PNG", "public.png", "PSD", "com.adobe.photoshop-image", "TIFF", "public.tiff"}
    global eventsFolder, ProcessedfolderName, events_Folder
    on runConversion(theItems)
        activate "Finder"
        set saveFolder to choose folder with prompt "Save resized pictures where?" without multiple selections allowed and invisibles
        tell application "Image Events"
            launch
            set newWidth to 120
            if (count items of theItems) is greater than 0 then
                repeat with anItem in theItems
                    set theName to the name of anItem
                    tell application "Finder" to set myNewFileName to (saveFolder as string) & "tmb_" & theName
                    set imageFile to (open anItem)
                    scale imageFile to size newWidth
                    save imageFile as PNG in file myNewFileName
                    close imageFile
                end repeat
            else
                display dialog "Nothing to convert."
            end if
        end tell
    end runConversion
    mount volume someVolume
    set root_Folder to root_Folder as alias
    set events_Folder to events_Folder as alias
    set theStr to (current date) as string
    set d to date theStr
    set ProcessedfolderName to ((month of d as integer) & "_" & day of d) as text
    tell application "Finder"
        set events_Folder to events_Folder as alias
        set ProcessedfolderName to ((month of d as integer) & "_" & day of d) as text
        set new_FileFolder to make new folder at events_Folder with properties {name:ProcessedfolderName}
        move (every file of events_Folder whose name ends with ".png") to new_FileFolder
        set oldFiles to every file of events_Folder
        set thecount to number of items of oldFiles
    end tell
    set theFiles to choose file with prompt "Choose the files" of type openTypes with multiple selections allowed without invisibles
    runConversion(theFiles)
    activate
    BUT if I modify it to the following, it gets hung up on "scale imageFile to size newWidth"
    error "The variable imageFile is not defined." number -2753 from "imageFile"
    Maybe it has something to do with the line
    'set theFiles to choose file with prompt "Choose the files" of type openTypes with multiple selections allowed without invisibles'
    which is not in the broken script.
    The broken script is as follows:
    property openTypes : {"PDF", "com.adobe.pdf", "BMP", "com.microsoft.bmp", "JPEG", "JPEG2", "jpg", "public.jpeg", "PICT", "com.apple.pict", "PNG", "public.png", "PSD", "com.adobe.photoshop-image", "TIFF", "public.tiff"}
    global eventsFolder, ProcessedfolderName, new_FileFolder, imageFile
    on runConversion(theItems)
        activate "Finder"
        set saveFolder to new_FileFolder
        set theItems to every file of the saveFolder
        tell application "Image Events"
            launch
            set newWidth to 120
            if (count items of theItems) is greater than 0 then
                repeat with anItem in theItems
                    set theName to the name of anItem
                    tell application "Finder" to set myNewFileName to (saveFolder as string) & "tmb_" & theName
                    set imageFile to (open anItem)
                    scale imageFile to size newWidth
                    save imageFile as PNG in file myNewFileName
                    close imageFile
                end repeat
            else
                display dialog "Nothing to convert."
            end if
        end tell
    end runConversion
    mount volume mountVolume
    set root_Folder to rootFolder as alias
    set events_Folder to events_Foler as alias
    set theStr to (current date) as string
    set d to date theStr
    set ProcessedfolderName to ((month of d as integer) & "_" & day of d) as text
    tell application "Finder"
        set ProcessedfolderName to ((month of d as integer) & "_" & day of d) as text
        set new_FileFolder to make new folder at events_Folder with properties {name:ProcessedfolderName}
        move (every file of events_Folder whose name ends with ".png") to new_FileFolder
        set oldFiles to every file of events_Folder
        set thecount to number of items of oldFiles
    end tell
    set theFiles to every file of new_FileFolder
    runConversion(theFiles)
    activate

    Several lines of the “broken” script seem to be badly written, for example:
        set root_Folder to rootFolder as alias -- rootFolder instead of root_Folder
        set events_Folder to events_Foler as alias -- Foler instead of Folder
    Message was edited by: Pierre L.

  • How can I disable the "Events" how can I disable "Faces"

    buona sera
    how can I disable the "Events"
    how can I disable "Faces"
    grazie

    You can not
    Events are one of many views or your photos in your library - as are faces
    YOu can simply ignore both but you can disable them
    LN

  • Just bought a new printer ( Canonpixmaip4920) all other files print ok but when I print a I Tunes cover playlist in comes out backwards or mirror image? How do you fix this?

    Hi,
    I just bought a new canon pixma ip 4920 printer... all other files print ok except when I try to print a playlist from I tunes it prints out backwards or a mirror image? How do you fix this?
    Jim

    Unfortunately changing the epub text size does not change the view at all. The images do not seem to change when the text size setting is changed.
    The resolution of my machine is already at the max setting, so increasing the resolution is kind of impossible.
    Any other suggestions I could try?  Thank you for your suggestions!

  • I cannot move photos from iphone to MacBook.  I get an error message that says: Error downloading image. iPhoto cannot import your images because there was a problem downloading an image. How can I fix/remedy this?

    I am receiving an error message every time I plug my iPhone 4S into my MacBook: Error downloading image. iPhoto cannot import your images because there was problem downloading an image.  How can I fix/remedy this?

    try Image Capture - in your applications folder
    LN

  • Imported old family video, I seperated different events, how can I save event to put together in a menu like family, vacation, christmas.

    Imported old family video, I seperated different events and named each event, how can I save event to put together in a menu like family, vacation, christmas to make a DVD

    revdhayes wrote:
    I imported 5 1 hour old video in Final Cut Pro X. I spent all day seperating clips with Start and end then naming each clip in properties..
    Sorry, but I don't understand  what "5 1 hour video" means.
    I do understand that you have a lot of clips that you want to group by various subjects, like vacation, etc. That's a perfect job for keywords, which perhaps is what you used when you named them?
    If you did use keywords, go to that TL Index and click Tag at the top and then the keyword icon at the bottom. It should give you a list of only clips in that category. Select clip from the menu and it should highlight them. You could then copy and paste them to a new project for export. Repeat as necessary.
    If you're going to do a lot of these, I'd suggest doing this from the event browser, applying keywords and then the clips into separate projects.  But there are always more than one way to do things, and to each his/her own.
    Again, I don't have any idea how long your footage is and whether it is even possible (or desirable) to fit it on to a single DVD. I mentioned iDVD because of its menu and sub menu capabilities. You will need another app like Compressor to do the chapter makers (unless Apple updates FCP before you finish your project and adds that capability. That would be nice,)
    Good luck.
    Russ

  • Mouse events: how to know its button1 or 2 or 3?

    writing a program that's driven by mouseReleased event. how do i determine that the user clicked the 1st mouse button n not the other mouse buttons? please help! thanx! :)

    also, for double-click:
    if(mouseEvent.getButton() == mouseEvent.BUTTON1){
    if(mouseEvent.getClickCount() == 2) {                                                                                                                                                                                                                                                        

  • How do i crop "out" a piece of image=ex: how it will look when its cut for a window. Crop a white space in image?

    How do i crop "out" a piece of image=ex: how it will look when its cut for a window. Crop a white space in image?

    I think this will help if you are using version 11 or 12.
    Make a selection with a selection tool of the area you want to remove.
    Example: rectangular marquee tool - make a rectangle.
    Use Select>Refine Edge:
    Use the View section of this dialog box to see a few views.
    If you need to refine the edge of the selection (smooth, feather, shift, etc.) you can do that in this dialog box.
    You may want to check the box about remembering your settings in case you need to come back to them.
    In the Output section, you can pick New Layer with Layer Mask and click OK.
    You should see the hole in your image.
    Kathy Keith
    @kathleenmadeline on Instagram
    (I teach Photoshop Elements classes)

  • Image Events not resizing tiff

    Hello,
    I have been trying to get some results from Image events for 5 hours now.
    Below is what I will use to express the issue I am encountering.
    When running the following script in script editor it appears to do what is asked of it but in the end the file is unchanged.
    It is almost as if Image Events is not working.
    Would someone please provide a step of troubleshooting for me?
    When I use return I get the file I selected.
    ====Script=====
    set this_file to choose file
    try
    tell application "Image Events"
    launch
    set this_image to open this_file
    scale this_image to size 318
    pad this_image to dimensions {320, 240}
    save this_image with icon
    return this_image
    close this_image
    end tell
    on error error_message
    display dialog error_message
    end try
    ====END Script====
    Thank you very much.

    Thanks for checking this Pierre.
    What I meant by saying it appears to do what is asked of it... is that I didn't receive any errors.
    I just did a major edit on the post because it was that my tiff files I was trying to process were CMYK. I converted them to RGB in Photoshop and they processed just fine.
    Not a solution though. I don't want to have to go through Photoshop because I have thousands of images to process.
    I tried to find the command to convert from CMYK to RGB in Image Events and can't find that.
    Can someone help me with the command to do that conversion in Image Events or at least without having to run Photoshop to do it?
    Thank you so very much in advance.
    Jeff
    Message was edited by: Jeffrey DeRousse
    Message was edited by: Jeffrey Derousse

Maybe you are looking for

  • Preview quality of photos reduced

    When I drag a 720x480 photo into iMovie and view it in the preview window using "full video resolution", it is noticeably blurrier than that photo looks on my screen viewed exactly the same size, in an image editing application. I'm looking the two o

  • CSS does't work for new Web Form wpc_mini_article

    Hello, I created a new web form following [this guide|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2041eb17-6001-2b10-b08d-b95ce55fa9b7], which works pretty good. The problem is that I personalized the sdn_general.css file but

  • I want to open a PDF file and i can't? any advice?

    I want to open a PDF file and i can't? any advice?

  • How do I view code in FlashCS4?

    Hi,   How do I view code in Flash CS4? I am wondering if it's even possible but I am new to Flash so I guess anything is possible, haha. I need to fix my actionscript and this is one of the ways I was told to do it was to look at the code first. Than

  • Weekly Group Total and associated YTD total

    Hello, I need to show current week group total and total year to date of the same group.  My columns are Model, Department, Issue.  Currently, the report is grouped on Model, Department and Issue with a filter for date.  Can this be done?   Thank you