5 Replies Latest reply on Mar 3, 2016 7:45 PM by cslove36

    Can an image resize automatically to fit into a template?

    bcp1163

      Many (weaker) programs allow you to drag an image into a template and have it resize to fit into a specific area.  Can this be done in CS6?  For instance .... if you designed a 4x6 Christmas card template and it had a (place holder?) for a 2x2 photograph, and you dragged an image into this 2x2 area, can it resize automatically to "fill" just that 2x2 area?  This would result in some cropping of just the longest dimension, if the image inserted wasn't a square.

        • 1. Re: Can an image resize automatically to fit into a template?
          emil emil Level 4

          The  closest  feature I can think of in Photoshop is, to have the image you want to use in the clipboard by copying it first, then load the selection of the template area, and choose Edit > Paste Special > Paste Into (Shift + Ctrl + V). This will create unlocked mask and center the image within it but will not resize it to fit. then the image can be moved or resized manually within the mask to desired size and position.

          • 2. Re: Can an image resize automatically to fit into a template?
            bcp1163 Level 1

            It just seems that if these other programs make it so easy, that we should be able to create our own templates that would be easier to use in CS6.

            • 3. Re: Can an image resize automatically to fit into a template?
              emil emil Level 4

              Here's one way that can be considered as template usage.

              Create a layer with a flat color with the desired size of the place holder. Right click on the name of the layer in the Layers panel and choose Convert to Smart object.

               

              To fit an image into that place holder:

              Double click the icon of the smart object in the Layers panel and it will open a new window with the content of the placeholder. Select the Crop tool and click the Front Image button in its options bar under the main menu.

              Then go to the window with the image you want to use and drag the Crop tool to encompass the entire image. This will fit the longer side of the image to one of the sides of the place holder. Position the crop box as desired and if you like scale it in anyway you like on any portion of the image. Apply the crop tool and then drag the image with the move tool and holding Shift, and drop it in the window with the smart object's content. Save and close this window and the smart object will be updated with the new content.

               

              This workflow may be a few more steps than what you've seen in other programs but I doubt they will give you this level of control which is possible with the crop tool in Photoshop.

              • 4. Re: Can an image resize automatically to fit into a template?
                JJMack Most Valuable Participant

                It can be done with Photoshop Scripting.   Note when the inage has a diffenebt aspect ratio or different shape then the template the images is sized to fit and fill the template open and any excess is masked off.

                 

                I have a free download you can use.  In Photoshop version  CS2 through CS5 Below CS2 some required features are missing and there are bugs in CS6 scripting.

                 

                Photo Collage Toolkit 

                Photoshop scripting is powerful and I believe this package demonstrates this. The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.

                There are ten scripts in this package they provide the following functions:

                1. TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
                2. CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
                3. LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
                4. InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
                5. ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
                6. ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
                7. PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
                8. BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
                9. BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
                10. PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.

                 

                Documentation and Examples

                Download

                • 5. Re: Can an image resize automatically to fit into a template?
                  cslove36

                  Just downloaded this! Fantastic! Thank you so much!!