How do new images get placed in Dreamweaver site image folder?

Hi,
I'm still new to this and my boss has dumped this chaotic
site onto me to fix. I'm new to Dreamweaver (MX 2004) although I
did take a course in it back in May and haven't done anything to
practice on since! This is a very different system than the kind i
used to do and used to being able to place new images into the site
image folder but haven't figured out how to do this after
researching all instructions, help menu and book, etc. What am i
missing here?

> and used to being able to place new images into the
> site image folder but haven't figured out how to do this
One way- place them in the folder you want manually from the
desktop. Open
the folder and put them there.
Another way- within dreamweaver.
Insert the image. If it's not already within this site
folder, dw will put
up a dialog box asking you want to copy the image to the site
folder.
If you've picked a default images folder in this site
definition, dw will
copy it. If you haven't picked a default images folder,
you'll be shown a
"browse to file" dialog box and you manually pick where to
save the file.
(unless you've already put a check in the "never show me
this again")
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/

Similar Messages

  • Opening a 2nd image gets PLACED in the open image

    Using Ps CS5 12.1. Win7 62bit
    If I have a file open in PS and then I drag a file from Bridge to the PS icon in the taskbar at the bottom of the screen, the image opens in the previously opened file as if I had done a File | Place command, instead of just opening in a new window as has always been the case before. Can't see how to turn this 'feature' off - any help much appreciated.
    Thank you.

    Okay I think I've sorted it out, although it doesn't seem to make sense to me...
    In Edit | Preferences | Interface I have unchecked "Open Documents as Tabs" AND "Enable Floating Document Window Docking", and in Edit | Preferences | General the option to "Place or Drag Raster Images as Smart Objects" remains unchecked.
    It now seems to work as before, I can now drag from Bridge into Photoshop and each image opens up independantly of the others.
    Problem solved, thanks, guys!

  • It seems my asset links (mostly images) get placed in the WRONG location after exporting

    Hi There,
    I've been using the test version of Muse for the part 10 days and have really been enjoying it!  I'm about to launch my first site with it.
    But!  In my design mode, all the correct images are on the right page, and then often when I go to the "preview mode" or the "preview page in browser" or publish the website as a test, then it seems like the wrong photos (from other pages on my website) will then be displayed in another photo's spot.
    As if, some bug caused the assets link's to get mixed-up when I export the website to view it live.
    Here is my example.  (NOTE - for both these pages, scroll to the SIDE, not down).
    Here is one page on the website, notice this is the page for the WIRED store, all the images in here should be there
    http://imdefinitelyinnewyorkcityrightnow.businesscatalyst.com/wired-store.html
    Now look at this different page for a different entry, but, some of the images from the WIRED store page (above) are now placed into this entry?????
    http://imdefinitelyinnewyorkcityrightnow.businesscatalyst.com/muddguts.html
    Note, there should be OTHER images in the place where the image that says "WIRED" in blue is, same goes for the bottom half of that first image, in design mode, there is another image there.
    As mentioned, in my "design" mode the photos are all in the correct places, it's only when I get to the preview/export modes where it seems the links to the assets gets mixed up.
    Anybody have any idea about this bug or what I can do to change it? 
    Thanks in Advance,
    _Winston Struye
    www.winstonstruye.com

    I am having the same issue.  I have three layered elements as three columns in the body of the page.  When I add the farthest right element it pushes the other left elements to the bottom of the page.  There are aren't any other elements on the page.
    Is this a CSS issue?  I thought about exporting to Dreamweaver and fixing it there but would like to take the easy route first.

  • How to include Aperture web gallery in dreamweaver site

    With the demise of mobile me I need to find a way to keep my personal website photo albums (web galleries) that I currently publish via Aperture web gallery and then use a hyperlink from my Dreamweaver web site. This means visitors can view the photo's from a link button but the actual images they see are Aperture Web Galleries. This method has worked for me for a while now.
    I know you can save a complete web gallery from Aperture onto a local drive rather than upload to mobile me. Does anyone know a beginners (ie me) guide to include that Aperture web gallery directly into a Dreamweaver site?. It feels like it should be possible but can't find any help.
    thanks in advance.
    Peter B.

    Hello Peter,
    What I do, to link my Aperture galleries to my iWeb pages, is to export the galleries from Aerture to my disk and then to upload them using ftp to a folder at my web hostings service. Then I link the iWeb pages to the gallery using link button or string. I use the free FTP program CyberDuck http://cyberduck.softonic.de/mac to copy the gallery using ftp. If your web hosting service allows ftp transfer, you could do the same. CyberDuck is really a smart little tool, but any program that allows ftp transfer would suffice.
    Regards
    Léonie

  • Why does a 2100x1500 pixel picture get placed as a 504x360 image?

    I'm sure this is one of those simple things that an actual graphic designer knows immediately, but that's not me. I'm guessing this has something to do with the PPI?
    I make a new document 2100x1500 to place the picture and it comes in really small. I've tried making the document with raster at 72ppi, at 300ppi, with no change in size of the picture once placed.
    How can I get a 2100x1500 pixel picture to show up on the document right?

    It comes in at the document size not the pixel dimensions, because if you are working for print and your requirement is a 7.5 x 5 inch image and it has to be place in different documents at different resolutions it still has to be 7.5 x 5 inches regardless of the pixel dimension.
    Doe that make sense?
    Let's try this then
    7.5 x 5 at 200 ppi
    7.5 x 5 at 355 ppi
    7.5 x 5 at 150 ppi
    Al have different pixel dimensions but they all have to be the same size when opened or placed in Illustrator, InDesign, Quark or even Photoshop
    However when you place it in a pixel based application it none of the above will have the same dimensions and none will appear to be the same size.
    So you have to allow your pixel dimensions and document dimensions change like shown below
    At 300 ppi
    At 72 ppi
    Here are the two placed in Illustrator, keep in mind illustrator displays at 72 ppi and you have to allow the document dimension to change accordingly.

  • I deactivated ps9 as I bought ps12, new owner of ps9 say they cannot install as product code has been deactivated, thought I had to do this to enable installation on another pc! How does new owner get ps9 installed?

    Can anyone tell me how new owner of my ps9 can install on their computer? I deactivated it but they say it cannot be installed as product code says it has been deactivated but thought i had to do this to enable install on another pc?

    You'll need to visit the Photoshop Elements forum where the experts there can better answer your questions.

  • Various images get loaded into my All Images folder involuntarily

    My macbook air downloads various images into my All Images folder.  I have to manually go through the folder and put them in the trash.  For instance it copies the Facebook logo over and over or images from websites I visit.  How can I avoid this as it eats up my storage?  Thanks.

    How large are the images?
    Not sure I understand the rest of your question - your card show show as an icon on the desktop and you can just drag the pics to a new folder, import them into iPhoto or a number of other apps.

  • Image rotator problem on Dreamweaver site

    Hi I am running into a problem on my main index site. If you look at the image rotator on the very top of the page http://oldfortestates.com/index.htm via firefox (only that browser) you will see that there is a flashback of some of the images before it moves to the next image. I tried everything and can't figure it out. However if you look at the page http://oldfortestates.com/index_test.htm where I took out the info of the body of the page you will see that it is working fine and there is no flashback, however as soon as I include the information in the body the images once again do the same flashback. I need to find a way to have the full page without the flashback. Any assistance would be appreciated.

    I realized that it is the exfeat addon which is causing the problem below. Once it is on the page it interfers with the image rotator to the top. There must be a way for it to work without the interference.

  • Image Picker- no images get saved or appear in the folder that gets created though alert says 'Saving images...' :-(

    I am using Image Picker as an addon. Initially it worked fine but not anymore. I follow all the instruction - choosing tab, show all images, select few or all, then Save. An alert appears saying it is saving the selected no. of images, opens the target folder, nothing is saved or appears saved there! What am I missing/ I have tried removing and add the add on again.

    http://code.google.com/p/imagepicker/issues/list
    Looks like there is a problem with that add-on in Firefox 36 - 5 "defect" reports since early January.

  • How is new music content added to Apple site?

    Looking for some musical content not available in  iTunes.  Who do you notify to see if/when music will be added for downloading?

    You can try requesting content via this page : http://www.apple.com/feedback/itunes.html
    But ultimately it's the record companies that will have to grant Apple a license to sell a particular track/album in a particular country's iTunes store, so you may want to contact them as well.

  • Truly dumb question. How do I get PS to actually complete a command, eg straighten an horizon, and finalise the change. Even doing a "save as" with a new file name and reloading brings the image back, straightened, but with the skewed back ground frame st

    Truly dumb question. How do I get PS to actually complete a command, eg straighten an horizon, and finalise the change. Even doing a "save as" with a new file name and reloading brings the image back, straightened, but with the skewed back ground frame still there. Is there a "apply change" or similiar command that I simply cannot see.

    brings the image back, straightened, but with the skewed back ground frame
    PSE did what you told it to do. Choose the Straighten and crop edges or fill edges options when you use the straighten tool if you want it to do more than just straighten the contents of the image. Many people prefer the plain straighten because they'd rather crop themselves than let PSE do it.

  • Want to get placed images Dimension and Creation Date in Catalog

    Below is the script which is free with CS4. Is there anybody who can modify this script in a way which provide the creation date and dimension of the images in image catalog.
    //ImageCatalog.jsx
    //An InDesign C4 JavaScript
    @@@BUILDINFO@@@ "ImageCatalog.jsx" 2.0.0 5-December-2007
    //Creates an image catalog from the graphic files in a selected folder.
    //Each file can be labeled with the file name, and the labels are placed on
    //a separate layer and formatted using a paragraph style ("label") you can
    //modify to change the appearance of the labels.
    //For more information on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
    //Or visit the InDesign Scripting User to User forum at http://www.adobeforums.com .
    //The myExtensions array contains the extensions of the graphic file types you want
    //to include in the catalog. You can remove extensions from or add extensions to this list.
    //myExtensions is a global. Mac OS users should also look at the file types in the myFileFilter function.
    main();
    function main(){
    var myFilteredFiles;
    //Make certain that user interaction (display of dialogs, etc.) is turned on.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    myExtensions = [".jpg", ".jpeg", ".eps", ".ps", ".pdf", ".tif", ".tiff", ".gif", ".psd", ".ai"]
    //Display the folder browser.
    var myFolder = Folder.selectDialog("Select the folder containing the images", "");
    //Get the path to the folder containing the files you want to place.
    if(myFolder != null){
       if(File.fs == "Macintosh"){
        myFilteredFiles = myMacOSFileFilter(myFolder);
       else{
        myFilteredFiles = myWinOSFileFilter(myFolder);
       if(myFilteredFiles.length != 0){
         myDisplayDialog(myFilteredFiles, myFolder);
         alert("Done!");
    //Windows version of the file filter.
    function myWinOSFileFilter(myFolder){
    var myFiles = new Array;
    var myFilteredFiles = new Array;
    for(myExtensionCounter = 0; myExtensionCounter < myExtensions.length; myExtensionCounter++){
      myExtension = myExtensions[myExtensionCounter];
            myFiles = myFolder.getFiles("*"+ myExtension);
      if(myFiles.length != 0){
       for(var myFileCounter = 0; myFileCounter < myFiles.length; myFileCounter++){
        myFilteredFiles.push(myFiles[myFileCounter]);
    return myFilteredFiles;
    function myMacOSFileFilter(myFolder){
    var myFilteredFiles = myFolder.getFiles(myFileFilter);
    return myFilteredFiles;
    //Mac OS version of file filter
    //Have to provide a separate version because not all Mac OS users use file extensions
    //and/or file extensions are sometimes hidden by the Finder.
    function myFileFilter(myFile){
    var myFileType = myFile.type;
    switch (myFileType){
      case "JPEG":
      case "EPSF":
      case "PICT":
      case "TIFF":
      case "8BPS":
      case "GIFf":
      case "PDF ":
       return true;
       break;
      default:
      for(var myCounter = 0; myCounter<myExtensions.length; myCounter++){
       var myExtension = myExtensions[myCounter]; 
       if(myFile.name.indexOf(myExtension)>-1){
        return true;
        break;  
    return false;
    function myDisplayDialog(myFiles, myFolder){
    var myLabelWidth = 112;
    var myStyleNames = myGetParagraphStyleNames(app);
    var myLayerNames = ["Layer 1", "Labels"];
    var myDialog = app.dialogs.add({name:"Image Catalog"});
    with(myDialog.dialogColumns.add()){
      with(dialogRows.add()){
       staticTexts.add({staticLabel:"Information:"});
      with(borderPanels.add()){
       with(dialogColumns.add()){
        with(dialogRows.add()){
         staticTexts.add({staticLabel:"Source Folder:", minWidth:myLabelWidth});
         staticTexts.add({staticLabel:myFolder.path + "/" + myFolder.name});
        with(dialogRows.add()){
         staticTexts.add({staticLabel:"Number of Images:", minWidth:myLabelWidth});
         staticTexts.add({staticLabel:myFiles.length + ""});
      with(dialogRows.add()){
        staticTexts.add({staticLabel:"Options:"});
      with(borderPanels.add()){
       with(dialogColumns.add()){
        with(dialogRows.add()){
         staticTexts.add({staticLabel:"Number of Rows:", minWidth:myLabelWidth});
         var myNumberOfRowsField = integerEditboxes.add({editValue:3});
        with(dialogRows.add()){
         staticTexts.add({staticLabel:"Number of Columns:", minWidth:myLabelWidth});
         var myNumberOfColumnsField = integerEditboxes.add({editValue:3});
        with(dialogRows.add()){
         staticTexts.add({staticLabel:"Horizontal Offset:", minWidth:myLabelWidth});
         var myHorizontalOffsetField = measurementEditboxes.add({editValue:12, editUnits:MeasurementUnits.points});
        with(dialogRows.add()){
         staticTexts.add({staticLabel:"Vertical Offset:", minWidth:myLabelWidth});
         var myVerticalOffsetField = measurementEditboxes.add({editValue:24, editUnits:MeasurementUnits.points});
        with (dialogRows.add()){
         with(dialogColumns.add()){
          staticTexts.add({staticLabel:"Fitting:", minWidth:myLabelWidth});
         with(dialogColumns.add()){
          var myFitProportionalCheckbox = checkboxControls.add({staticLabel:"Proportional", checkedState:true});
          var myFitCenterContentCheckbox = checkboxControls.add({staticLabel:"Center Content", checkedState:true});
          var myFitFrameToContentCheckbox = checkboxControls.add({staticLabel:"Frame to Content", checkedState:true});
        with(dialogRows.add()){
          var myRemoveEmptyFramesCheckbox = checkboxControls.add({staticLabel:"Remove Empty Frames:", checkedState:true});
      with(dialogRows.add()){
        staticTexts.add({staticLabel:""});
      var myLabelsGroup = enablingGroups.add({staticLabel:"Labels", checkedState:true});
      with (myLabelsGroup){
       with(dialogColumns.add()){
        //Label type
        with(dialogRows.add()){
         with(dialogColumns.add()){
          staticTexts.add({staticLabel:"Label Type:", minWidth:myLabelWidth});
         with(dialogColumns.add()){
          var myLabelTypeDropdown = dropdowns.add({stringList:["File name", "File path", "XMP description", "XMP author"], selectedIndex:0});
        //Text frame height
        with(dialogRows.add()){
         with(dialogColumns.add()){
          staticTexts.add({staticLabel:"Label Height:", minWidth:myLabelWidth});
         with(dialogColumns.add()){
          var myLabelHeightField = measurementEditboxes.add({editValue:24, editUnits:MeasurementUnits.points});
        //Text frame offset
        with(dialogRows.add()){
         with(dialogColumns.add()){
          staticTexts.add({staticLabel:"Label Offset:", minWidth:myLabelWidth});
         with(dialogColumns.add()){
          var myLabelOffsetField = measurementEditboxes.add({editValue:0, editUnits:MeasurementUnits.points});
        //Style to apply
        with(dialogRows.add()){
         with(dialogColumns.add()){
          staticTexts.add({staticLabel:"Label Style:", minWidth:myLabelWidth});
         with(dialogColumns.add()){
          var myLabelStyleDropdown = dropdowns.add({stringList:myStyleNames, selectedIndex:0});
        //Layer
        with(dialogRows.add()){
         with(dialogColumns.add()){
          staticTexts.add({staticLabel:"Layer:", minWidth:myLabelWidth});
         with(dialogColumns.add()){
          var myLayerDropdown = dropdowns.add({stringList:myLayerNames, selectedIndex:0});
            var myResult = myDialog.show();
            if(myResult == true){
       var myNumberOfRows = myNumberOfRowsField.editValue;
       var myNumberOfColumns = myNumberOfColumnsField.editValue;
       var myRemoveEmptyFrames = myRemoveEmptyFramesCheckbox.checkedState;
       var myFitProportional = myFitProportionalCheckbox.checkedState;
       var myFitCenterContent = myFitCenterContentCheckbox.checkedState;
       var myFitFrameToContent = myFitFrameToContentCheckbox.checkedState;
       var myHorizontalOffset = myHorizontalOffsetField.editValue;
       var myVerticalOffset = myVerticalOffsetField.editValue;
       var myMakeLabels = myLabelsGroup.checkedState;
       var myLabelType = myLabelTypeDropdown.selectedIndex;
       var myLabelHeight = myLabelHeightField.editValue;
       var myLabelOffset = myLabelOffsetField.editValue;
       var myLabelStyle = myStyleNames[myLabelStyleDropdown.selectedIndex];
       var myLayerName = myLayerNames[myLayerDropdown.selectedIndex];
       myDialog.destroy();
       myMakeImageCatalog(myFiles, myNumberOfRows, myNumberOfColumns, myRemoveEmptyFrames, myFitProportional, myFitCenterContent, myFitFrameToContent, myHorizontalOffset, myVerticalOffset, myMakeLabels, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle,  myLayerName);
      else{
       myDialog.destroy();
    function myGetParagraphStyleNames(myDocument){
    var myStyleNames = new Array;
    var myAddLabelStyle = true;
    for(var myCounter = 0; myCounter < myDocument.paragraphStyles.length; myCounter++){
      myStyleNames.push(myDocument.paragraphStyles.item(myCounter).name);
      if (myDocument.paragraphStyles.item(myCounter).name == "Labels"){
       myAddLabelStyle = false;
    if(myAddLabelStyle == true){
      myStyleNames.push("Labels");
    return myStyleNames;
    function myMakeImageCatalog(myFiles, myNumberOfRows, myNumberOfColumns, myRemoveEmptyFrames, myFitProportional, myFitCenterContent, myFitFrameToContent, myHorizontalOffset, myVerticalOffset, myMakeLabels, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle,  myLayerName){
    var myPage, myFile, myCounter, myX1, myY1, myX2, myY2, myRectangle, myLabelStyle, myLabelLayer;
    var myParagraphStyle, myError;
    var myFramesPerPage = myNumberOfRows * myNumberOfColumns; 
    var myDocument = app.documents.add();
    myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
    myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    var myDocumentPreferences = myDocument.documentPreferences; 
    var myNumberOfFrames = myFiles.length;
    var myNumberOfPages = Math.round(myNumberOfFrames / myFramesPerPage);
    if ((myNumberOfPages * myFramesPerPage) < myNumberOfFrames){ 
      myNumberOfPages++;
    //If myMakeLabels is true, then add the label style and layer if they do not already exist.
    if(myMakeLabels == true){
      try{
       myLabelLayer = myDocument.layers.item(myLayerName);
       //if the layer does not exist, trying to get the layer name will cause an error.
       myLabelLayer.name;
      catch (myError){
       myLabelLayer = myDocument.layers.add({name:myLayerName});
      //If the paragraph style does not exist, create it.
      try{
       myParagraphStyle = myDocument.paragraphStyles.item(myLabelStyle);
       myParagraphStyle.name;
      catch(myError){
       myDocument.paragraphStyles.add({name:myLabelStyle});
    myDocumentPreferences.pagesPerDocument = myNumberOfPages; 
    myDocumentPreferences.facingPages = false; 
    var myPage = myDocument.pages.item(0); 
    var myMarginPreferences = myPage.marginPreferences;
    var myLeftMargin = myMarginPreferences.left; 
    var myTopMargin = myMarginPreferences.top; 
    var myRightMargin = myMarginPreferences.right; 
    var myBottomMargin = myMarginPreferences.bottom; 
    var myLiveWidth = (myDocumentPreferences.pageWidth - (myLeftMargin + myRightMargin)) + myHorizontalOffset
    var myLiveHeight = myDocumentPreferences.pageHeight - (myTopMargin + myBottomMargin)
    var myColumnWidth = myLiveWidth / myNumberOfColumns
    var myFrameWidth = myColumnWidth - myHorizontalOffset
    var myRowHeight = (myLiveHeight / myNumberOfRows)
    var myFrameHeight = myRowHeight - myVerticalOffset
    var myPages = myDocument.pages;
    // Construct the frames in reverse order. Don't laugh--this will 
    // save us time later (when we place the graphics). 
    for (myCounter = myDocument.pages.length-1; myCounter >= 0; myCounter--){ 
      myPage = myPages.item(myCounter);
      for (var myRowCounter = myNumberOfRows; myRowCounter >= 1; myRowCounter--){ 
       myY1 = myTopMargin + (myRowHeight * (myRowCounter-1));
       myY2 = myY1 + myFrameHeight;
       for (var myColumnCounter = myNumberOfColumns; myColumnCounter >= 1; myColumnCounter--){ 
        myX1 = myLeftMargin + (myColumnWidth * (myColumnCounter-1));
        myX2 = myX1 + myFrameWidth;
        myRectangle = myPage.rectangles.add(myDocument.layers.item(-1), undefined, undefined, {geometricBounds:[myY1, myX1, myY2, myX2], strokeWeight:0, strokeColor:myDocument.swatches.item("None")}); 
    // Because we constructed the frames in reverse order, rectangle 1 
    // is the first rectangle on page 1, so we can simply iterate through 
    // the rectangles, placing a file in each one in turn. myFiles = myFolder.Files; 
    for (myCounter = 0; myCounter < myNumberOfFrames; myCounter++){ 
      myFile = myFiles[myCounter]; 
      myRectangle = myDocument.rectangles.item(myCounter);
      myRectangle.place(File(myFile));
      myRectangle.label = myFile.fsName.toString();
      //Apply fitting options as specified.
      if(myFitProportional){
       myRectangle.fit(FitOptions.proportionally);
      if(myFitCenterContent){
       myRectangle.fit(FitOptions.centerContent);
      if(myFitFrameToContent){
       myRectangle.fit(FitOptions.frameToContent);
      //Add the label, if necessary.
      if(myMakeLabels == true){
       myAddLabel(myRectangle, myLabelType, myLabelHeight, myLabelOffset, myLabelStyle, myLayerName);
    if (myRemoveEmptyFrames == 1){ 
      for (var myCounter = myDocument.rectangles.length-1; myCounter >= 0;myCounter--){ 
       if (myDocument.rectangles.item(myCounter).contentType == ContentType.unassigned){
        myDocument.rectangles.item(myCounter).remove();
       else{
        //As soon as you encounter a rectangle with content, exit the loop.
        break;
    //Function that adds the label.
    function myAddLabel(myFrame, myLabelType, myLabelHeight, myLabelOffset, myLabelStyleName, myLayerName){
    var myDocument = app.documents.item(0);
    var myLabel;
    var myLabelStyle = myDocument.paragraphStyles.item(myLabelStyleName);
    var myLabelLayer = myDocument.layers.item(myLayerName);
    var myLink =myFrame.graphics.item(0).itemLink;
    //Label type defines the text that goes in the label.
    switch(myLabelType){
      //File name
      case 0:
       myLabel = myLink.name;
       break;
      //File path
      case 1:
       myLabel = myLink.filePath;
       break;
      //XMP description
      case 2:
       try{
        myLabel = myLink.linkXmp.description;
        if(myLabel.replace(/^\s*$/gi, "")==""){
         throw myError;
       catch(myError){
        myLabel = "No description available.";
       break;
      //XMP author
      case 3:
       try{
        myLabel = myLink.linkXmp.author
        if(myLabel.replace(/^\s*$/gi, "")==""){
         throw myError;
       catch(myError){
        myLabel = "No author available.";
       break;
    var myX1 = myFrame.geometricBounds[1];
    var myY1 = myFrame.geometricBounds[2] + myLabelOffset;
    var myX2 = myFrame.geometricBounds[3];
    var myY2 = myY1 + myLabelHeight;
    var myTextFrame = myFrame.parent.textFrames.add(myLabelLayer, undefined, undefined,{geometricBounds:[myY1, myX1, myY2, myX2], contents:myLabel});
    myTextFrame.textFramePreferences.firstBaselineOffset = FirstBaseline.leadingOffset;
    myTextFrame.parentStory.texts.item(0).appliedParagraphStyle = myLabelStyle;   

    "Scripting Forum Conduct
    While this forum is a great place to get scripting help, it's also very easy to misuse it. Before using this forum, please read this post!"

  • How to Get a Video Thumbnail preview image in sharepoint Asset Library

    namespace ConsoleApplication3
    class Program
    static void Main(string[] args)
    using (var site = new SPSite("http://contoso/sites/teams"))
    using (var web = site.OpenWeb())
    var list = web.Lists.TryGetList("Videos");
    var videoProperties = new Dictionary<string, object>();
    videoProperties["Keywords"] = "Intranet Video";
    //videoProperties["AlternateThumbnailUrl"] = "/_layouts/images/preview.jpg";
    UploadVideo(list, @"C:\Downloads\Video3.mp4", videoProperties);
    public static void UploadVideo(SPList list,string fileName,IDict ionary<string,object> properties)
    SPFile file;
    using (var fileStream = File.OpenRead(fileName))
    var urlOfFile = SPUrlUtility.CombineUrl(list.RootFolder.ServerRelativeUrl, Path.GetFileName(fileName));
    file = list.RootFolder.Files.Add(urlOfFile, fileStream, true);
    list.Update();
    //listid = list.ID.add();
    SPListItem listItem = list.GetItemById(file.ListItemAllFields.ID);
    //SPListItem listItem = list.GetItems("Video3");
    var videoContentType = list.ParentWeb.Site.RootWeb.AvailableContentTypes["Video"];
    // listItem["ContentTypeId"] = videoContentType.Id;
    foreach (var property in properties)
    listItem[property.Key] = property.Value;
    listItem.Update();
    in this code "SPListItem listItem = list.GetItemById(file.ListItemAllFields.ID); " im getting null reference exception.an i have tried with other line "var listItem = file.ListItemAllFields;" same error.any one help me to get solve this
    issue.And how to Get a uploaded video Thumnail image.

    Hi,
    I did a test with your code in my environment and it works fine.
    For a better troubleshooting, I suggest you debug your code step by step. You may need to check if file.ListItemAllFields.ID is valid.
    If you want to get video Thumnail image, there is a column named Preview Image URL, the internal name of the field is AlternateThumbnailUrl.
    You can get the field value using Sever Object Model like below.
    String url = item[“AlternateThumbnailUrl”].ToString();
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/en-US/251974d8-18ac-4ff9-88a2-633b5bd80fce/get-asset-library-column-value-preview-image-url-programmatically?forum=sharepointgeneralprevious
    More information about how to get list item using Server Object Model:
    http://msdn.microsoft.com/en-us/library/office/ms460897%28v=office.14%29.aspx
    Best regards,
    Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

  • How can I get the resolution of an image file in JSP?

    how can I get the resolution of an image file like jpg,gif,png in JSP ?

    Hii,
    If by the resolution, u mean size..this is how u can come to know....
    String add = "path/to/some.jpeg";
    javax.swing.ImageIcon chain = new javax.swing.ImageIcon(add);
    int height = chain.getIconHeight();
    int width = chain.getIconWidth();
    Hope that helps.
    regards
                   

  • How to get the formatName of an image?

    Hi,
    I'm trying to write a little class which gets as input an image file (gif, jpg or png) and outputs a resized version of it. My aim is to output allways an image having the same format like the input one. I saw that ImageIO.write accepts as parameter the String formatName.
    The question is how can somebody get the formatName for the input-image?
    Thanks,
    IMIA

    I'd like to have a method like this:
    public static String resizeImg(String imgPath, Integer newWidth, Integer newHeight)
    It gets as parameter the absolutePath to an image and the new width&height; it should resize the image and return me the absolute path to the resized image.
    What I want is that in the case the imgPath points to a gif image the resized image should be a gif as well. If it's a jpg the resized img should be a jpg as well. The only one pb I have is to find out inside the resizeImg what format the imgPath image has, the rest would be clear.
    Thanks for your help.

Maybe you are looking for