How to scale to fit Photoshop CS6

I work with a lot of texture layers, often the wrong size and dimensions. I do transform and manually resize. But is there a scale to fit command?In the Photoshop Paper Texture extension, you can see it does that automatically. If there isn't such a command, can anyone point me to an action I can use.
Thank you.
Max

No guessing needed of course there is. Layers are as easy to resize as documents is.  That is what "Transform" does in a script though its method name in script is resize. The resize values used are relative to current size percentage the anchor point defaults to the center but can be changed and the interpolation use is you interpolation preference which can be changed.
Javascript syntax
resize ([horizontal] [, vertical][, anchor]); // number number AnchorPosition
Resizes the layer to the specified dimensions (as a percentage of its current size) and places it in the specified position.
Here is a sample of how one might use it. You need to be careful if you have CS6 Adobe failed to update Photoshop scripting to support BicubicAutomatic and if you leave Adobe default interpolation preference set script will encounter a Photoshop internal error when you try to save that setting.
// Save interpolation settings the script will fail if CS6 and setting is bicubic automatic
var userResampleMethod = app.preferences.interpolation;
app.preferences.interpolation = ResampleMethod.BICUBIC; // resample interpolation bicubic
if (LWidth/LHeight<SWidth/SHeight) { // Smart Object layer Aspect Ratio less the Canvas area Aspect Ratio
   var percentageChange = ((SWidth/LWidth)*100); // Resize to canvas area width
   activeDocument.activeLayer.resize(percentageChange,percentageChange,AnchorPosition.MIDDLECENTER);
else {
   var percentageChange = ((SHeight/LHeight)*100); // resize to canvas area height
   activeDocument.activeLayer.resize(percentageChange,percentageChange,AnchorPosition.MIDDLECENTER);
app.preferences.interpolation = userResampleMethod; // Reset interpolation setting
Message was edited by: JJMack

Similar Messages

  • How do I delete Adobe Photoshop CS6 Trial from my MacMini?

    How do I delete Adobe Photoshop CS6 Trial from my Mac Mini? I was upgrading to Adobe Photoshop CS6 not extended. So now I have Adobe Photoshop CS5, CS6, and CS6 extended. My computer is running very slowly. Are all these programs large? Can I delete all but the CS6 and how do I keep the photos I've done in CS5 in CS6 if I want to delete the CS5?

    Your photos won't be affected by uninstalling anything.  Neither Photoshop nor Bridge keep, import or store any image files.  They are all wherever you installed them. (Unlike the crappy Apple iPhoto application, which hides your images from you inside the application package .)
    Two very important caveats:
    1.— Never drag any Adobe applications or their folders into the trash!  Always use the Adobe Uninstaller installed by default with each application.
    2.— The time to uninstall an older application is BEFORE installing newer versions of the application.  The reason for that is that the Adobe Uninstaller can and in all likelihood will damage later version installs.
    If you want to reclaim HD space, your best bet now is to uninstall all versions, including the most current one, then run the CSCleaner Tool, which you can search from and download for free from the Adobe downloads site, then Repair Permissions with Apple's Disk Utility, then re-install the latest and most current versions.  Finally, Repair Permissions with Apple's Disk Utility once again.
    Remember that Photoshop 14.x, which would have been "CS7", but now will be "CC", is scheduled to be released on June 17, less than two weeks from today,

  • How do I install my photoshop cs6 extened from the disc?

    How do i install my photoshop cs6 extened from the disc?

    if you install the photoshop trial it should be the extended version. 
    if you have a license for the extended version, the trial should activate to the extended version.
    if you have a license for the standard version, the extended trial should activate to the standard version.

  • How many computers does Adobe Photoshop CS6 extended Students and Teacher Edition be licensed on?

    I have Adobe Photoshop CS6 extended Students and Teacher Edition, but i wanted to know how many computers it can be licensed on?

    You can do licensed install on two systems same platform(Win or Mac). This depends for which platform you bought the SN for.
    Hope this answers your query.
    Regards,
    Ashutosh

  • How do I open a PhotoShop CS6 download with a .7z file extenstion

    Downloading, Installing, Setting Up downloaded Photoshop CS6 from adobe and now it's asking me how I want to open the file and gives me various options such as the store, paint, windows photo viewer etc?

    You need two files. One with a .exe extension and one with a .7z extension.
    Then you double click the .exe file and follow the prompts.

  • How do I get a Photoshop Cs6 upgrade to 3D please?

    I have just purchased the latest Photoshop Cs6 but I wasn't aware that there was another program
    Photoshop elements that also included 3D.
    I have tried to upgrade to the 3D package but the trial download for elements is the same
    as the Photoshop CS6 version I already have so I can't get it to work.
    Please can you advise me how to upgrade to get the 3D to work.
    And also on the price.
    Thanks

    Hello! There is no 3D in Photoshop Elements.
    3D is not available on windows XP, as explained in the last line of this FAQ: http://forums.adobe.com/thread/979969?tstart=0
    Also, you need to make sure that your videocard is supported, and that its display drivers are up to date.

  • How can I draw in Photoshop CS6 with a touchscreen?

    I recently got an Asus Q551L laptop with touchscreen and running on Windows 8.1 and cannot use the touchscreen to draw in Photoshop CS6. I can use it to choose a tool but when I drag my finger across a layer, it does not draw unless I start in the gray area surrounding the image. I have tested a few programs including Microsoft Paint and Illustrator CS6 and I can start drawing in the middle of the image like what I wanted; it's only Photoshop with this problem of not being able to draw unless I start at the edge. So how can I fix this? 

    Photoshop relies on the pressure sensitivity that is so popular with the Wacom tablets. This means that it ignores the capacitive pen when drawing. But seams to work fine for other features like accessing the UI buttons. I am not sure how this helps you since I do not know what pens will work on your screen. But maybe this will at least point you in the right direction.

  • Does anyone know how to install [was: use] photoshop cs6 on mac

    I just purchased Mac and I have the photoshop cs6 software that i had purchased for my other computer can some one please tell me how to install on my MAC

    Download and Installation Help -
    https://helpx.adobe.com/download-install.html
    If your other computer is not a Mac then you will need to request a platform swap, which will end your use of the software on the other machine.  You can swap languages/platforms for a latest version product if you follow the instructions at the following link:
    http://helpx.adobe.com/x-productkb/policy-pricing/order-product-platform-language-swap.htm l

  • How long does the Adobe photoshop cs6 traial version works

    I have been trying to download photoshop cs6, can I know how long the trial version on adobe assistant works? along with that where can I get some genuine sites to download latest version of the software?
    thankyou

    I believe it is 30 days. You can then purchase directly from Adobe and enter the serial number to activate it.

  • How I can licensed Adobe Photoshop CS6 13.1.2.0

    I hev a one program and this program is a auto licensed - this maybe is a pirated copy - how you can look my photoshop and tell me how I can licensed this copy?
    my CS6 is a
    Photoshop CS6 Portable by BALISTA

    Yes, there is. But if you use an anti-virus to check it, it will tell you that it's fine.

  • How can I download licensed Photoshop CS6 purchased in 2012?

    The download button on my Photoshop CS6 purchase (2012) history doesn't work, and never has.  My previous workaround was to download the trial software, then use my license code.  That option seems to have disappeared.  How can I download the licensed version of this software now?

    Use this method:
    Direct Download Links for Adobe Software
    Mylenium

  • How long does Adobe offer Photoshop CS6 recertification exams?

    I am studying to recertify as an Adobe Certified Expert in Photoshop CS6 (an an ACE Photoshop CS5).
    How long does Adobe offer the Photoshop CS6 recertification keeping the CS6 recertification available?
    Thanks.
    Franck

    Hi Franck,
    Please refer the link: http://training.adobe.com/certification/exams.html#p=1.
    Regards,
    Romit Sinha

  • How do I re-install Photoshop CS6 from Creative Cloud?

    Hi there, I have subscribed to Creative Cloud recently and upgraded all of my software from CS5. Everything was peachy until I decided to unistall CS4 on my machine and now when I launch Photoshop CS6 it tells me "One or more files in the Adobe Application Support folder, necessary for running Photoshop, are missing. Please run the Photoshop installer and re-install Photoshop." I tried to see if I could re-install from CC but there is no option to do this as my Photoshop CS6 was just updated this morning before I uninstalled CS4 and all of my problems seemingly arose. Incidently I also tried to open Photoshop in CS5 and I got the same error message.
    I really don't want to have to re-install CS4 to get CS6 working again : ( Surely there is another way around this? Has anyone else had this problem?
    Any advice would be greatly appreciated.

    Run the Creative Suite Cleaner Tool, then let AAM reinstall CS6/ reinstall CS5 yourself.
    Mylenium

  • How do I re-install Photoshop CS6 after doing a Windows 8.1 REFRESH?  Lightroom and Topaz installed great but not Photoshop

    I have my Photoshop CS6 Serial number and thought it would be easy to re-install software. Message says my serial number is VALID but not for this version of software.
    Any help with re-installing Adobe Photoshop CS6 on same computer after doing a Windows 8.1 REFRESH would be appreciated!
    Phillip Wattles - Bedford, TX

    The best for this would be Contact Customer Care  Chat or phone.
    While we as volunteers handle technical questions, we can't make a serial number work.
    I hope you have registered your software with Adobe, it should make this easier.
    Gene

  • How to save file in photoshop cs6 extended

    hi, i started using photoshop cs6 extended yesterday. i have no problem on tools but i have problem on saving my files in photoshop cs6 extended. i've tried to save my files like being shown in tutorials but when i click on the 'save' or 'save as' button, nothing appear on my screen. i've searching the tutorials on youtube but i didn't find the solution to my problem.please, do help me.

    http://forums.adobe.com/thread/375816?tstart=0
    Could you please post a screenshot with the pertinent Panels visible?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift/ctrl-alt-shift pressed while starting Photoshop after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)?

Maybe you are looking for

  • Down Payment clearing at the time of Goods Receipt

    Dear All, We have activated the setting "Configure Automatic clearing of Down Payments". We are entering down payment in PO and while processing Goods Receipt system is generating automatic down payment clearing document. The issue is the document po

  • Back up full?

    I've been using a WD 2TB backup disk via UBS or a long time and it's worked like a charm with Time Machine. I got a Time Capsule the other week cause I got fiber internet installed in my house and figured it would be good to have all Apple and then u

  • Final cut pro x - Title changes are not saved!

    Dear Sirs, I have a big project I am working on in Final cut pro x that contains about 300 subtitles (created with the basic title tool), and now when I make text changes to these titles, quit the program and open the project again those changes are

  • How to read list item and display Title and on click hyperlink as value by javascript /jquery

    on newform.aspx just above the top of cancel button I want to put 1 hyperlink "Help" but I want to do this by script/jquery by reading my configuration list where 1 column is TITLE and other is- URL in TITLE column will write "Help" and in URL column

  • Apple mail copy paste problem

    I sometimes have problems pasting text into an email using Apple Mail. Sometimes it pastes the copy somewhere other than the cursor insertion point. Sometimes, more recently, when I paste copy from Illustrator or Text Edit it places a png picture of