How to resize layer with a large image of the layer mask?

Hi all

How to resize the image on the layer mask?

* document - doc.width, doc.height

* mask - activeLayer.bounds

* and how to take the coordinates in the image with the mask, if the image is larger than the size of the document?

01.jpg

2014, use it at your own risk.

#target "photoshop - 70.032»

If (app.documents.length > 0) {}

Var ref = new ActionReference();

ref.putEnumerated (charIDToTypeID ("Lyr"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"));

var layerDesc = executeActionGet (ref);

var layerMaskEnabled = layerDesc.getBoolean (stringIDToTypeID ("userMaskEnabled"));

If (layerMaskEnabled == true) {}

// =======================================================

var idsetd = charIDToTypeID ("setd");

var desc4 = new ActionDescriptor();

var idnull = charIDToTypeID ("null");

var ref1 = new ActionReference();

var idLyr = charIDToTypeID ("Lyr");

var idOrdn = charIDToTypeID ('Ordn');

var idTrgt = charIDToTypeID ("Trgt");

Ref1.putEnumerated (idLyr, idOrdn, idTrgt);

Desc4.putReference (idnull, ref1);

idT var = charIDToTypeID ("T");

var desc5 = new ActionDescriptor();

var idUsrM = charIDToTypeID ("rocket");

Desc5.putBoolean (idUsrM, false);

var idLyr = charIDToTypeID ("Lyr");

Desc4.putObject (idLyr, idT, desc5);

executeAction (idsetd, desc4, DialogModes.NO);

};

Alert (app.activeDocument.activeLayer.bounds)

};

Tags: Photoshop

Similar Questions

  • How can I sync 2 sony AVCHD images from the camera on the "date" as a prelude and import it in first pro?

    I have 2 sony camera popular with the AVCHD file structure. The two cameras are the same. How can I sync 2 sony AVCHD images from the camera on the "date" as a prelude and import it in first pro? Im working with 6.0


    Now I see the date taken in the import screen until I click "ingest". When in the trash, this option is there, but no metadata in there. It is therefore impossible to import images from two cameras and have these sorted.


    How can I get this sorted out before, so I can export for the first?

    Thank you. Tom van den Dool

    Hi Tom,

    How can I sync 2 sony AVCHD images from the camera on the "date" as a prelude and import it in first pro? Im working with 6.0.

    Sorry, you can not do as a prelude. You can request a feature here: http://adobe.ly/feature_request

    Thank you

    Kevin

  • Newbie question, how to resize a DataGrid to always adjust to the content?

    Hello

    I don't know this is a question asked time and again one time so please forgive me if I go over old ground.

    I just discovered flex 4.5 on a week ago and I am absolutely amazed by the power it gives me and how it was easy to pick up... There is a problem, that I fight with however.

    How to resize to mx or datagrid to adjust the content of the sparks?

    I just used more traditional solutions (.net aspx) and I have the habit of (and quite like) the way that a datagrid or list control will resize itself automatically itself to adapt to ranks how it should display.

    I've accepted the fact that I need to place scrollbars on the external container so that the user can scroll down to see the content (I would like to apply dynamic resizing finally), however no matter what I do the items in the DataGrid in my flex application never seem to adjust the content.

    I looked around the internet and there seems to be a lot of people who say that it is possible, and a lot of the sample code provided for that matter, but many it seems relevant to flex 2/3 and doesn't seem to work in my situation.

    Any advice would be greatly appreciated.

    I found this in my search for another question. http://xposuredesign.NET/?p=68

  • How can I work with two icloud ID on the same pc?

    How can I work with two icloud ID on the same pc?

    Define "work".

    What exactly do you want to accomplish?

    You can use the iCloud Panel to connect to iCloud account and use a browser to go to icloud.com and sign in with another account.

  • How to create ePUB with full-size images/pages to adjust according to the device?

    Friendly greetings,

    I tried, for almost two months, to convert/create my 7 books that are printed in electronic books; with the first edition had to be Nook, with Kindle on the list. Unfortunately, I am still working on just get the first one published! And I could really use any assistance to get this figured out. My intention was to publish several weeks ago... now my despair must publish before the weather gets too hot and the children are outdoors most of the time... or at least not later than Easter. (: 0)

    First of all, my books are books of photo/poetry for children of all ages. They were all designed in Photoshop, where I also created images full size for the first eBook. I received the specifications of B & N for the different devices of Nook. In the assumption that it would be better to create the largest files, thus allowing smaller size devices to fit the page accordingly to fit and the most important would not encumber a smaller image, I size my pages to 1280px x 1920px at 72 dpi. (now I hear 150 is standard?)

    My text is included in the image that design is an image = a single page. I've included a version only the full text of the poem/story at the end for those who want to set the text or use a voice reader. I obviously all original, but for the publication they were all saved as jpg.

    After a fight and a lot of frustration, I managed to finish the manuscript for Barnes and Noble Nook press Manuscript Editor. My internet is molasses and so much of this has been done in the wee hours of the morning when the rest of the time zone is asleep. I had only a page with a problem, an additional empty line/space was irreparable. I published and it had been completely sloppy to be published, although the preview looked a-okay. Only on the upper left of each image/page 1/6 was visible in the corner of my laptop to PC or Nook of my Tablet Android App. So I desperately waited another 10 hours, hoping that no one would buy my book Meanwhile, so he could be removed from the sale.

    I downloaded a demo of InDesign CC, and after two weeks of not even being able to create a new single document for some reason any twisted, I bought a month membership. So far, I am not entirely convinced of this creative Cloud malarkey together, as much... that, like I said my internet is slow... it took me nearly 20 hours just to download the software. (It is really difficult to provide records, seriously?) After a cat and a phone call that I can, in theory, now use InDesign.

    I created a new Document for Digital Publishing to the above specifications (1280 x 1920 px). I did rectangle the size of the page placeholders and place one image per page. This usually inserted the image to 50% and I have to select 100%, and then move them if necessary to place.

    So my first question is: is it possible to place an image at 100% without having to do this step further resizing? Or is there another way to place the image in the size of the page without any of these other measures that would be too good.

    Well, after placing several pages/images I have also selected each and went to Options of Export Object and checking the rasterization of Custom and "resize to text Flow.  I then exported ePUB trial to see how it would look. On the PC and tablet in landscape mode it was far better than the other, but about oh 1/3 from the bottom of each page was cut. On the Tablet, I turned to portrait and voila full page. Woohoo! But alas, I don't want to limit it.

    is there something I am doing wrong? Did I miss a step or two somewhere so that the complete picture should appear on the page? I feel like I'm about to turn the page on this thing, but he's stuck in the one after that.

    I would greatly appreciate any insight, advice, help anyone can offer. I ran the gauntlet of Barnes and Noble... cough, cough... support and apparently I ask questions that cannot respond to any press corner rep and the forums out there have no idea about InDesign. It's almost like with all fantastic beautiful screens out there today nobody wants to picture books! How National Geographic?

    Thank you very kindly.

    In case it is necessary: my laptop using Window 7 64 bit Pro, InDesign CC is 64-bit and my 10.1 Android tablet. I can view the EPUB files in the corners for PC and Nook for Android. I also have a Kindle, LumiRead and various other applications on the tablet. I also have someone get a glimpse of the finished epub, if needed, on a Mac, iPad, or Android phone... even if I don't have not one of these. Don't know who has a corner I can look good. Thanks again.

    Q: is it possible to place an image at 100% without having to do this step further resizing?

    Here I think you want your images to fit within size full page automatically. For this, you can try the following steps:

    1. create a new doc

    2. menu Goto object, and then choose image mount options

    3. Select adjust automatically and fitting drowdown, select "adjust the content to the frame. See the screenshot below:

    After that, your images should adjust automatically in full page placeholder images. Please let me know if this does not work or if the problem you are experiencing is different and I did not understand your problem correctly.

    Kind regards

    POOJA

  • How to fade along with a background image.

    Does anyone have a suggestion on how better to fade along with a background image, which left and right side exactly blends in the background. In addition, it should be a very gradual fade.

    My image is a model of 18px 1900px X and it supposed to repeat on the y-axis. I did apply a layer mask, select from the left and the right 250 250px. Then I went to put smoth to 100% and the feather to 100px, and cut the fethers part to see the fade.  It worked well, but you are still able to see the visible lines on each display of color fade. The re is a better way to fade and other image or something else I can try to make the transition to choke?

    Thank you!

    Looks like bands, not feather. try to work in 16-bit...
    / G

  • Problem with large image as the background

    Hello

    I would like to add a picture as a background on my site. I would like this picture takes the entire width of my page but I need a space on top to my menu and another down.

    I tried using the slide show "basic", but once in the right size, I can't move my image in the selection.

    This is a site about photography, the position of my images is very important.

    Do you understand what I mean? Thanks for the help.

    It is indeed a challenge. When you use a background image as a complete browseror put a slide show in full screen, you are not in control of the exact framing more. Simply because you do not know the size of the browser window! That is why the Web page must be able to scale and crop your picture automatically. The only preparation you can take, is to edit your original to anticipate for a view centered when you use the slide show. And with a background image as browser fill, you have even more options, to fill or Mount the whole image and place the point of origin:

    Web design, you are not in control of everything...

    Get used to this principle and sing: Let it go for it!

  • How do I pan through a large image?

    Hello! I use first elements 13 on Win 8.1, 8 GB of RAM.

    I have a large image (2712 x 896, 96 DPI, jpeg-1.56 MB). I would like to add to my movie (1920 x 1080) and move it into the image. So I would like to than the video to begin to show the left side of the wide image and move slowly in to show the Center, then the right side of the image, more than 15 seconds or more.

    So I add the image on my calendar. I checked the image file is right-side-around the top outside Parliament, but by default, it appears rotated 90 degrees to the left forward. If I use the window effects applied to Rotate clockwise by 90 degrees. Then I click the Pan tool and Zoom. This tool shows my new image rotate 90 degrees to the left, so it is facing backwards in the video (see attached screencap). He wants pan to the bottom of the image to the top, and I see no option to rotate the image in the pan/zoom tool. Is it possible to orient my image the correct way for panning?

    I tried to set a framework for the development of pan in 'down' of the image (that is, the left side of the image, where I would like to begin the Pan) and a framework for development at the "top" of the image (i.e. the right side of the image). In this case, the preview window displays the image right-side-up top, but it always from a height from top to bottom. So, I see a lot of black (from the "border" well below the image), then the center of the image slides by (properly oriented, but moving up and down) and then I see more black of the border above the image. If PE is very confused about the image. :-)

    Snap5.gif

    First, you'll need to rotate the original photo using Photoshop Elements. Don't just apply the Rotate property in Premiere Elements or other settings won't make sense.

    You say that you have insured that the photo is correctly oriented outside of Premiere Elements, but simply turning it correctly in the Organizer does NOT change orientation or rotation of the image. You must change the original photo in Photoshop Elements.

    Once your original photo is correctly oriented, it's as simple as using keyframes in Motion or the tool panoramic and Zoom pan through it.

  • How to combine audio with a still image?

    I use Adobe first Pro CS5, on a Windows 7 computer. Rprp very new!

    Here is my current problem: I inserted a clip into the timeline, not related to audio and video, filled with video, I didn't. Now, I would like to put a fixed image in the video where used to be. I imported the image (a .psd) and scored the points of entry and do exactly match the audio clip. But I'm unable to add to the timeline without advance him videos.

    Can someone let me know what term, at least, I should look for a tutorial?

    Thank you!

    Just drag the rest of the video track.  You can then extend the clip to fill the empty space.

  • Is it possible to reduce a large image on the side Server (before serving the user)?

    One of the banes of my existence resizes the same image several times due to the it appears in a variety of contexts. For example, the main image in an article will appear larger it will be on the index page, where many teasers of the article are placed. There is the image that the Facebook "share" og. There... you get the idea.

    Same image, different contexts, a lot of resizing in Photoshop, a lot of files to follow... but I save on bandwidth.

    On the flip side, I can target the same image (large) and simply cut via traditional HTML (width/height) on the side of the browser, but which will result in the download of a file that is about 50-75% larger than what is actually needed. If the teaser of the first page displays a 1280px to 500px image, it's a huge (and potentially costly) waste of bandwidth.

    HOWEVER...

    If I could do the same SERVER side... in other words, tell the server to take only the pixels that he needs of the (large) image and serve only THOSE to the end user... so the same image could be used in every context, and only the necessary bandwidth is used.

    Is this feasible? If so, what is the process called officially, and where will begin to learn how do?

    Thank you!

    Sure. Just search the Web for ' php dynamic image resize "or change whichever way server, language of script you use.

  • Tile or cut large images in the tables? Completely outdated?

    I'm working through the tutorials on Lynda.com XHTML

    The instructor did a demo to decide a large image with sections that have animated connections. He slices the static parts and slices the lively parties and then combines them into a 3 x 3 slice slice table.

    He said "I'd rather do with tables, since that's what it was designed for.

    I know tables are outdated, but I don't know if it is in all respects. As if I was going to do a table of data, I would definitely use tables...

    I'm not sure when this video was made, but it is still in practice and a good practice?


    It then shows a similar demonstration to reconcile slices using CSS. Is - this too outdated? Are people still decide large images?

    Unlike print design where everything is static and immutable, web pages must be flexible and web accessible for all users, devices, and displays.

    Slices of the image have their positive and negative points.  Occasionally, you may need to create a flexible container that resizes the content.

    3 slices in a CSS image formatting ~

    http://ALT-Web.com/demos/image-slices-in-a-CSS-based-layout.shtml

    That said, you can add visual interest to web pages without a lot of images using CSS.

    design of web pages 2-image ~

    http://ALT-Web.com/templates/2-image-Web-design.shtml

    Finally, take a look at the CSS Zen Garden , where the power of CSS is demonstrated.

    Each page contains identical HTML tags but with very different styles.

    I hope that it will inspire you to move away from tables and use CSS for primary layouts.

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • How much space will be an average image of the system take?

    I am planning to buy an external hard drive, so I store my backup system on it my computer failure. I just want to know how much will be an image of the system average resumes if you have a few programs with a value of approximately 20 GB.

    PB

    If you make an overall picture of the partition to the OS, it will take the same amount as the OS partition before compression.  Compression can reduce the size of ~ 25%

    For example
    Your operating system partition is 40 GB image would be ~ 30 concerts.

  • How to resize avatar 180 pixels wide to accommodate the requirement of FB

    What is the best way to resize an avatar stock 180 pixels wide to accommodate the mandatory picture of FB?

    Thank you.

    Right click on the image and choose "open with > Paint.

    In the Paint toolbar, click resize.  Choose your new width in pixels.

    Click OK, and then save your image.

  • Panoramic image with text and images at the top of the poster image

    I tried to create a characteristic panoramic image where there is text on the top of the image of the poster with a picture. Below the poster image is panning. The problem is the text and the image that I put on the top of the poster image, does not appear when you use the panoramic image. How can I get it work?

    The problem was the image should be a jpeg file, it was a tif

  • LR5.5 cannot sync with LR Mobile images on the cloud

    I currently the problem that I can not Sync for le Adobe cloud a set of photos of my mobile on the iPad LR.


    It's only 61 photos from a shoot. For the 6 first images it works, other 61 parts not. With all the other images in the DB it works.
    J’ai images already imported quite new, I exported them as a jpg and re-imported back into the DB, as I well renowned JPG image. Et always the same: the first 6 are synchronized, the rest don't.

    Someone has a idea on what are le or what I could try?


    Michael

    Unfortunately, the newspaper has not demonstrated any error. Could you try to remove the sync.lrdata which normally triggers a refresh of the synchronization.

    You can find the file here.

    On Mac, it's to /Users/Library/Caches/Adobe/Lightroom/Sync Data / Sync.lrdata

    On the victory, it would be in C:\Users\\AppData\Local\Adobe\Lightroom\Caches\Sync Data\Sync.lrdata

    Let me know your results on this.

    Thank you

    Guido

Maybe you are looking for

  • Tecra M2 with or without WiFi?

    You just bought a 6 month old M2, and the seller stated it has built in WiFi, and there is a wireless switch on the front of the unit.However, cannot locate/activate a WiFi device on the computer! Any suggestions?

  • DeskJet 15 10: Hp Deskjet 1510

    Hi, I have a deskjet 1510, an i just installed it on a windows 8, it prints very well and I can share print with it, but for some reason, it is not the scanner. Tried the Hp doctor software, it stucks looking for driver. I reinstalled, updated the so

  • RL80, boot problem, the fan turns on, beeps continuously

    My RL80 turns on, the fan turns on, but issues continually and won't place.  I can't say if the HD is rotating upward. Date of the meeting 1/13.  RAM 4 GB, 500 G HD. Tried unplugging the battery and moving that the clear bios jumper.  Always do the s

  • Internet Explorer does not then that kept idle for awhile... How to fix?

    Original title: IE 8 sometimes does not open to the internet When I leave internet and try to open ie 8 there are times that the only way I can come back on is to restart my computer and then IE 8 works fine. I have mozilla firefox but my printer doe

  • AVI codecs in Windows Movie Maker version 6.0 (Build 6000)

    Windows Vista Edition Home PremiumI have worked on videos of music in WMM6.0 for a while now.  When I started a year ago, I could import the AVI formats without problem whatsoever.  Then one day, without any changes to the program or the video itself