Correlating image size with DIV size

Dreamweaver gives me the option called Draw AP DIV.
(I am guessing this means to define the boundaries of an absolutely positioned Div)
When inserting an image into a DIV that is created in this manner, is there a way to constrain the size of the image
to equal the boundaries of the drawn DIV?

Repost, Urgent, please help

Similar Messages

  • A script to increase the minimum canvas size? (Like Fit Image, but with just my canvas)

    For starters to be clear, I'm looking to manipulate canvas size. Not image size.
    I want to create a script to automatically increase the width and height of my canvas in Photoshop to a specific size when necessary. I only want this to happen if my canvas is less than that specified size. For example: Let's say my canvas size is 300x250. I want the canvas to be at LEAST 600x600. If I run my action it will increase the canvas size to 600x600 for me. If I run this same script on an image where the canvas size is already 700x700, it won't do anything at all to it because both the width and height are equal to or greater than my target size.
    It would also need to work with the height and width on an individual basis. If my image is 400x800, the action would increase my width from 400 to 600, but it would leave the height of 800 alone. So the final canvas size will end up being 600x800.
    It's kind of like the "Fit Image" option in Photoshop, but I only want to manipulate my canvas size, NOT my image size.

    It is possible.
    But if you hope that the dialog remembers the last settings that would require storing those values (which could be done with a txt-file at some pre-defined location), but it would make the Script a bit more complicated.
    // resize canvas in either direction if it is below a defined minimum;
    // 2011; use it at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
    // dialog;
    var dlg = new Window("dialog", "increase width and height if under", [500,300,750,380]);
    // filter for checking if entry is numeric, thanks to xbytor;
    numberKeystrokeFilter = function() {
              if (this.text.match(/[^\-\.\d]/)) {
                        this.text = this.text.replace(/[^\d]/g, "")
              if (Number(this.text <= 0)) {this.text = 5};
              this.text = Math.round(Number(this.text));
    // fields for entry;
    dlg.hor = dlg.add("edittext", [14,15,88,35], "600", {multiline:false});
    dlg.hor.onChange = numberKeystrokeFilter;
    dlg.horText = dlg.add("statictext", [93,15,118,35], "px", {multiline:false});
    dlg.ver = dlg.add("edittext", [129,15,210,35], "600", {multiline:false});
    dlg.ver.onChange = numberKeystrokeFilter;
    dlg.verText = dlg.add("statictext", [215,15,240,35], "px", {multiline:false});
    dlg.hor.active = true;
    // ok- and cancel-button;
    dlg.buildBtn = dlg.add("button", [13,45,118,68], "OK", {name:"ok"});
    dlg.cancelBtn = dlg.add("button", [128,45,240,68], "Cancel", {name:"cancel"});
    // show dialog;
    dlg.center();
    // show dialog;
    var myReturn = dlg.show ();
    // proceed if ok-ed;
    if (myReturn == 1) {
    var myDocument = app.activeDocument;
    // set to pixels;
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    // set the minimum values;
    var minWidth = Number(dlg.hor.text);
    var minHeight = Number(dlg.ver.text);
    // get current ones;
    var theWidth = myDocument.width;
    var theHeight = myDocument.height;
    // resize canvas;
    myDocument.resizeCanvas(Math.max(minWidth, theWidth), Math.max(minHeight, theHeight), AnchorPosition.MIDDLECENTER);
    // reset;
    app.preferences.rulerUnits = originalRulerUnits;

  • Since downloading the 2013 Keynote upgrade, the slide image size on handouts with 3 slides per page option is very small. Is there a way to make the slide size larger while still keeping 3 slides per page   lines?

    With the new Keynote upgrade (version 6.1), the slide image size on handouts is very small, which makes it difficult to read slide content when compiling lecture notes for students. Is there a way to make the slide size larger while still keeping to a format of 3 slides per page with lines?

    A number of posts have reported the same issue, two workarounds:
    1
    check the paper handling options or equivalent in your print dialogue box and set to scale to fit

    in the Keynote option, in the dropdown menu in the Print section, select Individual Slides
    then choose Layout, and set the number of pages, when printed you will have multiple pages on a single sheet.

  • Why jpeg file exported from Aperture with 300 dpi's it opens with 72 dpi's on PS ( image size)? I've tried several combinations and all give different results. And I am confused on what is the best workflow for me.

    Ok.
    My workflow is
    RAW > Aperture Library > export jpeg high resolution 300 dpi's > one file on PS > edit > Save us jpeg. The I realised that files from PS were being save in a smaller size from the ones exported form Aperture. That is when I went o see <image size> on PS and files were with 72.
    Since ten I've trying different things
    1. Aperture > export as PSD > open on PS > edit > Save us jpeg = small file (around 15 MB)
    2. Aperture > export as jpeg high resolution 300 dpi's > open on PS > CHANGE dpi's to 300 on <image size> edit > Save us jpeg = big file (Huge, actually)
    What am I doing wrong? Would someone give me guidance and tell me what is the best workflow, considering I edit photos to deliver to my clients and I shall give them 300 dpi's.
    Thank you

    This is a known Aperture issue: Problem with Aperture 3.6 preset exports. | Apple Support Communities
    Benjamin

  • Problems with image sizes

    There seems to be lots of confusion about image sizes and Apple iBookstore Support  et al simply state that images should not be greater than 2 megapixels.
    IBook Author Help > Photos and other images,  states:-
    Important:  When you export your book for distribution outside the iBookstore, images are automatically scaled to a width of 2048 pixels, which is optimized for iPad with Retina display. Readers can view these images on other iPad models, but the viewing experience might be slower. You can improve the viewing experience on iPad models without Retina display by using images no wider than 1024 pixels.
    http://support.apple.com/kb/HT5117 states:-
    Publishing to the iBookstore:
    If most of your readers will be using the original iPad, scale down images in Interactive Image widgets to a width of 2048 pixels and all other images to a width of 1024 pixels.
    Previewing on iPad, or exporting for distribution outside the iBookstore:
    You can improve the viewing experience on iPad models without Retina display by scaling down images in Interactive Image widgets to a width of 2048 pixels and all other images to a width of 1024 pixels.iBA help deals with exporting  books OUTSIDE the store and simply advises that you can  help none Retina viewers by having a smaller image.  No help at all really - but suggests that the use of images 2048 is OK. that would indicate 2048 x 1536 or 1496. No mention of what resolution should be used.
    iBookstore support basically reapeat this. 
    So  to ease life in getting books accepted,  should we all use 1024 x 768 @72ppi for iPad & iPad 2 and now iPad mini. ????
    and use 2048 x 1536 @ ??   for The New iPad Retina display!
    Both fail to mention HOW the books author would know which iPad a buyer/viewer will be using.  Also if "we" only use 1024 x 768, those with Retina do not get an "enhanced viewing experience".
    For a company that deals entirely with  devices that use logical programming - there seems very little logic  applied when it comes to dealing with a section of their business which by issueing iBA Free and wacking 30% of the top, must be adding to the $billions already stacked away in a corner somewhere.
    iBA makes eBooks for use/display on iPads only. For months now since iBA  became available, one of the  most common requests on this forum is help with....image sizes.
    It seems reasonable  now when Retina is in use and eventually the iPad and iPad 2 will fade away - ditto the new none retina mini and ALL Apple devices and  computers will be retina. So why not plan now!  Surely images in shoudl be geared to deal with Retina displays. IF  Apple would  take that line maybe  "Support" would have less work dealing with requests for help about images IF Apple accept that the next Stephen King may not have a clue how to deal with adjusting images sizes and simply state the required dimentions.
    I make photo books and use 2048 x 1496 @150ppi - so far ten free books have gone into the store.
    The suggestion about  images  for retina display as "standard" as been  sent as feedback.

    For all those who are still confused by Apples image restrictions / requirements...
    In the new Template chooser after the recent updates is "Antique". This template has a Chapter background image ( the olde world print of sailing ships in blue litho print style ). This print when opened in PS is 2771 x 1506 @72ppi. 2771x1506=4,173,126 pixels.This implies  Apple supply a book which does not comply with its own requirements!
    Higher  image resolution applied to printed photo inmages, make the image sharper. If for example you wanted to print a wall poster 45inches  wide, the  image needs needs a higher resolution to cater for the size, BUT the same image used for a 45" poster will print 4.5" wide print on your own printer!
    iBA full page is deemed to be 1024 x 748. resolution from Apple is 72ppi. An image with those specifications will be OK in iPad & iPad 2 - but not so sharp on a Retina display especially if zoomed larger on screen
    Now it seems 2048 x 1496 - double the original image size is suggested for Retina.
    You  can change an image in PS i.e. 1024 x 748 and change resolution to 144. PS will double the pixel size as you change the resolution. OK, just change pixel sizes back to 1024 x 748 and reolution is now 144.
    That indicates a sharper image which will be suitable for retina display and in fact all current iPad models.
    Today my 11th photo book was notified as available  in the iBook Store, all my images were pre-formatted at 2048 x 1496 @ 150ppi.   ( 2048 x 1496 = 3.063,808 pixels!)
    During delivery there were no issues flagged and after delivery no tickets.
    So I suggest all those folk pondering images sizes follow my example, which  is now proved to be accepatble!
    One thing puzzles me though, I dont use all images as full page and  they can  be masked down to - say - 250 x 200.  Should  just  make an image to fit the size I  want to display ??

  • How can I know the output Image Size of any image with a variable

    I'm having problems with a filter I am writing because I can't enter the output image size(x and y) in a filter without doing it manually with a parameter

    yes, that is currently the only way, but we do realize that it is an issue and are working on solutions.
    thanks!

  • Working with image sizes/copy and paste

    I have two different jpeg files open in photoshop cs4, one is 72 ppi, 8 inches wide by 6 inches tall at 16.67% zoom. The other is about 60 inches wide by 45 inches tall, 72 ppi, at 100% zoom. I was wanting to take an element (a person) out of the 8x6 image and paste it into the 60x45 but when I do it's super small, smaller than I want it. I tried playing with the zoom and resolution but can't get two differing image sizes to match up in size. Can such a thing be done and if so, how do I do it? Thanks in advance

    jiyasa wrote:
    BTW, what is the ideal image file format for print production? I mainly use extra large JPEGs and punch in 300 for the overall resolution and so on.
    300 ppi at actual size is "default" standard for book and magazine print, unless you're specifically told otherwise.
    IOW, it boils down to pixel count again. Remember, resolution = pixels per inch. Think of ot as a simple equation, and like any such equation, you can calculate one if you have the two others (or let the Image Size dialog do it for you).
    Resolution without a physical print size is meaningless, an "empty" figure.
    As for file format, you can't go wrong with TIFF, lossless and cross-platform, and with support for anything you might conceivably want to put into the file. But jpeg is usually accepted in a pinch (e.g. if you have to mail them).

  • Help Needed With File/Image Size

    I need a quick way to find an images _dimensions and size in kb_ on a safari webpage without having to download the image.
    What I'd really like is to be able to right click on an image and have the dimensions and size in kb displayed. Either that, or use an app to do it.
    Right now I am using the Inspect Element tool in the right click menu to find an images dimensions, but it doesn't show size in kb anywhere that I can see, and it's kind of a pain working with all the drop down menus.
    Any help would be appreciated. Thanks!

    Activity window? I'm not sure what that is.
    Here's what I'm working with: http://i.imgur.com/vDwvk.jpg
    Opening an image in a new window shows the image size in pixels in the tab. (circled in the screenshot)
    I can see the same info using Web Inspector. (also circled in the screenshot)
    *I need a way to easily see both the image size in pixels and its size in kilobytes.*
    Thanks!

  • No "image size" option from pictures taken with front camera?

    When e-mailing a picture taken with the rear camera, I am prompted to choose an "image size." However, this option does not come up for any photo taken with the front camera.
    Is this a bug or how it is supposed to function, or am I doing something wrong?
    "Prompt for email image resize" is enabled in Hub and under Display and Actions for every e-mail account. I have 10.3.1.841 on the Classic.

    I understand what you are trying to say, however I'm not sure you understand what others have been trying to tell you.
    Yes, the iPhone comes with a camera, and it comes with a standard camera application. This is a resident Apple application. You downloaded a new camera "application", not a new camera. This is a 3rd party application that uses the installed camera to operate. When trying to use Facebook, another 3rd party application, and you want to take a picture, it uses the Apple camera interface, because it cannot interact with another 3rd party application. In other words, as many have said, two third party applications cannot run together, or interact together, i.e. Facebook and your camera application.
    Does that make sense now? While you can use the downloaded application to take pictures versus the Apple camera application, you cannot change the API for another application to use another 3rd party application for a task. I hopw this explanation works for you.

  • Can you lock aspect ratio, define border and image size with automated BatchCropStraighten?

    Hello everybody,
    I need to crop and straighten a load of scanned rectangular stamps that will start as a single scanned image, and I want to lock the aspect ratio to 1:1, define the top border size (such that the the borders on the sides will be bigger than those top and bottom) and specify the output image size.
    Does anybody know if this is possible using the automates BatchCropStraighten function?
    Thanks,
    Paul

    paulsinyard wrote:
    Does anybody know if this is possible using the automates BatchCropStraighten function?
    I know of no BatchCropStraighten feature in Photoshop.  Photoshop has a Plugin CropPhotosAuto that you access through menu File>Automate>Crop and Straighten Photos.
    On my windows system its "C:\Program Files\Adobe\Adobe Photoshop CC 2014\Required\Plug-Ins\Automate\CropPhotosAuto.8li". This plug-in is designed to help you scan several image with a single scan. All the plug-in does is to look at the current active document looking for what appears to be a scanned image and to create an additional document that contain a straighten version of the image the size of the image. No files are created nothing is saved only one document is processed even if you had several scans open in Photoshop.  When the Plug-in ends the current active document is the last document the plugin created.
    You may be able to program a Photoshop script that would fit the create documents to some size then add canvas that would make all the documents have the same Aspect ratio and size. The borders added would be equally sizes on opposite sides top and bottom the same left and right the same.  However the image aspect ration inside the borders may vary.
    I created a fake scan with five simulated images. Not straight and not all rectangles  and duped the document so two would be open the used File>Automate>Crop and Straighten Photos when the process finished I spread out the document so you could see all that are open in this screen capture.

  • How to make Image/size/resolution agree with metadata resolution?

    After scanning the help file a bit and searching thru this forum a bit with `metadata resolution' as search criteria, I'm still pretty confused about how it is supposed to work.. I may have never actually found the right part of the help file.
    Cutting to the chase: How can I make the resolution reported by the metadata tab for resolution agree with what is reported inside photoshop at Image/size resolution.  I didn't see any way to set how res is reported in bridge.
    I see many pictures reported in metadata as 72 ppi for resolution and  reported in photoshop as 200 pixel/inch
    They do BOTH mean pixels per inch right?  If so, or really even if they don't how can I get the two reports to show the same resolution?
    There are too many processes that depend on knowing res in advance of opening a file for that to be so far divergent.

    Jingshu Li wrote:
    Some JPG or Tiff with Camera raw settings will be opened in ACR firstly when you double click them. In ACR workflow option (the bottom in the ACR dialog) the resolution value isn’t same with that in Bridge (metadata panel). If you go ahead to open the image in PS by clicking ‘Open Image’ button in ACR dialog and then check the image size from Image -> Image Size in PS, the resolution will be same with ACR (actually it is changed by ACR).
    If disable ACR support for JPG and Tiff in Bridge (Open Camera Raw Preferences in Bridge and choose ‘Disable JPEG support’ or ‘Disable TIFF support’ for ‘JPEG and TIFF Handling’), JPG or TIFF files will be opened by PS directly and the resolution matches between Bridge and PS. I believe this is an ACR bug.
    So what file types are you using and if they’re opened by ACR firstly in your workflow?
    The files are *.jpg.   But I don't see where camera raw comes in.  These are common jpg files.  I'm opening them by double click in bridge.
    Any way I did disable jpg and tiff in the Camera Raw preferences as you suggested.  At Jpeg and tiff handling, both disabled. and restared bridge.
    However, I see no improvment.
    For example, a file reporting 72 ppi in bridge when opened in photoshop ... Images/size resolution reports 480 pixels/inch.
    There is obviously some kind of miss handling that has been done to these files for them to have such a high resolution.   I suspect they may have been handled at Walgreens or Walmart... or similar since I had something very similar happen to me once when I had a bunch of pictures developed at Walgreens and they cam back with resolutions like that, when I know the camera would have given them something way less.
    But I don't see how any of that should be effecting Bridges  inability to get the resolution right.
    Here is another example: some.jpg
    It appears that bridge is showing an unusually huge file size in inches, to account for the reported 72 ppi.
    Bridge:
    Size: ...............1.14mb
    Dimensions:.....1496x1064
    Dimensions in
    inches ............20.8x26.7
    Resolution: .....72 ppi
    ===========================
    Photoshop:
    pixels
    Width 1496
    height 2064
    Document size
    inches
    width  4.987
    height 6.88
    Resolution 300
    Do you have further suggestions?

  • My screen opened, and with every click the page (letters/images) got bigger. I can not get it to return to normal image size. I have to use the slide bar to read across the page. What do i do to correct it back to normal size???

    Question
    My screen opened, and with every click the page (letters/images) got bigger. I can not get it to return to normal image size. I have to use the slide bar to read across the page. What do i do to correct it back to normal size???

    Hi jholzworth,
    It sounds like you might have accidentally hit the zoom button. Try hitting ''CTRL + 0'' to return it to normal size. Just so you are aware, ''CTRL'' and ''+'' will zoom in and ''CTRL'' and ''-'' will zoom out.
    Hopefully this helps!

  • Having trouble with image size on new HP2311x display with 4 year old MacBook. Image too small. Do I have to stay in mirror mode? I have messed with OSD and Image Control menus on display and have gotten nowhere. Help?

    Have just installed new HP 2311x display withe 4 year old MacBook. VGA cable. In mirror mode, at high resolution of 1920x1080, image size on HP display is too small. How can I get it to fill screen? If not in mirror mode, the display looks good, only I can't get the top menu bar (tried to drag it) nor the rest of the desktop. Help?

    Have just installed new HP 2311x display withe 4 year old MacBook. VGA cable. In mirror mode, at high resolution of 1920x1080, image size on HP display is too small. How can I get it to fill screen? If not in mirror mode, the display looks good, only I can't get the top menu bar (tried to drag it) nor the rest of the desktop. Help?

  • After installing 3.6, Firefox's screen image is drasticallay rreduced, how do I get bact the screen image size that I had with previous Firefox?

    I installed Firefox 3.6 and when I restarted the program the display image size was approximately 2/3 the size of the image provided by the previous version of Firefox.I had to zoom-in 5 times before I could read the text. How can I recover the screen settings that I had with the previous version of Firefox or how can I set new defults for screen image size under Firefox 3.6?
    == This happened ==
    Every time Firefox opened
    == After installing Firefox 3.6

    Hello Michael.
    Hopefully this support article is what you need:
    https://support.mozilla.com/en-US/kb/Firefox+will+not+start
    In any case, it's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and themes and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.
    If the problem is not disappears when all add-ons are disabled, please tell me, so we can work from there. Please have no fear of following my instructions to the line, as all can be easily undone.
    Also, if you want to use an older version of Firefox, please use Firefox 3.5.11. Only versions 3.5.11 and 3.6.8 are supported, and both contain all the latest security fixes. Using any other version is unsafe and not recommended.

  • Maximum image size with createImage() in applet

    hi,
    I am making a simple Horizontal scrolling stocks ticker. I made an offscreen image with all the companies,prices etc on the image and just change the x position of the image. My problem is that when the data increases the applet fails to create the offscreen image.Giving the following error:
    com.ms.com.ComFailException: (0x80004005) Unspecified error
    at com/ms/awt/peer/INativeImage.create (INativeImage.java)
    at com/ms/awt/image/ImageRepresentation.offscreenInit (ImageRepresentation.java)
    at com/ms/awt/image/Image.<init> (Image.java)
    at com/ms/awt/ImageX.<init> (ImageX.java)
    at com/ms/awt/WComponentPeer.createImage (WComponentPeer.java)
    at java/awt/Component.createImage (Component.java)
    at ticker.init (ticker.java:97)
    at com/ms/applet/AppletPanel.securedCall0 (AppletPanel.java)
    at com/ms/applet/AppletPanel.securedCall (AppletPanel.java)
    at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
    at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
    at com/ms/applet/AppletPanel.run (AppletPanel.java)
    at java/lang/Thread.run (Thread.java)
    When the image width goes above 32767 this error props up. Also even if the image size is less than 32767, while scrolling if mouse or any other window comes over the applet the whole applet starts behaving funny i.e. the image scrolling on it disappears or gets converted into a rainbow.
    Please advise . Any help/comment is welcome. Thanx in advance .

    I'm having the same problem, did you ever find a solution for this?

Maybe you are looking for

  • Asset class Reports and the G/L accounts balances are not tallying

    Hi As per the G/L account (Recon) Furniture is showing 952428.18 and the furniture asset class report is showing 916186.25. Kindly tell me how to reconcile, the way to find out the differences. With regars Siva

  • Screen of my ipod touch blocked since he tried to save to icloud

    When I switched on my ipod touch this morning, a message came on the screen: "sauvegarde icloud, because you have not saved your content to icloud in the last 2 weeks, you have to do so. Therefore, your ipod has to be connected to a socket, be locked

  • SQL server is Running Very Slow

    hi, I used this following query for finding out how many connection are connected, it is showing that 70 connections,my ram is 16GB,  but still my sql server is running very slow. how can i increase my sql server speed. or how can i analyses that.I c

  • Won't let me reset child index

    I've got multiple images being loaded from an xml document and when they're created they add it to the stage and call a setIndex function to set it to 0. But when I try to the same object later on when they're called I get this compiler error: I mark

  • Windows Update not working on rebuilt RAID1 on Larger Drives -

    Recovered an image from 320 gig drives to 500 gig drives.  Everything worked fine except both Lenovo and Windows Updates did not work.  Subsequently noticed that this was also true on the 320s and it happened a day or two before I imaged it (them).