Action/Script Photoshop to place the vertical line at the center of the Image

How to create an action (or a script) in Photoshop that creates a vertical line in the center of the page?

Here is an example of what I'm looking for.

001-002.jpg

First go to view > rulers, then right-click on the rule, and the percent change units.

(so the action registers per cent and will work on different size documents)

Then drag a vertical guide at the Center, drag one to the top of the image and the other down.

(the goal is so the online tool is aligned with the top and down and you know where is the center of the document)

For action, you can use the online tool and just save lines from the top of the image down along the center guide.

Tags: Photoshop

Similar Questions

  • Script Photoshop crop resizes the Image, do not trim

    Recently I tried to make a script that will find the center of the image and crop the desired width and height. I tried a few different things, but had no chance.

    One thing I tried was settomg the limits to the full document

    var bounds = [0,0,doc.width,doc.height];

    And then I try cultures by size with no angle, but the image is reduced instead to be cropped.

    doc.crop(bounds, undefined, desiredWidth, desiredHeight);

    I tried something for the center of the file, then set the dimensions to the left by half the desired width, up to half of the desired height, right half of the desired direction with, then down to half the height desired to make the area and then crops.

    var bounds = [(centerX-halfWidth),(centerY+halfHeight),(centerX+halfWidth),(centerY-halfHeight)]; 
    doc
    .crop(bounds);

    When I try to, I get a warning that I don't have enough RAM. I didn't know if this is just due to the laptop, or because I'm a silly request.

    Exactly how does the function of culture? And for the bounds property, do I have to pay the amount I want cropped by the dimensions here, or is it in the service of culture?

    Any help or information would be greatly appreciated.

    Limits up to left Bottrom right...  (x, y) if left up down right

    var orig_ruler_units = app.preferences.rulerUnits;

    app.preferences.rulerUnits = Units.PIXELS;

    var dir = new Folder ('~/Desktop/Test');

    var file = dir.getFiles ("*.jpg");

    for (var i = 0; i)< files.length;="" i++)="">

    var doc = app.open (files [i]);

    var desiredWidth = 842;

    var desiredHeight = 382;

    Half-width var = (desiredWidth/2);

    var halfHeight = (desiredHeight/2);

    centerX var = (doc.width/2);

    centerY var = (doc.height/2);

    var limit = [(centerX-halfWidth),(centerY+halfHeight),(centerX+halfWidth),(centerY-halfHeight)];

    var limit = [(centerX-halfWidth),(centerY-halfHeight), (centerX + halfWidth), (centerY + halfHeight)];

    doc. Crop (Bounds);

    var saveJPEG = new ExportOptionsSaveForWeb();

    saveJPEG.optimized = true;

    saveJPEG.quality = 50;

    saveJPEG.format = SaveDocumentType.JPEG;

    Path of folder for new photos

    var jpegFolder = new Folder ("~/Desktop/Test2");

    doc.exportDocument (jpegFolder, ExportType.SAVEFORWEB, saveJPEG);

    doc. Close (SaveOptions.DONOTSAVECHANGES);

    }

    app.preferences.rulerUnits = orig_ruler_units;

  • I try to install an air 320u sierra wireless card and I get an error message "could not access vb run time for custom action script. Cannot install the Manager of mobile broadband services.

    could not access vb run time for custom action script

    I try to install an air 320u sierra wireless card and I get an error message "could not access vb run time for custom action script.  Cannot install the Manager of mobile broadband services.  Any ideas?

    Hello

    I suggest you run the fixit and see if it helps:

    http://support.Microsoft.com/mats/Program_Install_and_Uninstall

    Also check out this link:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_programs/error-2738-could-not-access-VBScript-run-time-for/1a4499ae-8bc1-4534-9c6f-4d399ac70d9a

    It will be useful.

  • I have a picture in the current folder that I can use to place the image on a page, but it is absent, if I try to hyperlink to it.  How to solve that?

    I use thimbnails which has a link to the expanded images.  I just loaded several file assets intothe images that I can then open and place the image on a page.  However, when I try to hyperlink to this image, the image is not listed in the assets.  Any ideas as to why and how to fix this?

    You should find the forum for any product it is and post your questions there.

    Here is a link to a page that provides links to all of the Adobe forums...

    The Forum links page: https://forums.adobe.com/welcome

  • Why photoshop print return the image horizontally and how to fix it?

    Why photoshop print return the image horizontally and how to fix it?  I'm using CS5.

    I don't have CS5, but check for certain features in the box print dialog which allows to reverse or said something like the screenshot below:

  • Manually PLACE the images and other files in illustrator

    I see a tutorial of computer graphics by Nigel French, in this tutorial, when the option to place Mr. Nigel used to import images or other illustrator Illustrator files don't auto not put images at the centre but asks where to place the images or how large an area to be covered by this image or file.

    I'm looking at this topic, but not found anything relating to this topic, I don't know if it comes to plugin or illustrator function/feature.

    I hope that you will answer me,

    Here are pictures of serious

    Place 2.JPGplace 3.JPG

    You mean that the 'Gun place' with the symbol "1/1" inside? ".

    This was added in Illustrator CS6 (16.2.1 creative cloud version). If you have a lower version, it isn't here.

  • Trying to place the Image in sheared framework

    Hi all

    I'm trying to place an image in a sheared environment (see screenshot).

    However, when you place the image, the image is sheared to match the image.

    Is it possible to place the photo, so it is level/square, but fills the sheared framework.

    Thank you!

    After you have placed the image, you can correct the sheer by selecting the content and adjusting to 0

  • This script takes copies of the Image?

    RDBMS version: 11.2.0.3
    Platform: AIX 6.1

    Is the below mentioned the backup script taking copy of the image? What is the type of backup that is used in this script?
    recover copy of database with tag daily1 until time 'sysdate - 1';
    backup  incremental level 1 for recover of copy with tag daily1 database;
    backup as compressed backupset archivelog all not backed up;
    allocate channel for maintenance type disk;
    delete noprompt obsolete device type disk;
    release channel;
    -Another question on the above script
    If a data file is lost, would I be able to quickly restore, recover by using the following commands, if I use the above backup script?
    RMAN>sql ‘alter database datafile 7 offline’;
    RMAN>switch datafile 7 to copy;
    RMAN>recover datafile 7;
    RMAN>sql ‘alter database datafile 7 online’;

    This is the strategy of "Update backups gradually" what Oracle documents, but some of us are not comfortable with.

    See http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmbckba.htm#CHDEHBFF

    Why I'm not comfortable?
    (1) it causes the local backup on the database server - that is to say on the same SAN as the target database! (unless you connect two different San on database server)
    (2) it provides only 1 backup of the database to be available at any time (unless you do religiously the backups from this location on tape every day)
    (3) it offers the opportunity to move to the last backup, but not older backups (unless make you backups on tape and so make sure that you have backups of image on different days on different bands).

    It is too easy for a DBA / SA to not follow the three recommendations 'less' I added.

    Hemant K Collette

  • Place the image into the picture box and culture

    How to place an image in a simple picture box so I can crop and create a link? I don't ' want a slide show.

    Hello

    In the menu file-> Place. Go to your image and click in your page of muse. This places the image in the Muse. By default, all images are placed in the context of the Image. Double click on the image to select the image, you will get the options of transformation, expand and collapse according to your requirement to adjust the image in the Image. Check out the video below to see what

    http://TV.Adobe.com/watch/learn-Adobe-Muse-CC/working-with-images-in-Muse/

    Hope this helps

  • HELP file, place the Image but will not go

    I converted a Word doc to html

    to be able to file, place images in blocks of text in CS4.

    When I file, place the image (was be a jpeg file), it placed, I turned and it reduces, but then it would not move.

    How to become mobile if I apply skin?

    If you place the image in the text block, so it is called inserted graphics and it doesn´t suppose to move around with the mouse more, it flows with the text.

    It s like a giant letter in your text.

    If you want to place your images in floating frames, Don t put them inside text blocks, drop them outside your page first, and then move them to the right places with the mouse or use X / coordinated in Control Panel.

    If you have need of your images still flows with the text, use the object anchor instead of inserted graphs...

  • What is the best way to place the image (with legend) in a book?

    I am preparing a model for an encyclopedia project, the encyclopedia will be in addition to 10000 pages, so what is the best way to place the images (Photos, graphic illustration,... etc) with a legend?

    The problem that when I change the text; the image does not move with it, and when I place it in the text, it is difficult to control text flow.

    Please help

    I think so, but it can be a little weird, if the position of the anchor is on the second page of a two page spread. Really, I jumped in to suggest the image and the legend of consolidation before anchoring.

  • do action of photoshop which saves the file with the specific file name

    Is there a way to make a photoshop action that makes a SaveForWeb, but adds text in the name of the original file when recording?

    By example, if I open a file called "guard page", and I want the action of making SaveForWeb in JPEG format, can I save as "coverPageWEBVERSION"?

    Thank you for your time and help

    No it's something, for that you will need for scripting.

    They really should introduced some changes to the dialog box Save that allows additions or of the changes can be triggered again in the actions of file naming. But they never have.

    As a solution, bridge is a good tool to rename, because there is naming can be SAVED and quickly applied to groups of files. Done - on a mac it is not often known are also the scripts OS can do the same thing. There is a script called "rename the items' hidden somewhere. It is accessible through the control or right-click on a group of files and going through the submenu "automate".

  • Action Script code to restart the application air at regular intervals

    I hope that someone more versed in the action script 3 for air can help me!

    I have an app which I intend to display on the ipad at an exhibition. I'd be able to add code to the script action.
    who's going to restart the application after a certain period of time (say 5 minutes), if it has not interacted with that is the screen has not affected?

    I would be very grateful if someone could help me with this

    You can call a function when the idle time is 5 minutes and function reset everything that is appropriate for your application:

    var fiveMin:int = 5 * 60 * 1000;

    var: timer = new Timer(fiveMin,0);

    timer.addEventListener (TimerEvent.TIMER, resetAppF);

    Timer.Start ();

    this.addEventListener (MouseEvent.MOUSE_DOWN, resetTimerF);

    function resetTimerF(e:MouseEvent):void {}

    Timer.Reset ();

    Timer.Start ();

    }

    function resetAppF(e:TimerEvent):void {}

    do all reset your app

    }

  • Looking for Advanced Action script that will close the project

    Hi all

    It seems so simple but I can't seem to understand. Does anyone know of scripts that will cause the project to close when the user clicks a button? I have a project built in 6 Captivate that is set to close its 'End of the project' preferences and has multiple options of branches. I want to have a button to END that will close the entire project. The best that I got is simply apply an action of 'CONTINUE' on the last slide, but since this slide also includes a button that jumps to another branch, the blade simply crashes when you click the END button.

    Any thoughts?

    Krista

    You can use a 'Execute JavaScript' action with the script below:

    window.close();
    

    OR

    window.top.close();
    

    What script you use depends on how your LMS launches your course.  If it is in the main window, use Window.Close ().  If it is in a window child, then window.top.close ().  If you are not sure, then a little experience by downloading a course of a slide with two buttons.  The first button must execute Window.Close (); and the 2nd button must execute window.top.close ();.  When your LMS is launching the course, try the buttons and see one that works.

    F12 (Web Preview) will not give you a solid test since your LMS can launch your course differently... it's the kind of thing that should be tested in your LMS to be sure it works.

    Jim Leichliter

  • Script to place the image folder to 100%, one image per page?

    I'm looking for a script that can drop a folder of images in an ID doc to 100%, one page per image, with the name of the file image below. I tried various Board-contact scripts, but these scale images to fit the page. I need the images to be placed at 100%, so a customer can view them to their exact size.

    Any help would be much appreciated. Thank you!

    Try this,

    var doc = app.activeDocument;
    var w =doc.documentPreferences.pageWidth;
    var h = doc.documentPreferences.pageHeight;
    doc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
    var _folder = Folder.selectDialog("Select a folder");
    var _files = _folder.getFiles();
    
    for(var i =0;i<_files.length;i++)
    {
            if(_files[i] instanceof File)
            {
                    var image = doc.pages.item(-1).place(_files[i]);
                    var gb = image[0].parent.geometricBounds;
                    var imageheight = gb[2] - gb[0];
                    var imagewidth = gb[3] - gb[1];
                    image[0].parent.geometricBounds = [(h-imageheight)/2,(w-imagewidth)/2,(h-imageheight)/2+imageheight,(w-imagewidth)/2+imagewidth];
                    image[0].parent.fit(FitOptions.CONTENT_TO_FRAME)
                    doc.pages.add(LocationOptions.AT_END);
                }
        }
    doc.pages.item(-1).remove();
    

    Kind regards

    Cognet

Maybe you are looking for

  • ProBook 455 G2: updating Win 7 to win 8.1

    Hello. Recently became proud owner of HP Probook. It has Win 7 Professional 64 installed. But the information has indicated that "available through Windows 8.1 Pro download rights. This reads like the wrong way as my HP laptop came with Win 7 Pro alr

  • How to remove pre-installed games

    My computer running Vista when I bought it and I've since upgraded to Windows 7. HP is the manufacturer and it preinstalled several additional games in addition to the standard windows ones, as well as "My HP Game Console," who plays games. I would l

  • Cannot print search for hp photosmart D110 series [E1112D] for air

    Hello.  I have a MacBook Pro 15 with Lion, an iPad 2 and iPhone 4.  Recently I updated the HP driver and now I can't print - air or find it in settings - and I have trouble printing via Adobe PDF files.  The IPad support application does not show thi

  • MITM Dell idrac openssl vulnerability

    Hello Nessus allows us to analyze our network. My most recent scan reports several openssl vulnerabilitis with a cvss score of 9.3, (note: HIGH), see below for more details. Found products are affected: Reference Dell idrac6 1.97 Dell idrac7 1.57.57

  • PersistentStore.getPersistentObject returns the null value?

    I use a random key to retrieve a shape of the object PersistentStore persist is PersistentStore.getPersistentObject (KEY);. Works fine on the Simulator (OS 5), when I take the code signed to the device (BB OS 5.0 Bold 8900) For some reason, it return