File resizeing

Hi I am using apache.common.fileupload and managed to upload multiple images to my server;
Following is my code, I rename my files before I save them.
%>
// String imageid = request.getParameter("imgageID");
     boolean isMultipart = ServletFileUpload.isMultipartContent(request);
     if (!isMultipart) {
     } else {
        FileItemFactory factory = new DiskFileItemFactory();
        ServletFileUpload upload = new ServletFileUpload(factory);
        List items = null;
        try {
             items = upload.parseRequest(request);
        } catch (FileUploadException e) {
             System.out.println("Unable to load image" +  e.getMessage());
        Iterator itr = items.iterator();
        while(itr.hasNext()) {
               FileItem item = (FileItem) itr.next();
               if (item.isFormField()) {
                    //String name = item.getFieldName();  //This will get the field names. for eg. if u have a hidden field this line will get the hidden filed name.
                //value = item.getString();
                    //out.println(value);
               } else {
             try {
                  //String itemName = item.getName();
                  File fullFile  = new File(item.getName());
                  fileName = fullFile.getName();
                  out.println("old" + fileName);
                  String id = (String)session.getAttribute("adID");
                  out.println(id);
                  String newName =  id+fileName;
                  out.println("new" + newName);
                  //System.out.println("New Image Name" + newName);
                  //System.out.println(getServletContext().getRealPath("/"));// this will give u the path upto ROOT folder..if u want to put inside ur own forlder u can give the location inside the quotes
                  File tosave = new File(getServletContext().getRealPath("/"),newName);
                  item.write(tosave);
             } catch (Exception e) {
                  System.out.println("Unable to save the image" + e.getMessage());
   %>on the sun site I found this example of image resize which I tried on as a servlet, which seems to working fine. Here's the code below:
try {
          int targetWidth=0;
          int targetHeight=0;
          // Get a path to the image to resize.
          // ImageIcon is a kluge to make sure the image is fully
          // loaded before we proceed.
          Image sourceImage = new ImageIcon(Toolkit.getDefaultToolkit().getImage(req.getPathTranslated())).getImage();
          // Calculate the target width and height
          float scale = Float.parseFloat(req.getParameter("scale"))/100;
          targetWidth = (int)(sourceImage.getWidth(null)*scale);
          targetHeight = (int)(sourceImage.getHeight(null)*scale);
          BufferedImage resizedImage = this.scaleImage(sourceImage,targetWidth,targetHeight);
          // Output the finished image straight to the response as a JPEG!
          res.setContentType("image/jpeg");
          JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder
          (res.getOutputStream());
          encoder.encode(resizedImage);
        }catch(Exception e){
            res.sendError(HttpServletResponse.SC_BAD_REQUEST);
    private BufferedImage scaleImage(Image sourceImage, int width, int height){
        ImageFilter filter = new ReplicateScaleFilter(width,height);
        ImageProducer producer = new FilteredImageSource
        (sourceImage.getSource(),filter);
        Image resizedImage = Toolkit.getDefaultToolkit().createImage(producer);
        return this.toBufferedImage(resizedImage);
    private BufferedImage toBufferedImage(Image image){
        image = new ImageIcon(image).getImage();
        BufferedImage bufferedImage = new BufferedImage(image.getWidth(null),image.getHeight(null),BufferedImage.TYPE_INT_RGB);
        Graphics g = bufferedImage.createGraphics();
        //g.setColor(Color.white);
        g.fillRect(0,0,image.getWidth(null),image.getHeight(null));
        g.drawImage(image,0,0,null);
        g.dispose();
        return bufferedImage;
    }in my file upload.jsp I m uploading multiple files, I want to check to if the iamges are of a certain size, if they are bigger then my expected size I want intergrate the above method is my code to reisize the image.
I can't for the life of me of intergrate it, I am getting all sorts of exception. Any help would be apperciated.
Thanks in advance.

here are the errors:
An error occurred at line: 27 in the jsp file: /upload.jsp
Generated servlet error:
Type mismatch: cannot convert from ImageIcon to Image
An error occurred at line: 27 in the jsp file: /upload.jsp
Generated servlet error:
The constructor File(String, BufferedImage) is undefined
Here my code:
<%@ page import="java.util.List"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="java.io.File" %>
<%@ page import="java.io.IOException"%>
<%@ page import="java.awt.image.ImageFilter"%>
<%@ page import="java.awt.image.ImageProducer"%>
<%@ page import="java.awt.image.ReplicateScaleFilter"%>
<%@ page import="java.awt.image.FilteredImageSource"%>
<%@ page import="javax.swing.*"%>
<%@ page import="java.awt.image.BufferedImage"%>
<%@ page import="java.awt.Image"%>
<%@ page import="java.awt.Graphics"%>
<%@ page import="java.awt.Toolkit"%>
<%@ page import="com.sun.image.codec.jpeg.JPEGCodec"%>
<%@ page import="com.sun.image.codec.jpeg.JPEGImageEncoder"%>
<%@ page import="org.apache.commons.fileupload.servlet.ServletFileUpload"%>
<%@ page import="org.apache.commons.fileupload.disk.DiskFileItemFactory"%>
<%@ page import="org.apache.commons.fileupload.*"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
   <center><table border="2">
        <tr><td><h1>Your files  uploaded </h1></td></tr>
   <%
    //setting the target w + h
     int targetWidth=0;
    int targetHeight=0;
     //session values used to rename loaded image.
     String adID = "EM225";
     session.setAttribute("adID", adID);
     String fileName = null;
  // String imageid = request.getParameter("imgageID");
     boolean isMultipart = ServletFileUpload.isMultipartContent(request);
     if (!isMultipart) {
     } else {
        FileItemFactory factory = new DiskFileItemFactory();
        ServletFileUpload upload = new ServletFileUpload(factory);
        List items = null;
        try {
             items = upload.parseRequest(request);
        } catch (FileUploadException e) {
             System.out.println("Unable to load image" +  e.getMessage());
        Iterator itr = items.iterator();
        while(itr.hasNext()) {
               FileItem item = (FileItem) itr.next();
               if (item.isFormField()) {
                    //String name = item.getFieldName();  //This will get the field names. for eg. if u have a hidden field this line will get the hidden filed name.
                //value = item.getString();
                    //out.println(value);
               } else {
             try {
                  File fullFile  = new File(item.getName());
                  fileName = fullFile.getName();
                  String id = (String)session.getAttribute("adID");
                  String newName =  id+fileName;
                  //passing renamed loaded image.
                  Image sourceImage = new ImageIcon(Toolkit.getDefaultToolkit().getImage(newName));
                  // Calculate the target width and height
                  float scale = 50/100;
                  targetWidth = (int)(sourceImage.getWidth(null)*scale);
                  targetHeight = (int)(sourceImage.getHeight(null)*scale);
                  BufferedImage resizedImage = this.scaleImage(sourceImage,targetWidth,targetHeight);
                  //JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(res.getOutputStream());
                  //encoder.encode(resizedImage);
                  File tosave = new File(getServletContext().getRealPath("/"),resizedImage);
                  item.write(tosave);
             } catch (Exception e) {
                  System.out.println("Unable to save the image" + e.getMessage());
   %>
   <%!
   private BufferedImage scaleImage(Image sourceImage, int width, int height){
        ImageFilter filter = new ReplicateScaleFilter(width,height);
        ImageProducer producer = new FilteredImageSource
        (sourceImage.getSource(),filter);
        Image resizedImage = Toolkit.getDefaultToolkit().createImage(producer);
        return this.toBufferedImage(resizedImage);
    private BufferedImage toBufferedImage(Image image){
        image = new ImageIcon(image).getImage();
        BufferedImage bufferedImage = new BufferedImage(image.getWidth(null),image.getHeight(null),BufferedImage.TYPE_INT_RGB);
        Graphics g = bufferedImage.createGraphics();
        //g.setColor(Color.white);
        g.fillRect(0,0,image.getWidth(null),image.getHeight(null));
        g.drawImage(image,0,0,null);
        g.dispose();
        return bufferedImage;
   %>
    </table>
   </center>
    </table>
   </center>

Similar Messages

  • Control file resized

    Hi,
    I had seen below message in my alert log file. one trace also generated in bdump area . Is control file will be resized automatically then what could be reason. please someone explain to me because i'm very new to this field.
    Trying to expand controlfile section 11 for Oracle Managed Files
    Expanded controlfile section 11 from 28 to 56 records
    Requested to grow by 28 records; added 1 blocks of records
    *** 2011-09-28 02:22:16.050
    *** SERVICE NAME:(SYS$BACKGROUND) 2011-09-28 02:22:16.050
    *** SESSION ID:(153.1) 2011-09-28 02:22:16.050
    Control file resized from 430 to 432 blocks
    kccrsd_append: rectype = 11, lbn = 215, recs = 28
    Thanks,
    John

    Hi,
    MY DB DETAILS . I DIDN'T ADD ANY DATAFILES. HOW CAN I FIND OUT WHERE THE CHANGES HAPPEND ? PLEASE HELP ME .
    MAXINSTANCES 8
    MAXLOGHISTORY 1
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    Datafile
    'D:\oradata\IPTDB\SYSTEM01.DBF',
    'D:\oradata\IPTDB\UNDOTBS01.DBF',
    'D:\oradata\IPTDB\SYSAUX01.DBF',
    'D:\oradata\IPTDB\USERS01.DBF'
    LOGFILE GROUP 1 ('D:\oradata\IPTDB\redo01.log') SIZE 51200K,
    GROUP 2 ('D:\oradata\IPTDB\redo02.log') SIZE 51200K,
    GROUP 3 ('D:\oradata\IPTDB\redo03.log') SIZE 51200K RESETLOGS

  • Can a SWF file resize in the PDF when user zooms or goes 'full screen'?

    Hi,
    I've got some animation in my Indesign file which I've exported as a SWF and brought back in to InDesign.
    I then create the Interactive PDF. It has a white background, so I select it in Acrobat and got to PROPERTIES and give it a transparent background.
    BUT, when I go full screen or above 75% - the SWF shrinks on page.
    The users of this PDF will need to zoom in, or go full screen. I really need the SWF to be resizing as the user goes full screen, or views it however they choose.
    Is there a way to set the SWF to resize with the PDF?

    Let me guess. You’re using InDesign CS5 and never bothered to install any of the patches.
    Download and install 7.0.4.
    Bob

  • How to select many raw files resize save as jpg and close ?

    Hi,
    I wish to simply see a whole load, say 300 , of raw files as thumbnails, select those I wish to resize, adjust exposure etc, indicate the new pixel dimensions then have that happen and close them saving to a new folder.
    This seems to have to be a two stage process, open into raw viewer using pshop CS4, adjust images that need it, try and remember those that I want that are not requiring adjustment, then select those I have adjusted and those I also want that are 'good to go' and select open.
    Then use actions to resize, adjust canvas, and close as jpg.
    Trouble with this is one cannot indicate to raw viewer as one makes ones way through the thumbnails, which pics are to be opened when all have been assessed. I hit delete on those I am not interested in, but this deletes them from the PC !  If there are lets say five subtle variations, and only when seen large can one decide which is best, if no changes are required, there is no way of teling which one is the chosen one when going back down the list using ctl to select those for opening.
    I end up doing perhaps 20 at a time, as to open 300 kills pshop.
    Whats the best way here ?
    I also use BreezeBrowser as its great for viewing a folder full of images as large thumbnails or thumbnails with a large view of the selected image, but it has no way of resizing when converting from raw to jpeg.
    Envirographics

    Envirographics wrote:
    This seems to have to be a two stage process, open into raw viewer using pshop CS4, adjust images that need it, try and remember those that I want that are not requiring adjustment, then select those I have adjusted and those I also want that are 'good to go' and select open.
    Then use actions to resize, adjust canvas, and close as jpg.
    If you're running through masses of images, perhaps you should consider Lightroom.  It's set up to do things along the lines of what you're doing.
    -Noel

  • PSE 9 - Processing Multiple Files - Resizing?

    Hi.  When I use the "Process Multiple Files" function to sharpen JPEGs, the processed file is always smaller in size even though I didn't select "Resizing".  I would like to maintain the file size of the originl image.   BTW, when I do select "Resize", the file size is much smaller than expected.  What am I doing wrong?
    TIA....JL

    'Mehrere Dateien bearbeiten' erstellt standardmaessig ziemlich kleine Output-Dateien, es sei denn, dass man 'Dateien konvertieren zu' (?, ich weiss nicht genau, wie das in der deutschen Version genannt wird) markiert und es auf JPEG Maximum oder Hohe Qualitaet einstellt.
    Juergen

  • Uploading for prints: are files resized automatically?

    My files are >20 MB, but I just want some postcards etc. Will iphoto automatically resize, or will the upload go at max resolution, in which case the upload is going to bog down unless I go to someplace with a faster connection. Thanks for any tips.

    Books, calendars and cards are converted to PDF files at 300 dpi for uploading and printing. I'm not sure about prints but the iPhoto prefs indicate that prints are set at 300 dpi max. Don't know if that's for local printing only but I don't think so.
    Click to view full size
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    NOTE: The new rebuild option in iPhoto 09 (v. 8.0.2), Rebuild the iPhoto Library Database from automatic backup" makes this tip obsolete.

  • Importing .tif files, resizing, adding motion, drop shadow - 30 times?

    Creating "pop up tips" in an instructional video. Is there a way to add the same behaviors to each new "Tip #" as I import them, instead of going through the same resizing, motion, drop shadow steps each time?
    Sorry if this question has been answered - been searching - haven't found the answer.

    Make all of the adjustments to one image, then copy that image. Select all other images in the Timeline to which you want to apply the same effects. Right-click on one and choose "Paste Attributes." When the attributes window opens, click the appropriate items on the VIDEO side, ie; Basic Motion, Drop Shadow, Filters, etc).
    -DH

  • Physical standby file resize

    Hello.
    I have a physical standby database wherein I would like to resize some datafiles which are taking unnecessary space on the server.
    At the moment I do not have available space to be added in the mount point.
    Can I bring the physical standby database to mount state and fire the ALTER DATABASE DATAFILE commands? Would it impact the application, or would it failover the primary database to the standby if I take the physical standby to mount state?
    Please advice.
    In case of any queries, please let me know.
    Thanks.

    I have a physical standby database wherein I would like to resize some datafiles which are taking unnecessary space on the server.
    At the moment I do not have available space to be added in the mount point.
    Can I bring the physical standby database to mount state and fire the ALTER DATABASE DATAFILE commands? Would it impact the application, Even you fire the commands on primary when you bring standby database down, still those information exist in Archives also,
    If you start MRP the commands will be executed on standby also. You cant escape it if STANDBY_FILE_MANAGEMENT set to AUTO
    So consider to move the datafiles to different mount point , So that you can avoid such issues, no action need to do on primary at this time.
    or would it failover the primary database to the standby if I take the physical standby to mount state? What you are saying from primary to standby & vice versa is Switchover, what is the configuration?
    what is the protection mode?
    Broker enabled with FSFO, Observer?

  • How can I stop embedded shockwave files from resizing in the exported file.

    -Operating System: Windows XP
    -Office Version: 2007
    -Flash Player version:
    -Xcelsius Version and Patch Level: 2008 (2?)
    I have a problem with embedded shockwave files resizing when they are exported.
    I have built a dashboard which needs a video to loop in the corner.  When I embed this video as a swf file using the image component and linking to the swf in question there is no problem.  I can export the entire as a swf in itself and the video plays in the corner fine.
    However when I need several videos each appearing on different 'pages' within the dashboard the problem arises.  I can set the various shockwave videos behaviour to appear and disappear depending on the page selected.  But, instead of appearing in the size that I have set the embedded video to they have grown.
    So instead of having a neat little video looping in the corner I have a huge video obliterating the rest of the dashboard.
    any help would be gratefully heard.
    Thanks
    Ed

    Halo Mattias,
    i using this function get file file name and directory:
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
        exporting
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = 'P_FILE'
        importing
          file_name     = p_file.
    Rgds,
    Wilibrodus

  • Resizing animated GIFs

    Hi,
    I use the following code to resize an ImageIcon (which is inside
    a JLabel) :
    public void resizeImageBean(ImageIcon icon, float width, float height) {
        Image img = icon.getImage();
        Image newImg = img.getScaledInstance((int) (width), (int) (height), Image.SCALE_DEFAULT);
        initImageBean(newImg);
    }//resizeImageBean
    private void initImageBean(Image img) {
        ImageIcon icon = new ImageIcon(img);
        imageLabel.setIcon(icon); // imageLabel is a JLabel
        repaint();
    }//initImageBeanThis code seems to work for most image formats, only with GIFs that
    are animated there is some strange behaviour.
    I have 3 cases:
    - Some GIF images are not being displayed anymore after resizing (empty JLabel)
    - Some GIF images are correctly resized, but the animation stops
    - Some GIF images are correctly resized and the animation is still ok.
    I fixed the first problem by changing the compression to interlaced if
    the gif was non-interlaced by using a freeware proggy called GiFFY.
    By doing this the images did resize but ended in one of the 2 last cases.
    Note: by changing the compression to interlaced, the images also showed
    up in the preview label of JFileChooser.
    Anyone has some thoughts on this ? Any feedback will be greatly appreciated.
    Greetings,
    Janiek

    Have you found the solution to your problems.If yes then please let me know how .I am facing simalar problems
    Some GIF images are not being displayed anymore after resizing (empty JLabel)
    - Some GIF images are correctly resized, but the animation stops
    - Some GIF images are correctly resized and the animation is still ok.
    Here's my code:
    import javax.swing.ImageIcon;
    import java.awt.image.*;
    import com.sun.image.codec.jpeg.*;
    import java.io.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import javax.media.jai.*;
    import java.awt.image.renderable.ParameterBlock;
    import com.sun.media.jai.codec.*;
    //import javax.imageio.*;
    import java.awt.*;
    public class Photo
         public static void resize(String original, String resized, int wid,int het)
              try
                        File originalFile = new File(original);
                        ImageIcon ii = new ImageIcon(originalFile.getCanonicalPath());
                        Image i = ii.getImage();
                        System.out.println("Original image width"+i.getWidth(null));
                        System.out.println("Original image height"+i.getHeight(null));
                        Image resizedImage = null;
                        int iWidth = i.getWidth(null);
                        int iHeight = i.getHeight(null);
                        if (iWidth > iHeight)
                        resizedImage = i.getScaledInstance(wid,het,Image.SCALE_SMOOTH);
                        else
                        resizedImage = i.getScaledInstance(wid,het,Image.SCALE_SMOOTH);
                        // This code ensures that all the
                        // pixels in the image are loaded.
                        Image temp = new ImageIcon(resizedImage).getImage();
                        System.out.println("resizedImage width"+temp.getWidth(null));
                        System.out.println("resizedImage height"+temp.getHeight(null));
                        // Create the buffered image.
                        BufferedImage bufferedImage = new BufferedImage(temp.getWidth(null), temp.getHeight(null), BufferedImage.TYPE_INT_RGB);
                        // Copy image to buffered image.
                        Graphics g = bufferedImage.createGraphics();
                        // Clear background and paint the image.
                        g.setColor(Color.white);
                        g.fillRect(0, 0, temp.getWidth(null),temp.getHeight(null));
                        g.drawImage(temp, 0, 0, null);
                        g.dispose();
                        // sharpen
                        float[] sharpenArray = { 0, -1, 0, -1, 5, -1, 0, -1, 0 };
                        Kernel kernel = new Kernel(3, 3, sharpenArray);
                        ConvolveOp cOp = new ConvolveOp(kernel, ConvolveOp.EDGE_NO_OP, null);
                        bufferedImage = cOp.filter(bufferedImage, null);
                        /* write the jpeg to a file */
                        File file = new File(resized);
                        FileOutputStream out = new FileOutputStream(file);
                        /* encodes image as a JPEG data stream */
                        JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
                        com.sun.image.codec.jpeg.JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bufferedImage);
                        // writeParam = new JPEGImageWriteParam(null);
                        // writeParam.setCompressionMode(JPEGImageWriteParam.MODE_EXPLICIT);
                        //writeParam.setProgressiveMode(JPEGImageWriteParam.MODE_DEFAULT);
                        param.setQuality(0.7f, true);
                        encoder.setJPEGEncodeParam(param);
                        encoder.encode(bufferedImage);
                        catch (Exception e)
                        System.out.println(e.getMessage());
              public static void main(String [] args)
                   long start = System.currentTimeMillis();
                   resize("beforeCompress90KB.jpg", "resized.jpg",200,150);
                   System.out.println("done in " + (System.currentTimeMillis() - start) + " ms");
    Please reply soon.I really need help
    Regards,
    Shveta

  • I have a few hundred duplicates in my iPhoto library, but the file sizes are different.  So one is 1.3mb and one is 567kb.  I want to delete the smaller ones, but short of comparing each duplicate, is there a way to do this?

    I have a few hundred duplicates in my iPhoto library, but the file sizes are different.  So one is 1.3mb and one is 567kb.  I want to delete the smaller ones, but short of comparing each duplicate, is there a way to do this?  I've been looking at Duplicate Annhilator but I don't think it can do it.
    Thanks!

    I just ran a test with iPhoto Library Manager, Duplicate Annihilator, iPhoto Duplicate Cleaner, Duplifinder and Photodedupo.  I imported a folder of 5 photos into a test library 3 times, allowing iPhoto to import duplicates.  I then ran the 5 photos thru resizer to reduce their jpeg compression but all other aspects of the file the same.
    None of the duplicate removal apps found set that was reduced in the file resizer. That's probably due to the fact that the file creation date was being used as a criteria and the resized photo would have a different file creation date even though the Image Capture date was the same.
    They all found the 3 regular duplicates and some of them would mark two and leave the 3rd unmarked.  iPhoto Duplicate Cleaner can sort the found duplicates by file size but if the file was edited to get the reduced file size it might not be found as it would have a different file creation/modification date. 
    iPhoto Library Manage was able to find all duplicates and mark them as such if the file names were the same the the filename option was selected.  Otherwise it also missed the modified, resized version.  It allowed one to select the one photo to save before going to work on the library.
    So if a photo has been reduced in image quality or pixel size it will not be considered a duplicate.
    OT

  • Why are my actions not processing the RAW files correctly?

    For starters, I have to say the CS4 has been one of the most unreliable software packages I've ever used.  It's a beta version.  Adobe is making Microsoft look good these days.  I was extorted into upgrading from CS3 because Adobe chose not to create a RAW plug-in for CS3 that would open Canon 5D Mark II files. They wanted the revenue.
    I'm an engineer and am pretty good with computer problems, but after spending hours simply trying to install the CS4 upgrade over CS3 on a fairly new, very fast Windows machine with no other software installed by me, I gave up.  It took 3 hours on the phone with an Adobe tech to get it running (more or less) properly.  CS4 still freezes up about once a day on that system, losing whatever the latest changes I've made by the time I finally get it closed and restarted  Then a month ago I bought a new, fast Windows laptop.  I only installed CS4 and Word on that computer (with all the latest patches and RAW plug-ins).  It's biggest problem is in processing RAW files.  I have an action that works fine on my other systems that I wrote from scratch on the new laptop.  All the action does is open a RAW file as a PSD file, resize it, convert to sRGB, change the mode to 8 bits, sharpen it, and save it as a JPG.  But the resulting JPG does not look like the RAW file from which it was made--color, brightness, contrast, etc. are all significantly changed.  When I get back from an assignment and transfer the same RAW files to my other computer on which CS4 is installed and run the same action, the JPGs come out perfectly.  Once again, Adobe has met my low expectations.  Any ideas on what the problem is?

    Sounds like you're a candidate for Lightroom...based on the time you don't
    want to spend in Photoshop.
    Photoshop install media is likely created in large batches, perhaps in a
    foreign country, so it's understandable that you get Photoshop 11.0.0 is on
    the media.
    I don't know as I would use ProPhotoRGB as my working space in Photoshop.  I
    was merely suggesting that you look at your color settings to make sure
    things were the same on both machines.
    How do you know your actions are the same?  Did you copy the action
    recording from one computer to the other, or did you merely record the same
    steps on each one?  Have you compared the details of each action step in the
    Actions Palette to make sure they are the same?  The symptoms still sound
    like something different than sRGB being the output color-space, or the fact
    it isn't embedded on one or the other of the computers.
    How are you viewing the JPG when it looks the same or different than the
    RAW?  Are you looking at the side-by-side in Photoshop, or side-by-side in
    Bridge, or are you using a mixture of viewers, one Adobe, and one not?  And
    are you using the Canon Codec on Vista or not?  The Canon Codec would be
    showing the camera-preview in the RAW not the RAW adjustments that Adobe has
    done.
    While the OS shouldn't be causing a difference in how the action is run, a
    difference between OSes may make a difference in the processing to show up.
    The camera profile associated with a RAW file is visible in the
    third-from-right tab in ACR over at the right.  The one with the little
    DSLR-camera icon on the tab.
    Can you attach the two JPGs on a reply, here, or if not, upload a ZIP of the
    two JPGs and the RAW to a file-sharing site like http://www.rapidshare.com/
    and post the download link(s)?

  • Process Multiple Files in PSE 7

    I'm running PSE7.
    I'd like to take a group of images (jpeg's) and do the following to them:
    Run QuickFix on them.
    Save them as a new file with the name based on the original name plus some extra information.
    Resize the jpeg's to a size suitable for the web. Or possibly a little larger.
    It would really be great if:
    I could use a 'tag' to select the images I want to process.
    The tags on the new images are the same as the originals.
    The new files are written into the same folder as the original. Even if multiple folders are needed due to
    the tags bringing in images from multiple folders.
    The new images would become part of a version set or stack along with the originals.
    Well, that's what's I'm interested in doing.
    Any thoughts would be greatly appreciatted!

    The Process Multiple Files command applies settings to a folder of files. If you have a digital camera or a scanner with a document feeder, you can also import and process multiple images. (Your scanner or digital camera may need an acquire plug‑in module that supports actions.)
    When processing files, you can leave all the files open, close and save the changes to the original files, or save modified versions of the files to a new location (leaving the originals unchanged). If you are saving the processed files to a new location, you may want to create a new folder for the processed files before starting the batch.
    Note: The Process Multiple Files command does not work on multiple page files.
    Choose File > Process Multiple Files.
    Choose the files to process from the Process Files From pop‑up menu:
    Folder
    Processes files in a folder you specify. Click Browse to locate and select the folder.
    Import
    Processes images from a digital camera or scanner.
    Opened Files
    Processes all open files.
    Select Include All Subfolders if you want to process files in subdirectories of the specified folder.
    For Destination, click Browse and select a folder location for the processed files.
    If you chose Folder as the destination, specify a file-naming convention and select file compatibility options for the processed files:
    For Rename Files, select elements from the pop‑up menus or enter text into the fields to be combined into the default names for all files. The fields let you change the order and formatting of the components of the filename. You must include at least one field that is unique for every file (for example, filename, serial number, or serial letter) to prevent files from overwriting each other. Starting Serial Number specifies the starting number for any serial number fields. If you select Serial Letter from the pop-up menu, serial letter fields always start with the letter “A” for the first file.
    For Compatibility, choose Windows, Mac OS, and UNIX® to make filenames compatible with the Windows, Mac OS, and UNIX operating systems.
    Under Image Size, select Resize Images if you want each processed file resized to a uniform size. Then type in a width and height for the photos, and choose an option from the Resolution menu. Select Constrain Proportions to keep the width and height proportional.
    To apply an automatic adjustment to the images, select an option from the Quick Fix panel.
    To attach a label to the images, choose an option from the Labels menu, then customize the text, text position, font, size, opacity, and color. (To change the text color, click the color swatch and choose a new color from the Color Picker.)
    Select Log Errors That Result From Processing Files to record each error in a file without stopping the process. If errors are logged to a file, a message appears after processing. To review the error file, open with a text editor after the Batch command has run.
    Click OK to process and save the files.

  • Relink source file

    I've imported a Photoshop file into Captivate 7. Captivate converted it to a PNG in the Library.
    Then I edited the original Photoshop file.
    There are a couple of commands I hadn't noticed in previous versions: "Edit PDF Source File" and "Update from Source"
    When I choose Update from Source a message appears:
    "Unable to update since the source file is mising. Relink the source file before you proceed."
    The location of the source file has not been moved or renamed since it was imported into Captivate, so I don't know why I'm getting that message. I can't find an explanation anywhere as to how to "relink."
    Is there an easy way to relink (or do I have to re-import the file, resize, reposition, etc)?

    Jay, I'm always importing assets first to the Library, rarely direct to the stage. And when importing to the Library, when possible I'll take the original file: WAV for audio, PSD for Photoshop etc. If you import a PSD-file, you'll be able to choose for a flattened image (as was the case for the screenshot) or to import with all layers. In both cases the flattened image, or the layers will each be converted to a PNG-image, but you'll keep the 'link' with the source file, in the same way as you can have a link with a PPT. In previous versions roundtripping with the source file was only avalaible in the eLS, but now it is there if you have Photoshop CS6 or CC installed on your system. I have several PSD-files with many layers. One example: for localisation I'll have text layers in the PSD in different languages, and import those layers (flattened or not) that I need in a specific file. Same with colours, masks, layer styles... My first Adobe love was Photoshop, not Captivate You understand that I love that roundtripping with the source file.
    Lilybiri

  • Large files not displaying clearly

    I have just stitched some photos and the resulting files do not display clearly outside of CS4.  They were files - up to 800MB  I have then resized them and put them on the web and found the files resized from the larger files do not give a good resolution on the screen.   I have tried saving them up to 150 ppi instead of 75 but still get the same result.   The original large file has incredible resolution when zooming in with CS4.  But terrible when trying to resize  put it on the web.   For an example check out the gallery.      http://gallery.me.com/suethomo#100207&bgcolor=white
    The stitched ones are Thomo_1. Thomo_2  Thomo_3 Thomo_4.    The sharpest ones are taken with a point and shoot!  The stitched pics are with Canon 5D Mk!! and processed from RAW    I have sharpened them in CS4 and they look good until I view them in Bridge or elsewhere.  Not sure where I am going wrong.
    Any suggestions welcome

    A couple of things come to mind...
    I noticed that your web gallery scales the images according to the viewer's browser window size.  Shrink the browser window and the image shrinks.  Enlarge the browser window and the image enlarges.  I would suspect that scaling the image beyond the actual image size would cause pixelation and possible aliasing.
    I would also check that you are sizing your images properly for online viewing.  The resolution should likely be 72 ppi at a suitable viewing size.  I would also ensure that you are using 'Bicubic Sharper' when scaling images down in PS.

Maybe you are looking for