Scripting automated image resizing

Hi,
Could someone help me with the following script creation, or point me in the direction of where I might learn how to create a script for the following?
I have X number of .psd files that are all at 2048x2048 pixels.
I want to automate the resizing of all of the .psd files to 5 inchesx 5 inches at 300 pixels/inch resolution, and then also automate the creation of a .jpeg for each .psd image.
Edit:
I also want to incorporate automation of output to a specific folder (so all the .jpegs will be going to a seperate folder from the parent .psd files).
Thanks!

For Photoshop Scripting advice I would recommend
Photoshop Scripting
and
PS-Scripts

Similar Messages

  • I need an action/script for image resizing with a "special" attribute

    Having a headache, nothing work so far the way I want it...
    So here's the deal: I have a bunch of psd files and I need them saved as jpegs in a fixed size - 450x590px.
    The filename of the jpeg should be the same as each psd and the images should be resized proportionate.
    The psds have irregular sizes, some are tall, some are square, some are wide, etc.
    I tried using the place function on a template, but that requires my input - choose what to place, then type the filename.
    Any ideas?
    Thank you for your input!

    elmoldovano wrote:
    So here's the deal: I have a bunch of psd files and I need them saved as jpegs in a fixed size - 450x590px.
    The filename of the jpeg should be the same as each psd and the images should be resized proportionate.
    The psds have irregular sizes, some are tall, some are square, some are wide, etc.
    I tried using the place function on a template, but that requires my input - choose what to place, then type the filename.
    So have both Portrait and Landscape images with varying size. and want to create jpeg from them that are 450x590 pixels in size.  Can the have Portrait and Landscape orientations.  If they all must be Portraits 450px wide by 590px high  your landscape images composition will not fair well.  For cropping landscape image to portraits image normally crops away  to much image content.   Content aware scale may work somewhat better then cropping to portrait the introduced distortion may be acceptable.
    If Portrait 450x590px and Landscape 590x450px is an acceptable solution.  I would go with a cropping solution for there will be no distortion and centered crop composition are usually acceptable.   It can also be done with a two step action used by an image processor script.  If you download my crafting action package. It has a plug-in script that can be recorded in an action to set a 45:59 centered aspect ratio selection which you follow with an Image Crop step.  You run the Image Processor  script have the action make the crop and the Image processor to resize the crop to fit into a 590x590px area.
    Crafting Actions Package UPDATED Aug 14, 2012 Changed AspectRatioSelection Plug-in script added Path support.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    12 Scripts for actions
    Example
    Download

  • Why won't Photoshop revert to earlier history state after image resize when scripted?

    I've written an Applescript to automate watermarking and resizing images for my company. Everything generally works fine — the script saves the initial history state to a variable, resizes the image, adds the appropriate watermark, saves off a jpeg, then reverts to the initial history state for another resize and watermark loop.
    The problem is when I try not to use a watermark and only resize by setting the variable `wmColor` to `"None"` or `"None for all"`. It seems that after resizing and saving off a jpeg, Photoshop doesn't like it when I try to revert to the initial history state. This is super annoying, since clearly a resize should count as a history step, and I don't want to rewrite the script to implement multiple open/close operations on the original file. Does anyone know what might be going on? This is the line that's generating the problem (it's in both the doBig and doSmall methods, and throws an error every time I ask it just to do an image resize and change current history state):
                        set current history state of current document to initialState
    and here's the whole script:
    property type_list : {"JPEG", "TIFF", "PNGf", "8BPS", "BMPf", "GIFf", "PDF ", "PICT"}
    property extension_list : {"jpg", "jpeg", "tif", "tiff", "png", "psd", "bmp", "gif", "jp2", "pdf", "pict", "pct", "sgi", "tga"}
    property typeIDs_list : {"public.jpeg", "public.tiff", "public.png", "com.adobe.photoshop-image", "com.microsoft.bmp", "com.compuserve.gif", "public.jpeg-2000", "com.adobe.pdf", "com.apple.pict", "com.sgi.sgi-image", "com.truevision.tga-image"}
    global myFolder
    global wmYN
    global wmColor
    global nameUse
    global rootName
    global nameCount
    property myFolder : ""
    -- This droplet processes files dropped onto the applet
    on open these_items
      -- FILTER THE DRAGGED-ON ITEMS BY CHECKING THEIR PROPERTIES AGAINST THE LISTS ABOVE
              set wmColor to null
              set nameCount to 0
              set nameUse to null
              if myFolder is not "" then
                        set myFolder to choose folder with prompt "Choose where to put your finished images" default location myFolder -- where you're going to store the jpgs
              else
                        set myFolder to choose folder with prompt "Choose where to put your finished images" default location (path to desktop)
              end if
              repeat with i from 1 to the count of these_items
                        set totalFiles to count of these_items
                        set this_item to item i of these_items
                        set the item_info to info for this_item without size
                        if folder of the item_info is true then
      process_folder(this_item)
                        else
                                  try
                                            set this_extension to the name extension of item_info
                                  on error
                                            set this_extension to ""
                                  end try
                                  try
                                            set this_filetype to the file type of item_info
                                  on error
                                            set this_filetype to ""
                                  end try
                                  try
                                            set this_typeID to the type identifier of item_info
                                  on error
                                            set this_typeID to ""
                                  end try
                                  if (folder of the item_info is false) and (alias of the item_info is false) and ((this_filetype is in the type_list) or (this_extension is in the extension_list) or (this_typeID is in typeIDs_list)) then
      -- THE ITEM IS AN IMAGE FILE AND CAN BE PROCESSED
      process_item(this_item)
                                  end if
                        end if
              end repeat
    end open
    -- this sub-routine processes folders
    on process_folder(this_folder)
              set these_items to list folder this_folder without invisibles
              repeat with i from 1 to the count of these_items
                        set this_item to alias ((this_folder as Unicode text) & (item i of these_items))
                        set the item_info to info for this_item without size
                        if folder of the item_info is true then
      process_folder(this_item)
                        else
                                  try
                                            set this_extension to the name extension of item_info
                                  on error
                                            set this_extension to ""
                                  end try
                                  try
                                            set this_filetype to the file type of item_info
                                  on error
                                            set this_filetype to ""
                                  end try
                                  try
                                            set this_typeID to the type identifier of item_info
                                  on error
                                            set this_typeID to ""
                                  end try
                                  if (folder of the item_info is false) and (alias of the item_info is false) and ((this_filetype is in the type_list) or (this_extension is in the extension_list) or (this_typeID is in typeIDs_list)) then
      -- THE ITEM IS AN IMAGE FILE AND CAN BE PROCESSED
      process_item(this_item)
                                  end if
                        end if
              end repeat
    end process_folder
    -- this sub-routine processes files
    on process_item(this_item)
              set this_image to this_item as text
              tell application id "com.adobe.photoshop"
                        set saveUnits to ruler units of settings
                        set display dialogs to never
      open file this_image
                        if wmColor is not in {"None for all", "White for all", "Black for all"} then
                                  set wmColor to choose from list {"None", "None for all", "Black", "Black for all", "White", "White for all"} with prompt "What color should the watermark be?" default items "White for all" without multiple selections allowed and empty selection allowed
                        end if
                        if wmColor is false then
                                  error number -128
                        end if
                        if nameUse is not "Just increment this for all" then
                                  set nameBox to display dialog "What should I call these things?" default answer ("image") with title "Choose the name stem for your images" buttons {"Cancel", "Just increment this for all", "OK"} default button "Just increment this for all"
                                  set nameUse to button returned of nameBox -- this will determine whether or not to increment stem names
                                  set rootName to text returned of nameBox -- this will be the root part of all of your file names
                                  set currentName to rootName
                        else
                                  set nameCount to nameCount + 1
                                  set currentName to rootName & (nameCount as text)
                        end if
                        set thisDocument to current document
                        set initialState to current history state of thisDocument
                        set ruler units of settings to pixel units
              end tell
      DoSmall(thisDocument, currentName, initialState)
      DoBig(thisDocument, currentName, initialState)
              tell application id "com.adobe.photoshop"
                        close thisDocument without saving
                        set ruler units of settings to saveUnits
              end tell
    end process_item
    to DoSmall(thisDocument, currentName, initialState)
              tell application id "com.adobe.photoshop"
                        set initWidth to width of thisDocument
                        if initWidth < 640 then
      resize image thisDocument width 640 resample method bicubic smoother
                        else if initWidth > 640 then
      resize image thisDocument width 640 resample method bicubic sharper
                        end if
                        set myHeight to height of thisDocument
                        set myWidth to width of thisDocument
                        if wmColor is in {"White", "White for all"} then
                                  set wmFile to (path to resource "water_250_white.png" in bundle path to me) as text
                        else if wmColor is in {"Black", "Black for all"} then
                                  set wmFile to (path to resource "water_250_black.png" in bundle path to me) as text
                        end if
                        if wmColor is not in {"None", "None for all"} then
      open file wmFile
                                  set wmDocument to current document
                                  set wmHeight to height of wmDocument
                                  set wmWidth to width of wmDocument
      duplicate current layer of wmDocument to thisDocument
                                  close wmDocument without saving
      translate current layer of thisDocument delta x (myWidth - wmWidth - 10) delta y (myHeight - wmHeight - 10)
                                  set opacity of current layer of thisDocument to 20
                        end if
                        set myPath to (myFolder as text) & (currentName) & "_640"
                        set myOptions to {class:JPEG save options, embed color profile:false, quality:12}
      save thisDocument as JPEG in file myPath with options myOptions appending lowercase extension
                        set current history state of current document to initialState
              end tell
    end DoSmall
    to DoBig(thisDocument, currentName, initialState)
              tell application id "com.adobe.photoshop"
                        set initWidth to width of thisDocument
                        if initWidth < 1020 then
      resize image thisDocument width 1020 resample method bicubic smoother
                        else if initWidth > 1020 then
      resize image thisDocument width 1020 resample method bicubic sharper
                        end if
                        set myHeight to height of thisDocument
                        set myWidth to width of thisDocument
                        if wmColor is in {"White", "White for all"} then
                                  set wmFile to (path to resource "water_400_white.png" in bundle path to me) as text
                        else if wmColor is in {"Black", "Black for all"} then
                                  set wmFile to (path to resource "water_400_black.png" in bundle path to me) as text
                        end if
                        if wmColor is not in {"None", "None for all"} then
      open file wmFile
                                  set wmDocument to current document
                                  set wmHeight to height of wmDocument
                                  set wmWidth to width of wmDocument
      duplicate current layer of wmDocument to thisDocument
                                  close wmDocument without saving
      translate current layer of thisDocument delta x (myWidth - wmWidth - 16) delta y (myHeight - wmHeight - 16)
                                  set opacity of current layer of thisDocument to 20
                        end if
                        set myPath to (myFolder as text) & (currentName) & "_1020"
                        set myOptions to {class:JPEG save options, embed color profile:false, quality:12}
      save thisDocument as JPEG in file myPath with options myOptions appending lowercase extension
                        set current history state of current document to initialState
              end tell
    end DoBig

    As many others here I use JavaScript so I can’t really help you with your problem.
    But I’d like to point to »the lazy person’s out« – with many operations that result in creating a new file on disk I simply duplicate the image (and flatten in the same step) to minimize any chance of damaging the original file if the Script should not perform as expected.

  • Ways to implement image resizing using plug-ins?

    Hi Photoshop developers,
    I'm a developer with a few Photoshop filter and selection plug-ins under my belt, and I have a good understanding of the SDK and tools and suites it provides. My next project is an algorithm for enlarging/resampling images to different pixel dimensions. I'm wondering if anyone has any suggestions for or experience with the best combination of plug-in types to implement this.
    Clearly, I can't just write it as a filter plug-in, since there is no way to change the image dimensions from within a filter.
    I'd like the resized image to remain within Photoshop (as a new window or in the original one), so an export plug-in on its own is not sufficient.
    Import plug-ins seem promising, since they allow the creation of a new document of the required size. However, as best I can tell from the Photoshop 6.0 SDK documentation, import plug-ins cannot access the image data from other open documents (or even the clipboard), nor do they provide any support for channel ports and the Channel Port suite.
    My best idea at this stage is to create an export plug-in to provide the user interface and calculate the resized image, and then an import plug-in to import the resized image back into a new window. (I'm supposing a further automation plug-in would then be written to perform this export/import sequence.) The difficulty I see with this approach is how to communicate the resized image data between the two plug-ins. Since the resized image will potentially be very large, the ideal solution would be to store it in channels managed by the Channel Ports suite. However, I cannot see how the channel ports created in the export plug-in could be communicated to and used by an import plug-in. The alternative would be for the export plug-in to save the resized image to a temporary file on disk, however this seems unnecessary.
    So, my questions, specifically, are:
    a) Is it possible to create new channels using the Channel Ports suite (sPSChannelPorts->New()) in one plug-in, and have those channels persist to be used in another plug-in?
    b) If so, how would the channel ports be communicated between the plug-ins?
    c) Alternately, are there any alternative architectures available for implementing an image-resizing algorithm using the plug-in types that are available for Photoshop developers.
    Any responses would be greatly appreciated; I know this is a low-traffic forum...
    Thanks,
    Matthew.

    I would make an automation plug-in and a filter plug-in.<br /><br />1) Run the automation which runs your filter to gather current image <br />information<br />2) Create a temp file of the new document<br />3) Make a new document<br />4) Call the filter again to reload the temp data on disk<br /><br /><[email protected]> wrote in message <br />news:[email protected]...<br />> Hi Photoshop developers,<br />><br />> I'm a developer with a few Photoshop filter and selection plug-ins under <br />> my belt, and I have a good understanding of the SDK and tools and suites <br />> it provides. My next project is an algorithm for enlarging/resampling <br />> images to different pixel dimensions. I'm wondering if anyone has any <br />> suggestions for or experience with the best combination of plug-in types <br />> to implement this.<br />><br />> Clearly, I can't just write it as a filter plug-in, since there is no way <br />> to change the image dimensions from within a filter.<br />><br />> I'd like the resized image to remain within Photoshop (as a new window or <br />> in the original one), so an export plug-in on its own is not sufficient.<br />><br />> Import plug-ins seem promising, since they allow the creation of a new <br />> document of the required size. However, as best I can tell from the <br />> Photoshop 6.0 SDK documentation, import plug-ins cannot access the image <br />> data from other open documents (or even the clipboard), nor do they <br />> provide any support for channel ports and the Channel Port suite.<br />><br />> My best idea at this stage is to create an export plug-in to provide the <br />> user interface and calculate the resized image, and then an import plug-in <br />> to import the resized image back into a new window. (I'm supposing a <br />> further automation plug-in would then be written to perform this <br />> export/import sequence.) The difficulty I see with this approach is how to <br />> communicate the resized image data between the two plug-ins. Since the <br />> resized image will potentially be very large, the ideal solution would be <br />> to store it in channels managed by the Channel Ports suite. However, I <br />> cannot see how the channel ports created in the export plug-in could be <br />> communicated to and used by an import plug-in. The alternative would be <br />> for the export plug-in to save the resized image to a temporary file on <br />> disk, however this seems unnecessary.<br />><br />> So, my questions, specifically, are:<br />><br />> a) Is it possible to create new channels using the Channel Ports suite <br />> (sPSChannelPorts->New()) in one plug-in, and have those channels persist <br />> to be used in another plug-in?<br />><br />> b) If so, how would the channel ports be communicated between the <br />> plug-ins?<br />><br />> c) Alternately, are there any alternative architectures available for <br />> implementing an image-resizing algorithm using the plug-in types that are <br />> available for Photoshop developers.<br />><br />> Any responses would be greatly appreciated; I know this is a low-traffic <br />> forum...<br />><br />> Thanks,<br />> Matthew.

  • Image processor script and image interpolation setting (cs3)

    Hi all,
    I'm using Bridge & Photoshop CS3 (mac) to process batches of photographs. I've discovered that the script "Image Processor" does not take into account the "image interpolation" setting of my General Preferences in Photoshop.
    It's very painful, because I cannot use "Image Processor" any longer, as it produces soft images where I need sharp ones (my default for "image interpolation" is "bicubic sharper".
    Any idea/workaround?
    thanks
    Patrick

    This is the change I made in CS5 fit image
        // resize the image using a good conversion method while keeping the pixel resolution
        // and the aspect ratio the same
        //app.activeDocument.resizeImage(newWidth, newHeight, resolution, ResampleMethod.BICUBIC); Commented out JJMACK
        if ( newWidth > app.activeDocument.width || newHeight > app.activeDocument.height ) {
            if (!limit) {app.activeDocument.resizeImage(newWidth, newHeight, resolution, ResampleMethod.BICUBICSMOOTHER);}
        else { app.activeDocument.resizeImage(newWidth, newHeight, resolution, ResampleMethod.BICUBICSHARPER); }
    Note: Adobe choice to use BICUBIC is probally the best choice for users in general. For I find an images has been sharpened before its downsizes, downsizimg it using BICUBICSHARPER  is not the best choice then.

  • Batch image resizing

    Hi,
    Can anyone tell me what the limits on the image resizing in Photoshop is. I need to run a regular batch of image resizing on about 38,000+ images (quiet a lot). I've also been looking around for a tool that can handle this number of images to resize, does anyone know if Adobe has such a tool?
    Thanks
    Stephen

    I don't think there is an easy answer for you, if the files are on a server then there could be horrendous problems. You might need a custom script that breaks the batch into chunks and controled by Bridge.
    Scripting expert Xbytor, has written scripts for people that does this sort of batch processing over at PS-Scripts.com, he may be able to help.

  • Scripting Fit Image Command

    Does anyone know if there is a way to add the "Fit Image" command to a script?
    This is what I currently am working with below. I just want to be able to make it so that images are no longer than 1000 pixels on either side, and not have to call an action.
    Thanks!
    Janice
    //PLACE WATERMARK NOTICE IN FILE
    var idPlc = charIDToTypeID( "Plc " );
        var desc973 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        desc973.putPath( idnull, new File( "C:/watermark.gif\/" ) );
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc973.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc974 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc974.putUnitDouble( idHrzn, idPxl, 0.000000 );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc974.putUnitDouble( idVrtc, idPxl, 0.000000 );
        var idOfst = charIDToTypeID( "Ofst" );
        desc973.putObject( idOfst, idOfst, desc974 );
    executeAction( idPlc, desc973, DialogModes.NO );
    //FLATTEN IMAGE
    app.activeDocument.mergeVisibleLayers()

    You can also look at the Image Processor script to see how it actually uses the Plug-in script "Fit Image.jsx"..   It woul look somethimg like this
    FitImage( 1000, 1000 );
    //Code below from "Image Processor.jsx"
    // use the fit image automation plug-in to do this work for me
    function FitImage( inWidth, inHeight ) {
              if ( inWidth == undefined || inHeight == undefined ) {
                        alert( strWidthAndHeight );   //This statement woul need to changed
                        return;
              var desc = new ActionDescriptor();
              var unitPixels = charIDToTypeID( '#Pxl' );
              desc.putUnitDouble( charIDToTypeID( 'Wdth' ), unitPixels, inWidth );
              desc.putUnitDouble( charIDToTypeID( 'Hght' ), unitPixels, inHeight );
              var runtimeEventID = stringIDToTypeID( "3caa3434-cb67-11d1-bc43-0060b0a13dc4" );
              executeAction( runtimeEventID, desc, DialogModes.NO );
    The image process set vars for localization
              // the string that need localized
              strWidthAndHeight = localize( "$$$/JavaScripts/ImageProcessor/WidthAndHeight=Width and Height must be defined to use FitImage function!" );1

  • Windows 7 Automated Imaging and ZCM Registration

    After banging my head off my desk for the past week or so, I think I've finally managed to crack automated ZCM imaging of Windows 7 including (based on my previous XP imaging work) :
    - Automated Computer renaming based on BIOS setting (HP Machines) (powershell script)
    - Automated Join Domain (powershell script)
    - A scripted "scan for new hardware" to cover using the same base image on multiple machines
    - ZCM agent delivered as a ZCM add-on image and installed by one of the powershell scripts above
    Before I post it up as a Cool Solution, it would be helpful if a couple of people would be willing to test out the steps for me to see if I've missed anything?
    If anyone is interested, please PM me on here with their mail address, and I'll send over the instructions and the relevant scripts.

    andystewartSL wrote:
    >
    > After banging my head off my desk for the past week or so, I think
    > I've finally managed to crack automated ZCM imaging of Windows 7
    > including (based on my previous XP imaging work) :
    >
    > - Automated Computer renaming based on BIOS setting (HP Machines)
    > (powershell script)
    > - Automated Join Domain (powershell script)
    > - A scripted "scan for new hardware" to cover using the same base
    > image on multiple machines
    > - ZCM agent delivered as a ZCM add-on image and installed by one of
    > the powershell scripts above
    >
    > Before I post it up as a Cool Solution, it would be helpful if a
    > couple of people would be willing to test out the steps for me to see
    > if I've missed anything?
    >
    > If anyone is interested, please PM me on here with their mail address,
    > and I'll send over the instructions and the relevant scripts.
    We are interested... Please send to [email protected]..
    Thanks...

  • Automated image capture and processing

    I want to create an automated image processing.  I have LR4.1 and CS6 installed.  I also subscribe to the Creative Cloud. 
    1. Capture an NEF.
    2. Apply an X-Rite color profile.
    3. Save as a JPG to a specified folder.
    4. Save the NEF to another specified folder.
    How can I do this?
    Thanks,
    Ed Beck

    Thanks, let me know if there are more questions.
    >1. Capture an NEF.
    >Is this a theaderd NiKon camera or a wireless transfer how is the capture beinng done?
    D800 tethered to a Windows 7, 64-bit PC via a USB 2.0 port
    >2. Apply an X-Rite color profile.
    >Is this for your printer are you printing the images or just saving RGB conversions?
    The images will eventually be printed by a lab.
    >3. Save as a JPG to a specified folder.
    >Any resizing or paticilar color profile for the web or prinnter?
    Yes, I'll resize the JPGs down. My target is an 8" x 10" print.
    >4. Save the NEF to another specified folder.           
    >again is the transfer fron the camera via usb, firewire ir wireless?
    Tethered via a USB 2.0 port.
    I'm shooting school photos.  I want to capture an NEF to give me a better file to work with later if I need to. However the workflow software I'm using (Flow) is looking for a JPG to appear in a specified folder. I need this to be part of a live workflow because I'm required to produce an ID card on the spot and hand it to the student as they leave the set.
    I need to use Flow so I can link the image to the database containing my catalog and the list of students. Using other applications for this part of the process is not an option.
    Thanks

  • Script grop and resize?

    Say me, please where can I get a script grop and resize for cs6? Need to prepare to print catalogue whit many pages!

    Open a Test File
    Menu: Window > Actions
    Arrow pointing down (in the Actions Pane), make sure Allow Tool Recording is ticked (see Screenshot below)
    Click on New Action, Record, Name it something (e.g. Crop & Resize)
    Do Crop [C]
    Do Resize [CMD+ALT+I or CTRL+ALT+I]
    Save and Close File
    Stop Recording Action
    Now choose either menu:
      File > Automate > Batch...
    or
    File > Scripts > Image Processor...

  • Scripting photoshop image browser

    Hello.
    Is it possible to script the image browser?
    I need to make the browser to:
    - jump to certain folder or network path
    - display certain images based on metadata
    Any suggestion regarding the idea and any hint where to look for existing source code to start with is well appreciated.
    Thanks

    Thanks for dropping by and the hints provided.
    The image browser I meant was the file browser found within Photoshop CS.  Can't I use it?  Photoshop CS4 does not have File Browser?
    I have not used CS4 and I don't have Bridge software.  I might consider buying it if the existing will not help me.
    I am using VB6 GUI as my tool in scripting Photoshop.  Can I script Bridge with VB6?  I know I am using an old version of Photoshop and that because I have developed many tools for my own use based on Photoshop CS (known as 8).
    Is there any tools that can convert my old VB code to work with Photoshop CS4?
    OR
    Will my old scripting code is going to work with new versions of photoshop?
    Thanks
     

  • Images as Buttons and Image Resizing in mxml

    Sorry for all the questions but I've run into a problem when trying to create buttons that are just an image in mxml. When I first tried this I couldn't find a way to get the border around the button to dissapear so it ended up looking like my image had an extra black border around it. Then someone here suggested I just set the buttonMode property of an mx:Image to true which ended up working fine to a point. The problem I'm having is that even if I make the tabEnabled property of the image (that I'm using as a button) true, I can't tab over to it. Is there a way to either get rid of the black borders of a button or to make it so I can tab over to an image I'm using as a button?
    My second question has to do with image resizing. Lets say I have an image of a horizontal line that I want to put at the top of the mxml page, and I want it to extend the full length of the page, even after the user has resized the browser. Is there a way to do that? I've tried putting the width as 100% or giving the image a "left" and "right" value so that presumably it would be stretched to fit within those but nothing has worked so far. Is there no way to do this or am I doing something wrong?
    Thank you for any help you guys can give.

    Of course, sorry about that. So the following is a barebones example of how I currently implement buttons and images as buttons:
    <mx:Button id="facebookButton" icon="@Embed(source='image.png')" width="30"/>
    <mx:Image buttonMode="true" id="button" source="anotherimage.png" enabled="true" click="{foo()}"/>
    And within the image I've tried making the tabFocusEnabled property true but to no avail.
    The following is how I've tried stretching out an image across the whole page:
    <mx:Image source="yetanotherimage.png" width="100%" scaleContent="true"/>
    <mx:Image source="yetanotherimage.png" left="10" right="10" scaleContent="true"/>
    Is this more helpful?

  • Image resizing in Smartforms?? or ADOBE

    Hello All,
    I am working on creating a smartform. It includes displaying images in the output. There could be different
    smartforms displaying the same image but with different sizes.
    I know of the solution to resize the image using picture editor and upload using SE78, which is then accessed in the smartform. But I want to avoid multiple sizes of same images in the MIME repository.
    Is there a possibility of image resizing in the smartform ? If yes, then how ? I have tried changing the DPI in General attributes of the graphic node in smartform but it does not resize the image.
    If not, then is it possible in ADOBE forms ?
    Regards,
    Subodh S.Rao

    Hi Subuodh,
    Please refer to the gabriels answer in the below link.
    http://scn.sap.com/thread/506094
    Other Ways of doing.
    http://wiki.sdn.sap.com/wiki/display/ABAP/SE78+And+OAER+bmp+Image+Creating
    Hope it will help.
    Regards,
    Amit

  • PHP -Mysql image resize and upload

    All,
    Any good ideas, code out there to help me do a PHP MySQL image resize, uploade and display? Thanks for your help!

    For upload image, u may look at the similar thread HERE

  • Permissions issue with image resize

    Ok I'm hoping someone may be able to help with this because it is really frustrating.
    I realise this issue has already been posted in these forums however there was no solution offered that has rectified it for me.  I am getting an error when trying to display thumbnails        "Error converting image (create thumbnail). The "" folder has no write permissions".  And this error when trying to upload and resize images "Image upload error. Error resizing image: Error converting image (image resize). The "" folder has no write permissions. (IMG_RESIZE)". All folders on server have full read, write and execute permissions, so I am really confused why this happenning.  I have removed and updated the includes folder on the server with no joy.  I altered the tNG_custom.class.php, tNG_insert.class.php, tNG_update.class.php files to remove the tNG_fields line to just tNG as this was throwing errors with PHP5.3.  I also changed everything else per http://forums.adobe.com/message/2357443#2357443.
    This is the tNG execution trace (why the tNGUNKNOWN??):-
    tNGUNKNOWN.executeTransaction
    STARTER.Trigger_Default_Starter
    tNGUNKNOWN.doTransaction
    BEFORE.Trigger_Default_FormValidation
    BEFORE.Trigger_CheckForbiddenWords
    tNG_insert.prepareSQL
    tNGUNKNOWN.executeTransaction - execute sql
    tNG_insert.postExecuteSql
    AFTER.Trigger_ImageUploadtNGUNKNOWN.afterUpdateField - DefaultPic, P8280176.JPG*
    ERROR.Trigger_LinkTransactionstNGUNKNOWN.doTransaction
    tNGUNKNOWN.executeTransaction
    tNGUNKNOWN.getRecordset
    tNGUNKNOWN.getFakeRsArr
    tNG_insert.getLocalRecordset
    tNGUNKNOWN.getFakeRecordset
    tNGUNKNOWN.getFakeRecordset
    tNGUNKNOWN.getRecordset
    tNGUNKNOWN.getFakeRsArr
    tNG_insert.getLocalRecordset
    tNGUNKNOWN.getFakeRecordset
    tNGUNKNOWN.getFakeRecordset
    And is causing the following php warnings when executed:-
    Warning: Parameter 2 to Trigger_Default_FormValidation() expected to be a reference, value given /testing/includes/tng/tNG.class.php on line 228 Warning: preg_split(): No ending matching delimiter ']' found in /testing/includes/common/lib/image/KT_Image.class.php on line 2034 Warning: array_pop() expects parameter 1 to be array, boolean given in /testing/includes/common/lib/image/KT_Image.class.php on line 2035 Warning: implode(): Invalid arguments passed in /testing/includes/common/lib/image/KT_Image.class.php on line 203
    Is it the preg_split() that is causing the issues here??
    Any Ideas?

    Hello BoarderLineLtd
    I have noticed that on some servers when you upload the first image to the images folder using the ADDT image upload function the thumbnail directory that gets written to the images directory is written but the permissions are not set.
    If you use an FTP program such as CuteFTP or WSFTP to login to your web site you can manually set the permissions for the thumbnail directory.
    This should eliminate the permissions error.
    Stan Forrest
    Senior Web Developer
    Digital Magic Show

Maybe you are looking for

  • IPhone Remote - iPhone is not able to connect with my library

    Hi, after searching the internet for a solution, i hope one of you guys can help. Well, when i start Remote on my iPhone iTunes detects the Device, and im able to enter the code in iTunes. But when im trying to connect to my library, my iPhone just w

  • Any word on when the account activation link will be fixed?

    I bought an ipod touch yesterday and i need an account to get apps. I bought a gift card. Is there any word on when they fix this?

  • Watched Folders not processing - ALC-DSC-003-000

    This error seems familiar, but I've yet to see a solution for it in the forums. My watched folders have stopped processing files and this is the first few lines I get from WebSphere's systemErr.log.  See first and last lines: [19/04/10 19:17:33:229 B

  • H.264 and prores proxy question

    I've read through a ton of posts about proxy and h.264 workflows but didn't find any that answers my specific question. My raw video from my camera is mp4 (h.264). I understand that h.264 is not good to edit with, so I have a few options. I use a mac

  • Urgent: HTTP Status 500-org.apache.jasper.JasperException in running websit

    Hi I am running a website. The server provided to me is tomcat and is in Linux and database is MYSQL. I am getting the below stated error. In my PC the code is running truly but when i upload it to website the following error occured.I have tried wit