Need a script for squaring images of various sizes please

Hello, new to this group but have been using photoshop for years doing basic editing. I have never done any sripting. I have a project on my hands. I have a lot of image of various sizes with some taller or wider than others. I need to make all these images exactly square though. Currently they vary and are wider or taller etc.
I was wondering what process I could use hopefully with batch editing but was told scripting might be the answer to automate this process as I have about 8,000 images.
So for example one image might be 200 pixels wide and 400 pixels high and another is 100 pixels high and 600 pixels wide and so on. I would need the
1st example to be 400 x 400 and the 2nd example 600 x 600.
I am using photoshop 5.5
The software for a shopping cart is using a feature that allows you to zoom in on the image but if it is not perfectly square the image doesn't appear
well in the software. Using magento e-commerce.
Thanks for your help and any thoughts on this project of mine.
Dave

Here a simple script the does what I think you want.
// squares the canvas. uses the background color
var doc = activeDocument;
var maxDim = Math.max( doc.width, doc.height );
doc.resizeCanvas( maxDim, maxDim, AnchorPosition.MIDDLECENTER );

Similar Messages

  • I need a driver for canon image Class LBP6000 for Mac Mini Yosemite

    I need a driver for canon image Class LBP6000 for Mac Mini Yosemite

    Go to: > http://www.usa.canon.com/cusa/consumer/products/printers_multifunction/laser_pri nters/imageclass_lbp6000#DriversAndSoftware
    It does not look like the Canon driver has change from Mavericks to Yosemite.
    If you just updated from Mavercks to Yosemite, see > OS X Mavericks: Reset the printing system
    If you have a new or clean install of Yosemite, see  > OS X Mavericks: Set up a printer

  • HOW TO: Action to resize & center crop images of various sizes

    Hello,
    I've gotten a lot of help here over the years so I wanted to share an action I created. I needed to resize and automatically center crop images of various sizes for my company's website. For example: All images needed to be 900px x 460px 72dpi - and because input images were from many different sources, the dimensions were different for each image. It seemed straight forward at first (sort of) but I couldn't find a way of doing this without a script or some third party program - so I came up with the following action. Hope someone gets some use out of it.
    Note: Change action as needed to suit your needs.
    Resize and Center Crop (Auto)
    Fit Image
         height: 900px
         width: 900px
         With Don't Enlarge
    Canvas Size
         height: 460px
         vertical: center
         extension color: white
    Image Size
         width: 900px
         resolution: 72 per inch
         with scale styles
         with constrain proportions
    Save (optional)
         As: JPEG
         Quality: 12
         Scans: 5 (for web images)
    This assumes that the images are at least horizontal, but if you have photoshop CC you can create a conditional action that will work with vertical and horizontal images. If you are square cropping, this action makes it a breeze. I also have an action that uses the same basic logic, but lets me manually move the crop box. The only real issue I have encountered is when the original image ratio is very narrow, which leads to some white space on the top and bottom (I'm working on updating the action to address this). But it has worked on about 95% of my images. Again, you will probably need to adjust all of the variables depending on what you are trying to do, but it should be possible with the same steps. And of course this can also be used to batch process.
    Feel free to let me know if anyone comes up with improvements! Thanks

    Hmm thanks Mylenium, I got that response a lot when I was searching before. But if you re-read above, I am explaining a method of doing it without a script. So it wasn't really a question, just a tip in case anyone else wanted to do the same.

  • Need script for exporting images to EPS

    I need to write a script to export a whole bunch of files from Indesign CS3 to EPS files. Right now we do them one at a time...here are the steps we take that we would need included in the script...
    Select all (Control A), ungroup, convert to outlines (control-shift O), export (need to be able to say black or white or RGB) and then close the file without saving.
    and if there was anyway to loop this script for 20 files at a time that would be really helpful.
    Can any help or direct me to a website that can help.
    Thanks!
    Marissa

    Maybe this one: http://www.kahrel.plus.com/indesign/batch_convert_cs3.html
    Peter

  • Script for replacing Image from a frame into InDesign document file

    Hi All,
    I am having an indesign document (indd) file with images and texts. I am using InDesign Server CS4 to run the scripts via SOAP.
    My requirement is to replace any of the images from the required frame/s of indesign document through scripting (I already have frame id of which image needs to be replaced). I have written written java-script file (as given below): but when I execute this java-script on InDesign Server via SOAP, I get follwoing error into InDesign Server:
    10/03/09 15:15:54 INFO  [javascript] Executing File: \\Server_IP_Address\JavaScript_File_Path\JavaScript_File.js
    10/03/09 15:16:01 ERROR [link manager] Link missing.; file:C:/help.gif
    10/03/09 15:16:01 ERROR [link manager] Link missing.; file:C:/Documents%20and%20Settings/All%20Users/Documents/My%20Pictures/Sample%20Pictures/ Water%20lilies.jpg
    10/03/09 15:16:01 ERROR [link manager] Link missing.; file:C:/Documents%20and%20Settings/All%20Users/Documents/My%20Pictures/Sample%20Pictures/ Winter.jpg
    Following is the java-script that is being used for replacing image from indd's frame:
    var myDocument = app.open(File('//Server_IP_Address/InDesignDocument_File_Path/Sample.indd'));
    var tmp_frmid="1339"; //frame id of which image needs to be replaced.
    for (var i=0;i<myDocument.pages.length;i++)
    var objPage=myDocument.pages.item(i);
    var objPageitems = objPage.pageItems;
    try
    var obj = objPageitems.itemByID(tmp_frmid);
    obj.images[0].remove;
    obj.appliedObjectStyle = null;
    var myImage=obj.place(File('//Server_IP_Address/Images_to_be_reolaced_Path/ImageFile.jpg'));
    var old_height = myImage.geometricBounds[2] - myImage.geometricBounds[0];
    var new_height = obj.geometricBounds[2] - obj.geometricBounds[0];
    var old_width = myImage.geometricBounds[3] - myImage.geometricBounds[1];
    var new_width = obj.geometricBounds[1] + ((new_height / old_height) * old_width);
    myImage.geometricBounds = [obj.geometricBounds[0] + "mm", obj.geometricBounds[1] + "mm", obj.geometricBounds[2] + "mm", new_width + "mm"];
    var diff = obj.geometricBounds[1] - myImage.geometricBounds[1];
    myImage.move( undefined, [diff,0] );
    break;
    catch(e)
    myDocument.save('//Server_IP_Address/InDesignDocument_File_Path/Sample.indd');
    var previewFile = File('//Server_IP_Address/Images_to_be_reolaced_Path/ImageFile.jpg');
    app.jpegExportPreferences.jpegQuality["JPEGOptionsQuality.low"];
    app.documents.item(0).exportFile(ExportFormat.jpg, previewFile);
    myDocument.close();
    I have very urgent requirement; if anyone have any idea; please suggest me. \
    It would be highly appreciable.
    Kind Regards,
    Prashant.

    http://www.automatication.com/selection-to-pdf-script.html
    Harbs
    http://www.in-tools.com

  • Creating a script for inserting images

    I am new to the scripting concept, so please forgive me when I use incorrect terminology.
    I would like to create a script that will automatically place images in my InCopy document. Basically I want to type the names of image files in an InCopy document then run a script that will replace the name of the file with the actual image (either as an embedded image or as an image in a graphics frame, although the graphics frame might not work if the document isn't linked to an InDesign document.)
    I'm assuming I'd have to identify the image name in some way (slashes or something before and after) and during the script I'd have to identify where to find the given images, such as which folder they are in.
    Is this possible in InCopy?
    Eventually, these InCopy documents will be used in InDesign. Would it be better/faster to use a script to import these images into InDesign instead of InCopy?
    (In case the information is important, the images are all either .tif files or .eps files.)
    Also, how do I find someone who can write this script for me? I'm assuming there are freelance programmer people out there... how do I find one?
    Thanks for any advice/help you can give me!

    senza wrote:
    this is ok, this i understand now. But where to tell which schema for which user?I don't understand this question. You create a synonym in your own schema for the object you want a synonym for...
    so instead of referencing
    select * from scott.empyou would create a synonym for scott.emp, so you can do
    select * from emp

  • Need VB script for getting the IIS certification information

    Hi guys,
    I have totally 1000 IIS servers  2003 & 2008
    windows and some of the  servers configured
    IIS 3rd party Security certificates. I need a script to get the certification information like expiry date & certificate vendor name.
    Regards,
    SreeM

    Post here:http://forums.iis.net/
    Look in Gallery for IIS scripts:http://gallery.technet.microsoft.com/
    ¯\_(ツ)_/¯

  • Need antispam script for my website guestbook entries... recommendations?

    My guestbook on my website got so slammed by spambots that i had to take it offline. I would like to get one of those scripts where the person has to fill in what they see in a box (letters, numbers, etc) in order to make an entry into my guestbook. My web designers says that i need to find a script for this. Any recommendations? I don't even know what these scripts are called, making them hard to look for!
    He does the website work in Dreamweaver in Tiger, if that makes any difference. This is a guestbook that forwards entries to me as emails (they are not diplayed on the site)

    Unless I'm misunderstanding what you're trying to do, you don't need a preloaded for embed movies.  The page will load without any delay.  It's not until the user chooses to play a movie will it begin downloading / streaming it from the server.  Even if the video is a large file, internet users are use to this type of scenario where they choose to play a movie, ala youtube and others, that if their connections are slow there may be delays in video playback.  With all that said, I have seen and used page loaders where visitors will be expecting to wait a while for a result to happen, I just don't think this scenario warrants it.

  • Need Booklet script for CS3

    My computer bombed -- have CS3 installed on another, now I need the booklet script for CS3. A google didn't bring it up for me. . .
    Thanks
    Lamar

    Both scripts have always worked flawlessly for me. BuildBooklet merely shuffles the pages, so it doesn't change the page size at all (you need to check the spreads box when you export or print), but it does not handle objects that cross the spine. Neither one handles the second script does cross-spine objects, but does not do bleed.
    Perhaps you'll find what you want at Steve Sterling legacy ID imposition scripts

  • Need Edwardian Script for CS5- anyone know where I can get it?

    I have a client that wants Edwardian Script for her wedding video. I don't have it on any of my Adobe CS5 products. I do not want to join the cloud. Anyone know how I can get the font and use it with CS5?

    I saved the font to my C drive, and then re- launched PP.
    Saving the font will not show up in PP. You need to "install" the font into your "Fonts" directory. Did you install it or just save it? If you did not install it you should just be able to right click on the font and select to install it from the contextual menu. Once the font has been "installed" in your Fonts directory all of the apps will read it. I have Edwardian Script installed on my machines and the Adobe apps read them fine.

  • Need a script for archive/copy IMAP Emails older than 25 days to local mailbox

    Hi there,
    I am really troubling with archiving my IMAP mails. So far I was using standard rules, which have a major drawback - they only work on incoming mails. But I want to copy only mails to my local mailbox that are older than 25 days. The reason is that by copying all incoming mails, mail also copies all spam and unimportant mails into the local mailbox. However I only want to copy the mails that I was able to read and consider to be important, which I am able to do within a couple of days. However, I am not able to to that on a daily basis and that is why I chose the 25 days window, because my hoster deletes them automatically after 30 days. I read in a lot of forums that rules wont help, since they only work for incoming mails, therefore I am guessing that I would need a script because I want this to be automated and only applied to mails that passed the 25 day timeframe. Is the anybody that could help me out? Thank you so much in advance.

    Hi adayzdone,
    thanks for your reply but I am not a Gmail user, I am using Strato. Therefore the handy Google Scripts won't help.
    I need a script in Apple, that only copies or moves the mail from my inbox to a local mailbox once they are past the 25 days line. Within those 25 day I have deleted all unnessecary mails, marks or higlighted the important once and know only the remaining once are worth keeping. But I still want them to be available in Mail and none of those archiving solutions that create pdfs or import them into their one database will help.

  • HELP!! Need a script for DUMMIES for a simple login/register feature

    I know very little html and am more of a designer, but my programmer has let me me down so I have to take this on myself.
    I want to include a very common feature where visitors register to my site, so I can collect some information and contact details from them, then they can access hidden pages of the site and receive some exclusive download links by email, allowing them to download content (only once). They can then login each time they visit with a userID or email and a password.
    My host supports almost every scripting language.
    I've been told PHP is what I need, but I know absolutley nothing about it. My host said there is templates for such a simple script out there on the net for free but I'm being passed from pillar to post with scripts for much more complicated and rarer scripts than I need.
    Hope you can help.
    LB

    Do I need to create a database to store users info first?
    Yes. Without a database, it won't work.
    Is this a basic html page with a table with lots and lots or rows and columns for each of the details they have entered (e.g Name, DOB, Address.....etc)??
    No, I'm afraid not. Dreamweaver's PHP server behaviors work in conjunction with the MySQL database. If your hosting company supports PHP, you will almost certainly have access to a MySQL database and phpMyAdmin, a web-based program that helps create and maintain MySQL databases. As a minimum, your users table in the database will need three columns:
    user_id (a number that acts as the primary key for each record)
    username
    password
    You can also have other columns to store other details, such as first name, family name, and any other information that you want to store.
    If you have never done any PHP or database development before, this is going to be a major undertaking for you. The Adobe Developer Centre has some articles that show you how to set up a PHP/MySQL testing environment (http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html) and create your first database-driven pages (http://www.adobe.com/devnet/dreamweaver/articles/php_event_registration.html). The Dreamweaver help files also step you through the process of creating a login system (http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WScbb6b82af5544594822510a94ae8d65-7883a .html).
    Working with PHP/MySQL isn't difficult, but there's a lot to absorb. If you're going to start working with login systems and other database-driven features, you might find it useful to take a look at one of my books about Dreamweaver and PHP. I have different editions for Dreamweaver 8, CS3, and CS4. You can find more details at my website (http://foundationphp.com/).
    Good luck.

  • Help... Need a script for DVD@CCESS (DVDSP 4.0.3)

    Can anyone help me with a scripting question:
    I need a script that will allow me to search a windows pc for installed or missing DVD@CCESS, - promt for installation, and then install, - or pass on to play the DVD from first play. Obviously DVD@CCESS will be on the DVD in a directory ([email protected])
    Thank you....
    Verny

    Verny - welcome to the discussions.
    The person who I know has done this is Alex Alexzander. You can contact him over at http://www.editorsbin.com
    He is changing the site at the moment and may not have that particular tutorial online, but he definitely wrote it and created the scripts needed to get it working.

  • Need a Script for Removing User Profiles in Windows 7

    I am in need of a script that will allow me to remotely delete user profiles from multiple computers. I am an IT Admin over around 15-20 computers that are publicly used by many different people each day, and at least once a month we have to go into each
    computer individually..my computer, properties, profiles and delete them one by one. This is growing very tedious due to manpower and the number of computers we have to do this on. 
    I have absolutely zero knowledge in the scripting department so could somebody point me in the right direction on this? I would like to have a script that i can just run once a month or so and say "delete all profiles from computers x y and z that are
    over a few months old." Is this possible? Thanks in advance!

    Try this link - http://superuser.com/questions/643417/delete-user-profile-from-command-line-windows-7
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/7663ea51-9f4e-4fd7-9946-e16e65c3ed9d/remove-windows-7-user-profiles-via-powershell-script-initiated-on-logoff?forum=ITCG
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Need shell Script for Invalid object

    Hi All,
    Can anyone post me a script for checking the invalid objects in 10g/11g database.
    The should should check for invalid objects,recompile and sent the email .

    I could think fo something like below(And applicable to multiple SID's running on the server) and i tested it it works(bash shell script)
    Assumptions:
    You have environmental file to set ORACLE_HOME ORACLE_SID
    say in this example
    /oracle/env
    ls -ltr
    env_ORCL.sh
    env_TEST.sh
    env_HR.sh
    You also have uuencode rpm installed to use along with mailx command(or else get it installed not big deal). uuencode is required
    to send as mail attachment
    1)I have kept SID list in file (/oracle/INVALID directory for eg)
    cat SID.lst
    ORCL
    TEST
    HR
    If you have lot of SID's you can populate the file using ( ps -ef|grep -i pmon | grep -v grep | awk '{print$9}' | sed 's/ora_pmon_//g' > SID.lst)
    2) Here are the list of SQL's(/oracle/INVALID directory
    cat invalid_pre.sql (For listing invalid objects per instance)
    set echo off
    set heading off
    set time off
    set timing off
    spool invalid.log append
    break on instance_name
    select instance_name , a.*
    from (select owner,count(*) from dba_objects where status='INVALID' group by owner) a, v$instance;
    spool off
    exit;
    cat invalid_compile.sql--to recompile invalid objects
    set echo off
    set termout off
    set feedback off
    @?/rdbms/admin/utlrp.sql 4; (Note you change degree 4 or 8 accordingly)
    exit;
    cat invalid_post.sql--to list post recompilation
    set echo off
    set heading off
    set time off
    set timing off
    spool invalid_post.log append
    break on instance_name
    select instance_name , a.*
    from (select owner,count(*) from dba_objects where status='INVALID' group by owner) a, v$instance;
    spool off
    exit;
    3)here is the shell script
    cat invalid.sh
    for i in `cat SID11g.lst`
    do
    cd /oracle/env/
    source env_$i.sh
    cd /oracle/INVALID
    sqlplus "/as sysdba" @invalid_pre.sql
    sqlplus "/as sysdba" @invalid_compile.sql
    sqlplus "/as sysdba" @invalid_post.sql
    done
    uuencode invalid.log invalid.log | mailx -s "Invalid" <your mail id>
    uuencode invalid_post.log invalid_post.log | mailx -s "Invalid" <your mail id>
    4) Finally run the shell script, hopefully you should receive email :-)
    I have tested it on bash
    ./invalid.sh
    Once tested you can schedule it in cron
    Edited by: vreddy on Jul 19, 2012 9:57 AM

Maybe you are looking for

  • Images are not reflecting in Multi Level Menu

    Hi, i am facing some problem in the Multi Level Menu. i have created a book in my portal application. For the "Main Page Book" i am setting "Multi Level Menu" For the Book with in the menu, i am setting "No Navigation"(to avoid the sub pages displayi

  • How to use external libraries in EP

    Hi! I am with dificulties in utilizing an external ".jar" file in a Portal application (JSPDynPage). The ".jar" file is the JSTL 1.0 version. It compiles and is exported correctly (SNDS to Portal), but give me an error at runtime (NullPointerExceptio

  • Problem in message creation

    Hello! We had problems in a database of SAP Solution Maanger system. And at this time, service messages were not normally created: ABA messages were created, the number of service messages had been generated and some ruules were executed for this pur

  • How to define a default size to JToolBar's Buttons?

    The size of the buttons of my JToolBar is relative to the text I write on them, I want all buttons to have the same default size.. I'm searching on google, on forums, on documentation.. but still don�t find nothing.. Any idea?

  • Flicker Removal in Premiere Elements 12

    The  option for Flicker Removal only allows you to add Flicker Removal to one clip at a time.  This is very time consuming if you have many clips.  Is there anyway to highlight all of the clips at the same time?