Images won't center

I created my site in DW MX, and I've been previewing it within the program. My problem is that when I click on my thumbnail images to see if they're linked correctly, I pull up the main image, but it's aligned to the left instead of the center. All my thumbnails are this way - not just one. I open the HTML page and have verified that the images are centered there fine and saved. I have no idea why my images aren't centering (unless they're in a table).
Has someone else had this problem?

It would be better if you posted a link to your test page so we can see what you're trying to describe.  Answers are found in the CSS and HTML code.
Generally speaking, to center a web page you need three things.
1.  A valid document type,
2.  A width in pixels or percentages,
3.  margin-left and margin-right set to auto.
CSS code:
#wrapper {
width: 600px; /**adjust width as required**/
margin: 0 auto; /**centers in modern browsers**/
text-align: center; /**centers in older browsers**/
HTML code:
<div id="wrapper">
your content goes here
</div>
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com

Similar Messages

  • Screen images won't rotate when I rotate phone

    Screen images won't rotate when I rotate phone

    It depends on what image you are referring to. Not everything will rotate on the phone, the home screen being one of them. Check to see if Orientation lock is on, it will display a small lock and circular symbol near the battery icon. It is controlled in Control Center. Swipe upwards from the bottom of the screen and Orientation lock is the icon on the far right side of the top row. Tap to turn on or off, white is on, black is off.

  • Snow Leopard (10.6.8) Web Browser, App Store, iTunes Store image won't finish loading.

    Hello,
    I've recently upgraded from Leopard to Snow Leopard by clean installing. Once I upgraded to Snow Leopard (10.6.3) everything seemed to work perfectly except for the new keyboard that I purchased (requires upgrade to 10.6.8). So as I upgraded to 10.6.8 by "Software Update…".
    Once the update was completed and the machine restarted I've noticed when I opened opened couple of common sites in Safari (such as: Flickr, YouTube, and Amazon) and some of the images won't finish loading with a "?" in the middle where the image would be and browser assumes that the site was done loading. First I thought this was a refresh problem so I hit refresh on the browser but nothing really happened. I thought this was strange so I decided to download Google Chrome and Firefox to try it out as well. Same situation as well… Then I opened  the App Store and iTunes Store and the same things happened there as well. I'm assuming that all these images exists online so anything that access the web to load images will just crap out. One odd thing is that this problem don't seem to happen on any of the sites on Apple when I view it in the web browsers.
    I couldn't figure out the reason so I decided to reinstall Snow Leopard (10.6.3) again by cleaning out the hard drives as before. Once it finished installing I opened up iTunes Store and Safari and the images loads fine. So went ahead (crossing my fingers) to "Software Updates…" to 10.6.8 and the the problem happened again.
    I naively went ahead and tried to clean installing it again, thinking "Third time is the charm!" But same situation once I upgrade to 10.6.8. After the third time I let the browser sit there after it didn't load those images. I waited about five minutes and hit refresh and the images loaded. This happened the same with App Store and iTunes Store images as well. This is very odd because my interment connection hasn't been a changed before I upgraded to 10.6.8. Seems like browsers just cuts off the loading time of the whatever that's lagging instead on that site.
    Is there a solution in the preferences for this or is this some kind of a bug that I'm having with my OS disc or network card? I don't think this has nothing to do with my modem or my interment service because it was working fine before I upgraded to 10.6.8.

    I get that same problem too-you could try checking your network settings, release and renew your IP address, see if that helps. There is a tweaking menu you can get in Firefox that can help somewhat (google Firefox tweaks) but you'd have to raise the hood in FF and tinker a bit, but it does help. How much RAM do you have on your Mac Pro?, also update your Java and shockwave
    sorry I can't be of more help
    Jon B

  • DVD burned from a disk image won't work on different computers???

    Under the directions for how to burn a DVD from an disk image, the Apple Help document (http://docs.info.apple.com/article.html?artnum=93006) says this:
    "Note: When burning a disc from a disk image, the burned disc will have the same format as the disk image. If you need a disc that will work on different computers, burn the disc in the Finder."
    Does this mean that the DVDs that I am burning from the disk image won't be able to be played on a PC? a Mac other than mine? Neither? WHAT? I am planning to sell the DVDs of a workshop I present -- to people who may be playing them on PCs. Should I not be using this method (burning from a disk image) to burn my DVDs?
    PowerBook G4   Mac OS X (10.4.9)  

    Under the directions for how to burn a DVD from an
    disk image, the Apple Help document
    (http://docs.info.apple.com/article.html?artnum=93006)
    says this:
    "Note: When burning a disc from a disk image, the
    burned disc will have the same format as the disk
    image. If you need a disc that will work on different
    computers, burn the disc in the Finder."
    Does this mean that the DVDs that I am burning from
    the disk image won't be able to be played on a PC? a
    Mac other than mine? Neither? WHAT? I am planning to
    sell the DVDs of a workshop I present -- to people
    who may be playing them on PCs. Should I not be using
    this method (burning from a disk image) to burn my
    DVDs?
    Video DVDs are in the UDF format. The disk image you created is in the UDF format. When you use Disk Utility to burn the disk image to writable media, the new discs will be in UDF format and all will be well.
    You are doing things correctly.
    BTW, unless you have an external burner with lots of cooling, if you expect to use the burner in your Mac (which DOESN'T have lots of cooling), it's a good idea to pause between discs to allow the burner to cool down. (BTW, this comment is based on the reported results of several people in the forum. If you don't allow the cool down timer, you will start to create 'bad' discs. Also it is VERY important that you reduce the burn speed in Disk Utility to 4x or lower in order to create discs with maximum compatability with players. (You should see a way to change the speed in Disk Utility afterr you have inserted a disc.)
    F Shippey

  • CDs, DVDs, disk images won't appear in Sidebar or on Desktop

    Hello,
    Brand new iMac 2.16, right out of the box.
    CDs, DVDs, and Disk Images won't appear on the desktop or in the Sidebar. Nothing is shown over the horizontal gray line at the top of the sidebar, no Macintosh HD, Servers, etc. Disk Images are fully functional, ie Disk Utility recognizes and mounts them just fine.
    I checked Mac Help and followed its instructions:
    (1) In Finder preferences:Pane:General, all 'Show These Items on the Desktop' boxes are checked.
    (2) In Finder preferences:Pane:Sidebar, I checked all boxes under "Show These Items in the Sidebar. BUT these changes are NOT retained. After I close the Preferences, the Sidebar does not change. If I re-open the Sidebar preferences, the relevant boxes are now unchecked, as if I'd never done a thing.
    Restarting was the only way to fix the problem. Thereafter, the upper items in the Sidebar (Macintosh HD, external drives, iPod, CDs) sometimes SPONTANEOUSLY disappear. They still show up on the desktop, but tweaking the Sidebar preferences is again ineffective. Restarting is the only solution.
    Thank you for your help,
    Andy

    Hi Andy, Welcome to Apple's Users Help Users Forums.
    1] Everything elmac says is helpful and correct.
    2] An upgrade to 10.4.8 with the 10.4.8 Combo from blue apple / Mac OS Updates might fix your hiccup. If you don't want .8 then .7 combo.
    3] [OT] For some minor security issues, it is better to surf the internet in a standard account. If you are surfing in an admin account then here is how to switch and maintain prefs.
    Set up a new account in System Preferences / Accounts / +
    and make it have admin priviledges. Be sure to remember short name and password since you will be asked to "authenticate" when running in your standard account. This new account is often called "test" in these forums.
    Once that is done convert your regular account to standard.
    Good Luck, JP

  • How do I get images to automatically center in a picture box?

    How do I get images to automatically center in a picture box (e.g. place a picture box on a master page and set it so that any image placed inside will automatically center, but not scale)? This was a simple procedure in CS5 (set "Fitting Options" to 'center' by clicking on the center box in the 9-box centering tool) but seems to have disappeared in CS6/CC. Am I missing something?

    Hi and thanks. Actually, my problem is with setting the properties of the image frame to 'align center' before an image is placed, allowing me to place large numbers of images and having them automatically center instead of me centering each one manually. Even when I create an object style the frame will not hold any alignment settings and apply them to the image being placed (unless some manner of scaling has been chosen, which is not something I want). There are work-arounds I have used but it would be nice to be able to just put a picture box on a master page, set it to align it's contents to the center and just be done with it . Thanks though.

  • My Images won't open in Photoshop CS5 when I click on Edit in Lightroom - even though this option has been selected?  To edit in Photoshop I have to export image from Lightroom then import into Photoshop.  I have other programmes such as NIK and if I wish

    My Images won't open in Photoshop CS5 when I click on Edit in Lightroom - even though this option has been selected?  To edit in Photoshop I have to export image from Lightroom then import into Photoshop.  I have other programmes such as NIK and if I wish to edit in these everything works fine.

    Same here. I've never had trouble with this function before.
    It opens the Photoshop application with all the menus/windows, but it never opens the actual image I chose to work on.
    I'm on a Mac, using OS X Yosemite, 10.10.1  Lightroom is version 5.7  Photoshop is CS5, version 12.0.4
    FWIW, I also can't automate>Photomerge ... . Makes me think Photoshop, not Lightroom, is all wacky. I tried dumping PS preferences

  • Images won't show up in edit mode

    Okay this one really has me baffled.
    When I go into Aperture 3.6 and go to edit images in either split view or viewer mode, the images won't display.  I can see the thumbnail preview, but nothing else.
    Help!

    That's not good  .
    Many — perhaps most — UI issues are resolved by deleting your preferences.  Instructions are on the Apple Trouble-shooting page.  You might first simply reboot if you haven't already.  Let us know how it goes.

  • Disk images won't unmount/eject for admin user, DVDs & iDisk also affected

    This problem started when I was on Tiger, and seemed to follow me onto Leopard.
    It only affects me, the primary user on my Mac. *One other user on the computer; she also has admin level access and does not have any of these problems.*
    Here's the deal:
    *Once mounted, disk images won't eject/unmount.*
    - Dragging to the trash can doesn't work. The eject icon appears, but nothing happens.
    - Ctrl-click does not show Eject as an option when highlighting the mounted image.
    - CMD-E doesn't work
    - EJect doesn't appear as an option in the finder menu
    - Clicking on the Eject button in the sidebar of the Finder window doesn't work.
    - I've logged out, rebooted, repaired permission, and installed a new OS (clean install of 10.5, then did the import of my old user settings. Since I had the problem in Tiger, it's clear the problem followed me, but what the heck causes it?)
    *The only way to unmount/eject a disk image is to use the Disk Utility Program.*
    *DVDs also can only be ejected via Disk Utility*
    The iDisk connection can only be killed by opening Activity Monitor and killing the webdavfs_agent process.
    Would love some help. I've searched a lot and have a fair amount of folks with this problem, but no real solution.

    That'll work; however, then the OP has to reset all of his preferences. Easier would be to log into the newly created admin account, backup the bad account's folder, delete the bad account, selecting the save data option (which is stored in /Users/Deleted Users/ as a disk image), recreate the bad account using the same username/password combo, log out and back into the recreated original account. Mount the saved data dmg file in /Users/Deleted Users/, open the /Library/Preferences/ folder from the saved data, open the current /Users/restored account/Library/Preferences/ folder, and slowly copy plist files from the saved data folder to the current one. Log out and back in to ensure there's no conflict and things still work correctly. Resolving these kinds of conflicts is a laborious process, but not as laborious as resetting preferences or even remembering what you set weeks, months, or years ago.

  • Create images with dynamic width from 3 images each (left/center/right-part)

    Hello,
    i want to employ a script to create images of dynamic width for me. The whole process shall base on different sized sets of images, which contain a left-image, a right-image and a center-image. The desired width for the different cases shall be reached by duplicating the center-image between the two outer images and placing those images next to each other until the image extends to desired width.
    The layers importet into Photoshop shall be importet as smart-layers (which i already solved).
    Has anyone done something similar already and could give me some useful hints on that issue ?
    I have come up to this until now:
    #target Photoshop
    // =========================== Opens a new document and asks for dimensions ============================
    var myLayerset = File.openDialog ("Select the set of images you want to use!", "*.png",true)
    var myName = prompt("How do you want to call the document?"); // askes for document name
    var width =  prompt("Please insert width for the output here!", ""); // askes for desired width
    var height = prompt("Please insert height for the output here!", ""); //askes for desired height
    var docName = myName +".psd"
    var idMk = charIDToTypeID( "Mk  " );
        var desc3 = new ActionDescriptor();
        var idNw = charIDToTypeID( "Nw  " );
            var desc4 = new ActionDescriptor();
            var idNm = charIDToTypeID( "Nm  " );
            desc4.putString( idNm, """Wunschname""" );
            var idMd = charIDToTypeID( "Md  " );
            var idRGBM = charIDToTypeID( "RGBM" );
            desc4.putClass( idMd, idRGBM );
            var idWdth = charIDToTypeID( "Wdth" );
            var idRlt = charIDToTypeID( "#Rlt" );
            desc4.putUnitDouble( idWdth, idRlt, width );
            var idHght = charIDToTypeID( "Hght" );
            var idRlt = charIDToTypeID( "#Rlt" );
            desc4.putUnitDouble( idHght, idRlt, height );
            var idRslt = charIDToTypeID( "Rslt" );
            var idRsl = charIDToTypeID( "#Rsl" );
            desc4.putUnitDouble( idRslt, idRsl, 72.000000 );
            var idpixelScaleFactor = stringIDToTypeID( "pixelScaleFactor" );
            desc4.putDouble( idpixelScaleFactor, 1.000000 );
            var idFl = charIDToTypeID( "Fl  " );
            var idFl = charIDToTypeID( "Fl  " );
            var idTrns = charIDToTypeID( "Trns" );
            desc4.putEnumerated( idFl, idFl, idTrns );
            var idDpth = charIDToTypeID( "Dpth" );
            desc4.putInteger( idDpth, 8 );
            var idprofile = stringIDToTypeID( "profile" );
            desc4.putString( idprofile, """sRGB IEC61966-2.1""" );
        var idDcmn = charIDToTypeID( "Dcmn" );
        desc3.putObject( idNw, idDcmn, desc4 );
    executeAction( idMk, desc3, DialogModes.NO );
    //==============================================save document================================================
    var idsave = charIDToTypeID( "save" );
        var desc4 = new ActionDescriptor();
        var idAs = charIDToTypeID( "As  " );
            var desc5 = new ActionDescriptor();
            var idmaximizeCompatibility = stringIDToTypeID( "maximizeCompatibility" );
            desc5.putBoolean( idmaximizeCompatibility, true );
        var idPhtthree = charIDToTypeID( "Pht3" );
        desc4.putObject( idAs, idPhtthree, desc5 );
        var idIn = charIDToTypeID( "In  " );
        desc4.putPath( idIn, new File( "C:\\Users\\ target folder goes here" + docName ) );
        var idDocI = charIDToTypeID( "DocI" );
        desc4.putInteger( idDocI, 308 );
        var idsaveStage = stringIDToTypeID( "saveStage" );
        var idsaveStageType = stringIDToTypeID( "saveStageType" );
        var idsaveSucceeded = stringIDToTypeID( "saveSucceeded" );
        desc4.putEnumerated( idsaveStage, idsaveStageType, idsaveSucceeded );
    executeAction( idsave, desc4, DialogModes.NO );
    //========================================================================================================
    for (var i = 0; i < myLayerset.length; i++) {
    if (myLayerset[i] instanceof File && myLayerset[i].hidden == false) {
    // ======================================================= opens selected images as smart objects====================
    var idOpn = charIDToTypeID( "Opn " );
        var desc1 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
       desc1.putPath( idnull, myLayerset[i]);
        var idsmartObject = stringIDToTypeID( "smartObject" );
        desc1.putBoolean( idsmartObject, true );
    executeAction( idOpn, desc1, DialogModes.NO );
    //===================================duplicates opened layer into created document========================================
    var idDplc = charIDToTypeID( "Dplc" );
        var desc144 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref135 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref135.putEnumerated( idLyr, idOrdn, idTrgt );
        desc144.putReference( idnull, ref135 );
        var idT = charIDToTypeID( "T   " );
            var ref136 = new ActionReference();
            var idDcmn = charIDToTypeID( "Dcmn" );
            ref136.putName( idDcmn, docName); 
        desc144.putReference( idT, ref136 );
        var idVrsn = charIDToTypeID( "Vrsn" );
        desc144.putInteger( idVrsn, 5 );
    executeAction( idDplc, desc144, DialogModes.NO );
    // ======================================================= close tab without saving ==========
    var idCls = charIDToTypeID( "Cls " );
        var desc156 = new ActionDescriptor();
        var idSvng = charIDToTypeID( "Svng" );
        var idYsN = charIDToTypeID( "YsN " );
        var idN = charIDToTypeID( "N   " );
        desc156.putEnumerated( idSvng, idYsN, idN );
    executeAction( idCls, desc156, DialogModes.NO );

    I adapted a Script somewhat, so you may give this a test.
    But it uses the open file so you would have to adapt it further.
    // arranges the selected jpg, tif, psd in line;
    // gutters may be irregular due to rounding effects;
    // thanks to michael l hale and muppet mark;
    // for mac and CS6;
    // 2014, use it at your own risk;
    #target photoshop
    if (app.documents.length == 0) {
              var myDocument = app.documents.add(UnitValue (300, "mm"), UnitValue (50, "mm"), 300, "new", NewDocumentMode.RGB, DocumentFill.TRANSPARENT)
    else {myDocument = app.activeDocument};
    // set to pixels;
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    var theArray = [0, 0, myDocument.width, myDocument.height];
    // select files;
    if ($.os.search(/windows/i) != -1) {var theFiles = File.openDialog ("please select files", '*.jpg;*.tif;*.pdf;*.psd', true)}
    else {var theFiles = File.openDialog ("please select exactly three files", getFiles, true)};
    // do the arrangement
    if (theFiles) {placeInLines (myDocument, theFiles, theArray)}
    app.preferences.rulerUnits = originalRulerUnits;
    ////// function to place images in lines //////
    function placeInLines (myDocument, theFiles, theArray) {
    theFiles.sort();
    // fit on screen;
    var idslct = charIDToTypeID( "slct" );
    var desc64 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    var ref44 = new ActionReference();
    var idMn = charIDToTypeID( "Mn  " );
    var idMnIt = charIDToTypeID( "MnIt" );
    var idFtOn = charIDToTypeID( "FtOn" );
    ref44.putEnumerated( idMn, idMnIt, idFtOn );
    desc64.putReference( idnull, ref44 );
    executeAction( idslct, desc64, DialogModes.NO );
    // change pref;
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    setToAccelerated();
    app.togglePalettes();
    var check = turnOffRescale ();
    // create the arrangement;
    if (theFiles.length > 0 && theFiles.length == 3) {
    myDocument.activeLayer = myDocument.layers[0];
    // create masked group;
    var theGroup = myDocument.layerSets.add();
    theGroup.name = "arrangement";
    // determine the array’s values;
    var areaWidth = theArray[2] - theArray[0];
    var areaHeight = theArray[3] - theArray[1];
    var theDocResolution = myDocument.resolution;
    var areaRelation = areaHeight / areaWidth;
    // center of placed non-pdf images;
    var centerX = Number(myDocument.width / 2);
    var centerY = Number(myDocument.height / 2);
    // suppress dialogs;
    var theDialogSettings = app.displayDialogs;
    app.displayDialogs = DialogModes.NO;
    var pdfSinglePages = new Array;
    var nonPDFs = new Array;
    var theDimPDFs = new Array;
    var theLength = 0;
    // collect the files’ measurements;
    var theDimensions = new Array;
    var theLengths = new Array;
    // array to collect both files and placed pdf-pages;
    var theseFiles = new Array;
    var theLength = 0;
    // collect the files’ measurements;
    for (var o = 0; o < theFiles.length; o++) {
        var thisFile = theFiles[o];
              theseFiles.push(thisFile);
              var theDim = getDimensions(thisFile);
              theDimensions.push(theDim);
              theRelativeWidth = 100 / theDim[1] * theDim[0];
              theLength = theLength + theRelativeWidth;
    // reset dialogmodes;
    app.displayDialogs = DialogModes.ERROR;
    // if three files;
    if (theseFiles.length == 3) {
    // create the layers;
    var theNumber = 0;
    var theAdded = 0;
    var y = areaHeight / 2;
    // add placed image’s width;
    var thisLineWidth = 0 + theAdded;
    var theLastFactor = Number (Number(myDocument.height) / theDimensions[2][1] * theDimensions[2][2] / theDocResolution * 100);
    var theLastWidth = Math.round(theDimensions[2][0] * theLastFactor / 100 * theDocResolution / theDimensions[2][2]);
    // place the files;
    for (var x = 0; x < 3; x++) {
    var theNumber = x;
    var thisFile = theseFiles[theNumber];
    var theFactor = Number (Number(myDocument.height) / theDimensions[theNumber][1] * theDimensions[theNumber][2] / theDocResolution * 100);
    var theNewWidth = Math.round(theDimensions[theNumber][0] * theFactor / 100 * theDocResolution / theDimensions[theNumber][2]);
    var offsetX = theNewWidth / 2 + thisLineWidth - centerX + theArray[0];
    var offsetY = y - centerY + theArray[1];
    var theLayer = placeScaleFile (thisFile, offsetX, offsetY, theFactor, theFactor);
    myDocument.activeLayer.move(theGroup, ElementPlacement.PLACEATBEGINNING);
    thisLineWidth = thisLineWidth + theNewWidth;
    // duplicate the middle one;
    if (theNumber == 1) {
              while (thisLineWidth < myDocument.width - theLastWidth) {
                        theLayer = duplicateAndOffset (theLayer, theNewWidth, 0);
                        thisLineWidth = thisLineWidth + theNewWidth;
    // reset;
    app.togglePalettes();
    turnOnRescale (check);
    app.preferences.rulerUnits = originalRulerUnits;
    ////// playback to accelerated //////
    function setToAccelerated () {
              var idsetd = charIDToTypeID( "setd" );
              var desc1 = new ActionDescriptor();
              var idnull = charIDToTypeID( "null" );
                        var ref1 = new ActionReference();
                        var idPrpr = charIDToTypeID( "Prpr" );
                        var idPbkO = charIDToTypeID( "PbkO" );
                        ref1.putProperty( idPrpr, idPbkO );
                        var idcapp = charIDToTypeID( "capp" );
                        var idOrdn = charIDToTypeID( "Ordn" );
                        var idTrgt = charIDToTypeID( "Trgt" );
                        ref1.putEnumerated( idcapp, idOrdn, idTrgt );
              desc1.putReference( idnull, ref1 );
              var idT = charIDToTypeID( "T   " );
                        var desc2 = new ActionDescriptor();
                        var idperformance = stringIDToTypeID( "performance" );
                        var idperformance = stringIDToTypeID( "performance" );
                        var idaccelerated = stringIDToTypeID( "accelerated" );
                        desc2.putEnumerated( idperformance, idperformance, idaccelerated );
              var idPbkO = charIDToTypeID( "PbkO" );
              desc1.putObject( idT, idPbkO, desc2 );
              executeAction( idsetd, desc1, DialogModes.NO );
    ////// get psds, tifs and jpgs from files //////
    function getFiles (theFile) {
        if (theFile.name.match(/\.(jpg|tif|psd|pdf|)$/i)) {
            return true
    ////// place //////
    function placeScaleFile (file, xOffset, yOffset, theScale) {
    // =======================================================
    var idPlc = charIDToTypeID( "Plc " );
        var desc5 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        desc5.putPath( idnull, new File( file ) );
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc5.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc6 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc6.putUnitDouble( idHrzn, idPxl, xOffset );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc6.putUnitDouble( idVrtc, idPxl, yOffset );
        var idOfst = charIDToTypeID( "Ofst" );
        desc5.putObject( idOfst, idOfst, desc6 );
        var idWdth = charIDToTypeID( "Wdth" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc5.putUnitDouble( idWdth, idPrc, theScale );
        var idHght = charIDToTypeID( "Hght" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc5.putUnitDouble( idHght, idPrc, theScale );
        var idLnkd = charIDToTypeID( "Lnkd" );
        desc5.putBoolean( idLnkd, true );
    executeAction( idPlc, desc5, DialogModes.NO );
    return myDocument.activeLayer;
    ////// open pdf //////
    function openPDF (theImage, x) {
    // define pdfopenoptions;
    var pdfOpenOpts = new PDFOpenOptions;
    pdfOpenOpts.antiAlias = true;
    pdfOpenOpts.bitsPerChannel = BitsPerChannelType.EIGHT;
    pdfOpenOpts.cropPage = CropToType.TRIMBOX;
    pdfOpenOpts.mode = OpenDocumentMode.CMYK;
    pdfOpenOpts.resolution = 10;
    pdfOpenOpts.suppressWarnings = true;
    pdfOpenOpts.usePageNumber  = true;
    // suppress dialogs;
    var theDialogSettings = app.displayDialogs;
    app.displayDialogs = DialogModes.NO;
    pdfOpenOpts.page = x;
    var thePdf = app.open(theImage, pdfOpenOpts);
    thePdf.close(SaveOptions.DONOTSAVECHANGES);
    // reset dialogmodes;
    app.displayDialogs = theDialogSettings;
    ////// turn off preference to scale placed image //////
    function turnOffRescale () {
    // determine if the resize prefernce is on;
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var appDesc = executeActionGet(ref);
    var prefDesc = appDesc.getObjectValue(charIDToTypeID( "GnrP" ));
    var theResizePref = prefDesc.getBoolean(stringIDToTypeID( "resizePastePlace" ));
    // turn off resize image during place;
    if (theResizePref == true);{
    // =======================================================
    var idsetd = charIDToTypeID( "setd" );
        var desc12 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref4 = new ActionReference();
            var idPrpr = charIDToTypeID( "Prpr" );
            var idGnrP = charIDToTypeID( "GnrP" );
            ref4.putProperty( idPrpr, idGnrP );
            var idcapp = charIDToTypeID( "capp" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref4.putEnumerated( idcapp, idOrdn, idTrgt );
        desc12.putReference( idnull, ref4 );
        var idT = charIDToTypeID( "T   " );
            var desc13 = new ActionDescriptor();
            var idresizePastePlace = stringIDToTypeID( "resizePastePlace" );
            desc13.putBoolean( idresizePastePlace, false );
        var idGnrP = charIDToTypeID( "GnrP" );
        desc12.putObject( idT, idGnrP, desc13 );
    executeAction( idsetd, desc12, DialogModes.NO );
    return theResizePref
    ////// turn on preference to scale plced image //////
    function turnOnRescale (check) {
    if (check == true) {
    // =======================================================
    var idsetd = charIDToTypeID( "setd" );
        var desc14 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref5 = new ActionReference();
            var idPrpr = charIDToTypeID( "Prpr" );
            var idGnrP = charIDToTypeID( "GnrP" );
            ref5.putProperty( idPrpr, idGnrP );
            var idcapp = charIDToTypeID( "capp" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref5.putEnumerated( idcapp, idOrdn, idTrgt );
        desc14.putReference( idnull, ref5 );
        var idT = charIDToTypeID( "T   " );
            var desc15 = new ActionDescriptor();
            var idresizePastePlace = stringIDToTypeID( "resizePastePlace" );
            desc15.putBoolean( idresizePastePlace, true );
        var idGnrP = charIDToTypeID( "GnrP" );
        desc14.putObject( idT, idGnrP, desc15 );
    executeAction( idsetd, desc14, DialogModes.NO );
    ////// convert to so if not one aready //////
    function duplicateAndOffset (theLayer, theXOffset, theYOffset) {
    app.activeDocument.activeLayer = theLayer;
    // =======================================================
    var idcopy = charIDToTypeID( "copy" );
        var desc9 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref5 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref5.putEnumerated( idLyr, idOrdn, idTrgt );
        desc9.putReference( idnull, ref5 );
        var idT = charIDToTypeID( "T   " );
            var desc10 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idRlt = charIDToTypeID( "#Pxl" );
            desc10.putUnitDouble( idHrzn, idRlt, theXOffset );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idRlt = charIDToTypeID( "#Pxl" );
            desc10.putUnitDouble( idVrtc, idRlt, theYOffset );
        var idOfst = charIDToTypeID( "Ofst" );
        desc9.putObject( idT, idOfst, desc10 );
    executeAction( idcopy, desc9, DialogModes.NO );
    return app.activeDocument.activeLayer
    ////// load pdf as smart object //////
    function transformLayer (layer, percentage, xOffset, yOffset) {
    app.activeDocument.activeLayer = layer;
    // =======================================================
    var idTrnf = charIDToTypeID( "Trnf" );
        var desc4 = new ActionDescriptor();
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc4.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc5 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc5.putUnitDouble( idHrzn, idPxl, xOffset );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc5.putUnitDouble( idVrtc, idPxl, yOffset );
        var idOfst = charIDToTypeID( "Ofst" );
        desc4.putObject( idOfst, idOfst, desc5 );
        var idWdth = charIDToTypeID( "Wdth" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc4.putUnitDouble( idWdth, idPrc, percentage );
        var idHght = charIDToTypeID( "Hght" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc4.putUnitDouble( idHght, idPrc, percentage );
        var idLnkd = charIDToTypeID( "Lnkd" );
        desc4.putBoolean( idLnkd, true );
        var idAntA = charIDToTypeID( "AntA" );
        desc4.putBoolean( idAntA, true );
    executeAction( idTrnf, desc4, DialogModes.NO );
    return app.activeDocument.activeLayer
    ////// function to get file’s dimensions, thanks to michael l hale //////
    function getDimensions( file ){
    function divideString (theString) {
              theString = String(theString);
        var a = Number(theString.slice(0, theString.indexOf("\/")));
        var b = Number(theString.slice(theString.indexOf("\/") + 1));
        return (a / b)
    // from a script by michael l hale;
    function loadXMPLibrary(){
         if ( !ExternalObject.AdobeXMPScript ){
              try{
                   ExternalObject.AdobeXMPScript = new ExternalObject
                                                                ('lib:AdobeXMPScript');
              }catch (e){
                   alert( ErrStrs.XMPLIB );
                   return false;
         return true;
    function unloadXMPLibrary(){
       if( ExternalObject.AdobeXMPScript ) {
          try{
             ExternalObject.AdobeXMPScript.unload();
             ExternalObject.AdobeXMPScript = undefined;
          }catch (e){
             alert( ErrStrs.XMPLIB );
    ////// based on a script by muppet mark //////
    function dimensionsShellScript (file) {
              try {
    // getMetaDataMDLS;
    if (File(file) instanceof File && File(file).exists) {
              var shellString = "/usr/bin/mdls ";
              shellString += File(file).fsName;
    //          shellString += File(file).fullName;
              shellString += ' > ~/Documents/StdOut2.txt';
              app.system(shellString);
    // read the file;
    if (File('~/Documents/StdOut2.txt').exists == true) {
        var file = File('~/Documents/StdOut2.txt');
        file.open("r");
        file.encoding= 'BINARY';
        var theText = new String;
        for (var m = 0; m < file.length; m ++) {
                        theText = theText.concat(file.readch());
              file.close();
              theText = theText.split("\n");
    // get the dimensions;
              var dim = new Array;
              for (var m = 0; m < theText.length; m++) {
                        var theLine = theText[m];
                        if (theLine.indexOf("kMDItemPixelWidth") != -1) {dim.push(theLine.match(/[\d\.]+/g).join("") )}
                        if (theLine.indexOf("kMDItemPixelHeight") != -1) {dim.push(theLine.match(/[\d\.]+/g).join("") )}
                        if (theLine.indexOf("kMDItemResolutionWidthDPI") != -1) {dim.push(theLine.match(/[\d\.]+/g).join("") )}
                        if (theLine.indexOf("kMDItemResolutionHeightDPI") != -1) {dim.push(theLine.match(/[\d\.]+/g).join("") )}
    // remove file and hand back;
              File('~/Documents/StdOut2.txt').remove();
    catch (e) {
              if (File('~/Documents/StdOut2.txt').exists == true) {File('~/Documents/StdOut2.txt').remove()};
              return dim
              try{
                        loadXMPLibrary();
                        var xmpf = new XMPFile( file.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_READ );
                        var xmp = xmpf.getXMP();
                        xmpf.closeFile();
                        var resolutionUnit = xmp.getProperty( XMPConst.NS_TIFF, 'ResolutionUnit', XMPConst.STRING);
                        var resFactor = 1;
                        if (resolutionUnit == 2) {
                                  var resFactor = 1;
                        if (resolutionUnit == 3) {
                                  var resFactor = 2.54;
                        var dim = [xmp.getProperty( XMPConst.NS_EXIF, 'PixelXDimension', XMPConst.STRING),
                        xmp.getProperty( XMPConst.NS_EXIF, 'PixelYDimension', XMPConst.STRING),
                        divideString (xmp.getProperty( XMPConst.NS_TIFF, 'XResolution', XMPConst.STRING)) * resFactor,
                        divideString (xmp.getProperty( XMPConst.NS_TIFF, 'YResolution', XMPConst.STRING)) * resFactor];
                        unloadXMPLibrary();
                        if(dim[0]=="undefined" || dim[1]=="undefined"){
                var dim = undefined;
                var res = undefined;
                var bt = new BridgeTalk;
                bt.target = "bridge";
                var myScript = ("var ftn = " + psRemote.toSource() + "; ftn("+file.toSource()+");");
                bt.body = myScript;
                bt.onResult = function( inBT ) {myReturnValue(inBT.body); }
                bt.send(10);
                        function myReturnValue(str){
                                  res = str;
                                  dim = str.split(',');
                        function psRemote(file){
                                  var t= new Thumbnail(file);
                                  return t.core.quickMetadata.width+','+t.core.quickMetadata.height;
        }catch(e){unloadXMPLibrary()};
              if (String(dim[2]).indexOf("\/") != -1) {
                        var a = divideString(dim[2]);
                        var b = divideString(dim[3]);
                        dim = [dim[0], dim[1], a, b]
    // if dimensions are missing as might be the case with some bitmap tiffs for example try a shell-script;
              if (dim[0] == undefined || dim[1] == undefined) {
                        var array = dimensionsShellScript(file);
                        dim = array;
    // if shell-string failed open doc to get measurements;
              if (dim[0] == undefined || dim[1] == undefined) {
                        var thisDoc = app.open (File(file));
    // close ai without saving;
                        if (file.name.slice(-3).match(/\.(ai)$/i)) {
                                  thisDoc.trim(TrimType.TRANSPARENT);
                                  var dim = [thisDoc.width, thisDoc.height, thisDoc.resolution, thisDoc.resolution];
                                  thisDoc.close(SaveOptions.DONOTSAVECHANGES)
                        else {
                                  var dim = [thisDoc.width, thisDoc.height, thisDoc.resolution, thisDoc.resolution];
                                  thisDoc.close(SaveOptions.PROMPTTOSAVECHANGES)
    return dim;

  • N96 Photo Editor - Edited image won't save

    When I open a photo, and select 'Edit' from options, I rotate my photos to the correct composition (as they were taken upside down!) and then from options I select 'Save'. The progress bar appears to indicate the device is processing the change.
    However on returning back to the image menu, the photo simply reverts back to how it was before. Which is annoying as with the auto rotate switched on its impossible to look at photos when are upside down!
    Am I missing something out or is there a bug in the image editor?
    Hope you can help, thanks
    Solved!
    Go to Solution.

    Hi,
    I've just tested this and you are right - it does revert back to displaying the original photo after saving. If you then just click "Back" to return to the menu, you may no see the image depending on which option you selected when you went into "Photos".
    The new image won't appear in "Captured items" because it is not an image actually taken with the phone's camera. If you go back to the Photos menu and select "All", your edited image should appear in there.

  • Have CS6, but my Mark 5D III CR2 images won't load, can't install plug in 6.7!

    I just upgraded to CS6, but my Canon Mark 5D III CR2 images won't load, and everytime I try to download the 6.7 plug-in, it tells me it is "not for me."  Help!

    Get the ACR 7.1 RC (beta) at Labs.Adobe.com.

  • Image won't save in my e-mail signature

    Hoping someone can help me, I have tried adding an image to my e-mail signature by going into mail preferences and then dragging and dropping and image into an existing mail signature that I have created previously.
    The thing is, every time I close mail and open it back up again the image never is saved to my e-mail signature.
    The account I have set-up is link hosted by GoDaddy with my own domain name.
    I have 5 accounts set-up and each account has it's own assigned mail signature.
    I don't know why the image won't save in my e-mail signature????

    I am having this same issue.  I am not using a pic or html.  Its just Text.   This is on my .ME Email Account.   

  • Disk Image Won't Mount - Reason: Device Not Recognized

    As I've searched the discussion forums, I've seen plenty of postings for "Disk Image Won't Mount" and for "Device Not Recognized" but not the way I'm seeing it on my laptop.
    After a backup and restore, my mac will no longer mount any... and I mean any images. I have downloaded several security or software updates from different vendors and each .dmg file will not mount. I still have the .dmg files in hopes that after I get this problem solved, I'll be able to install them, but...
    It always gives the same reason for not mounting and I'm at a loss on what to do next. I've run Software Update hoping it will be a quick fix, but have had no success.
    Any suggestions?

    I have a similar problem. Using FireWire disk mode, I put a disk image of my entire iBook onto my iMac as a back-up. (For an unrelated problem, Apple told me I needed to erase my iBook completely and do a clean install of the system.) Well, I screwed something up. I don't know what exactly--maybe I didn't "put away" the device correctly, but the next day when I flipped on my iMac, the disk image of my iBook was just gone, and not to be found anywhere. I finally succeeded in restoring the image using TechTool, which scanned the entire volume of the iMac for directory information. And it's all there, because the img file is more than 10GB. But when I double-click on it, I get the following error msg: "The following disk images failed to mount...reason--not recognized." I've checked the app it's supposed to open with, permissions, and run Disk Utility volume repair. No dice. Any ideas??? Did I mention that this is EVERYTHING I had on my iBook???

  • Images won't import from Lightroom. (I have Creative Cloud 1.7.1.418/Photoshop (2014)/Lightroom 5.6)

    Images won't import from Lightroom to be edited. There were no problems until I upgraded to Photoshop (2014). LR & Photoshop work well independently (I have Creative Cloud 1.7.1.418/Photoshop (2014)/Lightroom 5.6). All are up-to-date.

    I had the same problem.  It seems the scripts that control the transfer of images from LR to Photoshop got deleted or messed up.  The fix I found on the LR forum was as follows:
    This solution allows you to run a repair installation without uninstalling Photoshop CC 2014. If you've already uninstalled Photoshop CC 2014, install it from the Apps tab of the Creative Cloud desktop application.
    Open the Creative Cloud desktop application.
    Select the Apps tab.
    Scroll down (if necessary) until the Find New Apps section displays.
    On the same line as Find New Apps, select Filters & Versions > Previous Version.
    Click the Install button next to Photoshop and select CC 2014.
    Click Yes, install this version.
    Once I did this, the interaction between LR and PS CC 2014 started working again.  I did notice that Photoshop showed up as needing to be updated in the Adobe CC application so I just clicked on the update button and after a few minutes photoshop had been updated.  The importing function still works so I think everything is OK.
    Not sure if this was part of the problem, but after updating the PS CC 2014 application  the first time, I uninstalled the original PS CC application as I didn't need it anymore.  I'm thinking that may have caused the scripts to be uninstalled along with the PS CC application.  Rerunning the installation put things back to normal.
    Hope this helps.
    Brian

Maybe you are looking for

  • Helppppp iPhone 3GS

    I was in my mom's car charging my iphone up until 8 percent because we had to get out of the car to go eat. She turned off the car and I unplugged it. My screen automatically went black and won't turn on again. When I got home, I plugged it into a wa

  • Mapping Workbench error when exporting project XML

    The following error pops up when trying to export the project deployment xml file. "The following descriptors do not have corresponding class files. Please check your class path." The window then lists all of my descriptors. I have the Oracle 10g dat

  • Error when trying to bring up Enterprise Manager

    Application Server: 10.1.3.1.0 SOA Linux: Red Hat Enterprise Linux ES release 3 (Taroon Update 8) Trying to log into em directly after a fresh install. Any advice? The splash page at :7777 comes up just fine... 500 Internal Server Error oracle.classl

  • Tx2525nr upgraded to windows 7 and now f11 recovery to vista does not work

    im new here and i hope to get any answers from my problem on this laptop. i owned a hptx2525nr and recently upgraded to windows 7, now i wanted to go back to vista but upon pressing f11 (the original recovery on hard drive), nothing happens. "f11 sys

  • I get erratic behaviour from my iphone5 if I use it while it is charging and being used as a hotspot.

    as per the header...  right this minute I'm tethered to my iphone5 and sitting on a laptop working. the totally unlimited 3g is more than enough for my home use and has been for the past 3 years.  I upgraded to the 5 in febuary and this issue became