Gallery without XML definition of image size

Hello,
In my application, the images are actually created on the
fly. So knowing the exact dimensions at the time the XML is created
was a bit troublesome, since some images can be landscape, some can
be portrait, and they all can have different aspect ratios. So, in
it's original form, the gallery script didn't work very well for
me. Last night, I sought out a solution that would not require the
sizes to be in the XML file. Below is my refactored SetMainImage
function. Where the original version of this function downloads the
image after the opacity is reduced, this one starts by loading the
new image, then uses the Size effect to resize the frame to the new
image's size.
Hope this helps somebody else! Spry certainly has helped
me!!!!!! Thank you Adobe!
Peace,
Matt
function SetMainImage(imgPath, tnID)
var img = document.getElementById("mainImage");
if (!img) {
return;
CancelBehavior("mainImage");
Spry.Utils.SelectionManager.clearSelection("thumbnailSelection");
if (tnID) {
Spry.Utils.SelectionManager.select("thumbnailSelection",
document.getElementById(tnID), "selectedThumbnail");
if (gImageLoader)
gImageLoader.onload = function() {};
gImageLoader = null;
// Use an image loader to make sure we only fade in the new
image after
// it is completely loaded.
gImageLoader = new Image();
gImageLoader.onload = function()
gBehaviorsArray["mainImage"] = new Spry.Effect.Opacity(img,
GetOpacity(img), 0, { duration: 400,
finish: function()
gBehaviorsArray["mainImage"] = new
Spry.Effect.Size(img.parentNode, GetDimensions(img.parentNode), {
width: gImageLoader.width, height: gImageLoader.height}, {duration:
400, steps: 10,
finish: function()
img.src = gImageLoader.src;
gImageLoader = null;
gBehaviorsArray["mainImage"] = new Spry.Effect.Opacity(img,
0, 1, { duration: 400, steps: 10, finish: function() {
gBehaviorsArray["mainImage"] = null; }});
gBehaviorsArray["mainImage"].start();
} // End finish function for Size call.
}); // End params for size call
gBehaviorsArray["mainImage"].start();
} // End finish function for first Opacity call.
}); // end parameters for first opacity call
gBehaviorsArray["mainImage"].start();
}; // End gImageLoader function
gImageLoader.src = imgPath;
}

Howdy,
I decided to strip the effects from the thumbnails, so they
all do show in their original full size. As a portrait
photographer, my goal with using technology is to help me sell
prints. Shrinking a portrait orientation photo down to fit in a
square makes people look short and fat, and even if the large image
is correct, people don't buy photos that make them look short and
fat. Plus, it was also important to me to include the filename as a
caption for the thumbnail. So that is a rather long explanation of
how I got out of defining the sizes of the thumbnails.
As for the large images, the code above is a replacement for
the SetMainImage function in gallery.js. You'll also need to change
the call to the function in ShowCurrentImage() from:
SetMainImage("galleries/" +
dsGalleries.getCurrentRow()["@base"] + "images/" + curRow["@path"],
curRow["@width"], curRow["@height"], "tn" + curRow["ds_RowID"]);
to:
SetMainImage("galleries/" +
dsGalleries.getCurrentRow()["@base"] + "images/" + curRow["@path"],
"tn" + curRow["ds_RowID"]);
Kin--You bring up some really good points. In my case, it
would be too server intensive to calculate all the image sizes on
the first load, as my server does not actually create the web
images until they are requested--then they are stored in a cache on
the server for future requests. So, I needed to do something that
would not depend on knowing the size before loading the image.
I totally understand why you did things the way you did. I
think I might have to figure out a pre-loading strategy as you
mention. Or, I may try some of the new spry effects to do something
a bit different so the user sees some action immediately on click.
That is probably pretty important, and I have not addressed it yet.
Anyways, here is the link for my development site. I'll post
here when it is done, because i'm not close to being done yet. The
password for now is 'blue'
http://www.mattjones.org/order_test/
Peace,
Matt

Similar Messages

  • How do I only show thumbnails in the photo gallery without showing the Main Image?

    Hello,
    I need help customizing the Spry Photo Gallery Demo...
    I would like for the Main Image To Be Hidden when the html
    page loads. After the user clicks the thumbnail, I would like to
    have the Main Image load centered on the page(with div containing
    close button) on a z-index above the thumbnails. While the
    thumbnails layer has a fade effect to 10%. After the user clicks
    the close button the Main image disappears and the thumbnails layer
    fades back to 100%. Then the user can click another thumbnail and
    so on and so forth...
    Is this possible? I have tried everything I can think of with
    my limited knowlege of spry and cant get it to work. I just need
    help with the Large image part. The close button and fades I can
    handle.
    Any help would be most appreciated. Please let me know if
    further information is needed from me. Thank you in advance.

    There is a third-party program called Attachment Tamer that will do that for you.  In the Terminal, you can type this:
    defaults write com.apple.mail DisableInlineAttachmentViewing -bool yes
    Also note that while Attachment Tamer does some things with the encoding that makes certain email clients display the item as an attachment, what shows up at the receiver's end is solely dependent on their email client and its settings.

  • WEB module export image size

    Team, I am
    exporting just two images from the Web Mo
    dule...using the basis HTML
    gallery template.
    The original image size is 4972K (4.9Mb)
    After I select export in the web module, the resulting image is around
    200K in the content\images\large directory.
    I have the "Large Images" Quality slider at 100
    Is is the case...that no matter what...the image will be manipulated or reduced in size by the web module engine?
    I would like the original image to be exported out to the content\images\large directory.
    Is this possible?
    I was just on phone with support...close to two hours...disconnected twice...but the phone support folks were not aware of what I am doing.
    I am using LR 3.3 in Windows...if that matters.
    Thank You,
    -Rich O
    [email protected]

    Rich,
    RichO2010 wrote:
    Beat, I have not made any adjustments.  Not sure where "Image Pages" are.  But, under the Web module, I have tried several "Large Images" quality settings under the "Output Settings"
    You find this setting under the Appearance section:
    I am getting the sense that no matter what...the LR Webgallery engine wants to "optimize" the images for web output.
    I just want the people that visit the site, the ability to download the original image...unaltered.
    I have not found a way to go beyond 2071 pixels for image width in Web Gallery.
    From what i am reading so far, I think I should just let the galley engine do its work. Then come back and upload the original images under the content\images\large (or whatever the output destination might be).
    That might be a way to achieve what you want. There might be side-effects regarding borders, watermarks etc.
    Beat

  • Spry Photo Gallery Image Size via CSS

    Hello!
    I´ve been customizing the spry photo gallery for a couple of time, but got my little problem when viewing it on a mobile phone. When you load up the pictures with a size of 450 x 300 px for example, put up the right xml file with it´s width and height, so the gallery shows the pictures in that size. So what I want to do is that you can specify the image size with css depending on the device you´re watching the site with. There is div in the css called "mainImage" where the size is in %. When you change it to 75% for example. The pictures are correctly shown with 75% of it´s original size, but the outline (grey background) is still in 100%. When you make this grey background transparent it´s still there and moves the caption down. I guess there have to be done some changes within the SpryImageViewer.js, but I just know very little things about JavaScript. Do you have any clues how to change this to specify the image size via CSS?
    Thank you for your help!!!
    Kind regards,
    Joerg

    I see you are still using Spry 1.5. Have you considered upgrading to 
    Spry 1.6.1?
    Also your XML is broken, if you open up your xml in a normal standards 
    complaint browser such as firefox, you will see that it doesn't render
    a normal tree view as it would do with other xml files. So i suggest 
    checking those errors out.
    Its mainly because you  forgot to close your starting tag of the 
    gallerys node. (<gallery
    base = ""
    background = "#FFFFFF"
    banner = "#F0F0F0"
    text = "#000000"
    link = "#0000FF"
    alink = "#FF0000"
    vlink = "#800080"
    before your xml starts.

  • Image size reduction without losing resolution

    I am creating marketing materials and product labels for my company using Elements 9. I am not a Photoshop expert but I have a reasonable knowledge of the program. I need to resize certain assets such as logos and paste them onto various documents. The problem I am having is that no matter what method I use to resize, they always lose resolution and appear pixelated and/or blurry in the final printed version.
    Normally I receive the assets in a hi-res image. It could be a jpeg or bitmap or any other number of format. I will open it in Elements, select it and remove the background via the Magic Wand>Layer Via Cut, and delete the background layer.
    From there, I have tried everything from the simple select, grab the corner and manually drag inwards method, to using Image>Resize>Image Size and filling in the fields. When I performed the latter, I typed in 300dpi, made sure Constrain Proportions was turned on, checked Resample, and selected Bicubic Sharper, and entered the size in inches. Then I copy/paste into the document, and it looks fine. I save, which normally opens up Reader and I print from there. The printed image looks great except for any logos I resized, which look awful. I also tried printing from within Elements, but it won't do it without giving me a message first saying that the document will print at less than 200dpi, which is obviously not desirable.
    One I paste the image onto the document, the Image Size>Resize becomes unusable because I can't seem to select just the logo - even with the bounding box clearly visable around the logo, resizing causes the entire document to be affected.
    I have tried many combinations of selecting/deselecting every option I can find, including Alias/Anti-Alias (which for some reason sometimes doesn't seem selectable at all). I've scoured forums and tutorials for help on this, and have tried every method I could find. In the end, nothing has worked. There has got to be a way to do this. Our 30 day trial is almost over and we went ahead and purchased the program without knowing whether we could resolve this issue - if we can't, it will be pretty much useless to us. Please help me so I can tell my boss he didn't just waste company money on this program!
    In short, my question is, what is the correct (or best) method for reducing image size? Please be detailed - and thank you! 

    Thanks for the reply Jon, but unfortunately I ended up with the same result as MTSTUNER said (using the Crop Tool).
    MTSTUNER, that definitely helped. The problem must have been in pasting, which as you said brings a "non-smart" image over. I was even able to resize a bit on the new document without losing any clarity whatsoever. Very helpful - THANK YOU!

  • Photo gallery image size

    Hi. Is it possible to adjust the photo gallery module's code in a way that makes the image that gets displayed on selecting the thumbnail image display no larger than the browser? I have a client that's uploaded image that are pretty large and would prefer not to have to save them as smaller images if possible.
    Thanks
    Grant

    Are you by any chance saving as a JPEG or TIFF file?
    The image size that Photoshop displays is the uncompressed file size - if you save in a format such as JPEG the image is compressed, which will result in a smaller file size.
    Below is a comparison of the same image in Photoshop versus the compressed file saved to my computer:
    Here's a more technical explanation of what's going on: http://photo.stackexchange.com/questions/15184/why-does-photoshop-show-my-jpeg-files-unusu ally-large
    EDIT: If you want more accurate control over the image file size when saving, try going to File > Save for Web... You'll be able to choose your file format, and then see the resulting file size in the bottom left-hand corner of the window:
    I hope this helps!
    Cheers,
    Kendall

  • Web Flash Gallery: Problem setting Large Images size

    When using the Lightroom Flash Gallery I am not able to change the size of the Large Images (Web | Appearance | Large Images | Size). When I set the size to Medium or Small, the large images always ends up with the same size as when set to Large. Only when setting the size to Extra Large there is a slight change in size.
    How can I change the Large Images size to Medium and Small?
    Jørgen Johanson

    jools2005 wrote:
    Adobe please address this issue.
    This is a User to User forum not official Adobe support. Yes, Adobe staff may participate from time to time, but not often enough that you can depend on them reading your post. Therefore, I suggest that you support a bug report using the facilities provided at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Java2D get image size without read image to buffer

    Hi,
    I need get the image size without buffering the image. Can somebody help me?
    THX

    I have problem with this code, can somebody help me how can I fix this problem?
    String strFileName = "D:/Dokuments/10/Sturovo.tif";
    String strFormat = "tif";
    Iterator rs = ImageIO.getImageReadersByFormatName(strFormat);
    ImageReader ir = (ImageReader) rs.next();
    File srcFile = new File(strFileName);
    ImageInputStream iis = ImageIO.createImageInputStream(srcFile);
    ir.setInput(iis);
    int nImageCount = ir.getNumImages(true);
    int h = ir.getHeight(0);
    int w = ir.getWidth(0);exteption:
    Exception in thread "main" java.util.NoSuchElementException
    at javax.imageio.spi.FilterIterator.next(ServiceRegistry.java:808)
    at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:502)
    at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:487)
    at imageanalizer.ImageLoader.run(ImageLoader.java:46)
    at imageanalizer.Main.main(Main.java:19)
    Java Result: 1

  • How to increase the image size without losing resolution in iPhoto?

    Dear All
    I have pics i took with my phone which is not an iphone, just little sony ericsson phone.
    Is there a way to increase the image size without losing resolution in iPhoto please? Or cheap 3rd party software or shareware perhaps?
    thank you very much.
    veedeekay

    iPhoto has no way to do that. You'll need an external editor for the job. Not all have the capability. I know Photoshop has.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Regards
    TD

  • E-mailing photos without reducing image size

    I have tried using the image size box in the message window (set at actual size) but still a 4MB photo in my aperture library is reduced to 400kB when I attach it to an e-mail. I'v spent far too long on this. Would appreciate help. Cheers.

    How are you getting from Aperture to Mail?
    Using File>Email from Within Aperture? This will reduce the pixel dimensions of the image according to the export preset chosen in Aperture's preferences.
    Dragging an image from the Aperture window into an email, or using the media browser? This will use the Preview file, and the pixel dimensions will be constrained by your Preview settings in Aperture, and will cause problems for people who aren't using Apple Mail because the image will be in Adobe98 not sRGB.
    Another question - what is the original file format? Even if the pixel dimensions are the same, 4MB to 0.4MB difference could be due to going from a TIFF or PSD to a JPEG.
    Ian

  • XML scrolling thumbnail, image loader, & Buttons [halfway works]

    Intro:
    I started a flash-based website a few years ago. Back in 2006 I was able to get a xml scrolling thumbnail, image loader to work without a glitch.
    For numerous reasons I had to put the project on hold until now. [one was that my 30 day trial of flash expired and only recently was I able to purchase the Adobe Web Suite CS4 as well as a new computer which could run the apps.]
    Last Friday saw a bump in the road in the development of my site as two, rather straightforward task, turned into something short of a nightmare as I have been unable to get past these two, seemingly, relatively simple task.
    I have posted in 4 other flash forums the issues, in detail, that I am facing - and have quite a bit of interest/views in the topic as the numbers suggest - yet no response/answer as of yet. [Which confirms other messages I have seen which seem to state that working with buttons has become increasingly difficult with the newer version of flash - something Im a bit surprised with actually from Adobe. - I would have thought there would be a palette where you could set parameters...]
    Screenshot of Site/Timeline:
    Before getting into the two questions I have, I would like to post an image of the site as it looks whenever an swf file is saved out, as well as a piece of the timeline in the back for reference.
    Issue #1
    As of now when the swf file is saved out you get exactly what you see above:
    a: A scrolling thumbnail
    b: ...which loads a large image when clicked on it - PEFECT...
    BUT...
    1a: I need for the buttons to load in this action, not for it to just load on its own.
    [i.e., the silk_paintings gallery is what is open, so I need the "silk_paintings" button to call up this action]
    note: Initially I had attacked this problem by taking out the actions layer you see above and applying it directly to the individual buttons with some crude MouseEvent Listener/Handerls... that did not work - at all.
    Im sure it may be "easier" to make an array out of it, but with my coding level it may be "easier" to apply it to the buttons.
    1b: How I currently see it, I would take the xml-list and duplicate it for the number of galleries I have.
    [I would then re-name the xml-list to reflect the name of the galleries they are to represent, i.e. "silk_paintings"]
    [also, I would have to rename the folders to "thumbnails1,2,3, etc., & "images 1,2,3, etc"
    From there I would duplicate the actions and paste it into the buttons, changing the xml-list name to that of "silk_paintings", etc., as well as write in the MouseEvent listener Handler to make it work. [ah, ha, but what is that magic phrase, I have tried to implement various code from other tutorials, and all in vein.]
    Issue #2
    At this point I would be tickled pink just to get this to basic function to work.
    However, once the buttons are working and calling up the xml, etc., then I need the buttons to stay on the semi-transparent blue color it is whenever in the 'hit' state. [note: NOT pictured above.]
    With the way the buttons are currently set up, and with wanting to use scripting to get them to interact with the thumbnail gallery, it will have to be some miraculous code to tell that button what color to stay as whenever its clicked, and of course it going back to white when another button is clicked.
    Conclusion:
    Since this is an Adobe Forum I would like to make a few additional statements in hopes that the developers, etc. may take heed.
    Adobes products are not cheap, and when I went to purchase the websuite I went in as a designer needing a program as not to need to program.
    I understand the flexibility that coding gives, but something as simple as linking buttons should not be in the realms of rocket science. [yes, for many its not...but my brain just does not operate that route despite all the tutorials thrown at me.]
    Again, it would seem that there would be a button panel where you could drag options like scrolling thumbnail slider, loader, and then parameters would come up. [much like Apples iWeb. - but before the argument of one being pro and the other for non-pros, I see it differently. Software should not be the limiting factor in how flexible you can design, or rather ones lack of programming shouldnt be. With all the talented, and I say this in all humility and honesty, programmers working for Adobe, Im sure something could be programmed like what Im asking for.]
    note: Director is a good example, back in 1997 I knew nothing of multimedia and in one week I had assembled a portfolio, clicking buttons, speech, movies, and all. - and no, I dont have the money to buy more software!
    At this moment I am at the mercy of someone who reads code like its a nighttime tale they are telling their kids, and who can see the exact issue I have and can share the appropriate, correct code. [as I have noticed, it has to be on target - naturally - but this target changes with just a slight change in the design.]
    Thank you,
    peace
    Dalen
    p.s.
    The actionscript: [note: This is only the current working/good code that Im trying to get the buttons to call up.]
    stop();
    fscommand("allowscale", false);//keep SWF display at 100%
    var x:XML = new XML ();//Define XML Object
    x.ignoreWhite = true;
    var fullURL:Array = new Array;//Array of full size image urls
    var thumbURL:Array = new Array;//Array of thumbnail urls
    var thumbX:Number = 25;//Initial offset of _x for first thumbnail
    x.onLoad = function(){ //Function runs after XML is loaded
        var photos:Array = this.firstChild.childNodes;//Defines variable for length of XML file
         for (i=0;i<photos.length;i++) {//For loop to step through all entry lines of XML file
              fullURL.push(photos[i].attributes.urls);//Each loop, adds URL for full sized image to Array fullURL
              thumbURL.push(photos[i].attributes.thumbs);//Each loop, adds URL for thumbnails to Array thumbURL
              trace(i+". Full Image = "+fullURL[i]+"  Thumb Image = "+thumbURL[i]);         
              var t = panel.attachMovie("b","b"+i,i);//Each loop, Define local variable 't' as a new instance of 'b' movie clip, given unique instance name of 'b' plus the index number of the For loop
              t.img.loadMovie(thumbURL[i]);// Each loop, load thumbnail image from XML data into variable movie clip
              t._y = 0;//Set Y coordinate of variable movie clip
              t._x = thumbX;//Set X coordinate of variable movie clip based on variable thumbX
              t.numb = i;//Set sub-variable 'numb' inside variable t to hold index number
              t._alpha = 75;//Set the Alpha value of the variable movie clip to 75% - for onRollOver highlight action
              thumbX += 55;//Increment thumbX value so next thumbnail is placed 125 pixels to the right of the one before
              t.onRollOver = function () {//define onRollOver event of the variable movie clip
                   this._alpha = 100;//Set thumbnail alpha to 100% for highlight
              t.onRollOut = function () {//define onRollOut event of the variable movie clip
                   this._alpha = 75;//Reset thumbnail alpha to 75%
              t.onPress = function () {//define onPress event of the variable movie clip
                   this._rotation += 3;//rotates thumbnail 3 degrees to indicate it's been pressed
                   this._x += 3;//Offset X coordinate by 3 pixels to keep clip centered during rotation
                   this._y -= 3;//Offset Y coordinate by 3 pixels to keep clip centered during rotation
              t.onReleaseOutside = function () {//define onRelease event of the variable movie clip
                   this._rotation -= 3;//rotate thumbnail back 3 degrees
                   this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during rotation
                   this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during rotation
                   this._alpha = 75;//Reset thumbnail alpha to 75%
              t.onRelease  = function () {//define onRelease function to load full sized image
                   this._rotation -= 3;//rotate thumbnail back 3 degrees
                   this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during
                   this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during
                   this._alpha = 75;//Reset thumbnail alpha to 75%
                   holder.loadMovie(fullURL[this.numb]);//Load full sized image into holder clip based on sub-variable t.numb, referenced by 'this'
         holder.loadMovie(fullURL[0]);//Initially load first full size image into holder clip
    x.load ("silk_paintings.xml");// path to XML file
    panel.onRollOver = panelOver;
    function panelOver() {
         this.onEnterFrame = scrollPanel;
         delete this.onRollOver;
    var b = stroke.getBounds(_root);
    function scrollPanel() {
         if (_xmouse<b.xMin||_xmouse>b.xMax||_ymouse<b.yMin||_ymouse>b.yMax) {
         this.onRollOver = panelOver;
         delete this.onEnterFrame;
         if (panel._x >= 740) {
         panel._x = 740;
    if(panel._x <= (thumbX-10))  {
              panel._x = (thumbX-10)
         var xdist = _xmouse - 830;
         panel._x += -xdist / 7;
    The xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <slideshow>
    <photo thumbs="thumbnails/i_brown_fairy.jpg"  urls="images/brown_fairy.jpg"  />
    <photo thumbs="thumbnails/i_blonde_fairy.jpg"  urls="images/blonde_fairy.jpg"  />
    <photo thumbs="thumbnails/i_flower_fairy.jpg"  urls="images/flower_fairy.jpg"  />
    <photo thumbs="thumbnails/i_red_fairy.jpg"  urls="images/red-fairy.jpg"  />
    </slideshow>
    Attached is a link to the file I made named "index".
    https://rcpt.yousendit.com/706233226/5e7b4fe0973dacf090b5cbae32c47398
    I would have liked to have included the following files but was limited due to "you-send-it" not uploading folders.  Files not included: [but functioning] : xml list - images [folder] - thumbnails [folder]
    Again, Thank you
    Dalen

    The issues with the buttons calling up the scrolling thumbnail panel have been resolved, as well as keeping the buttons in their hit state once clicked, thanks to Rob.
    Those that have been following this thread, or stumble upon it in their searches later, may appreciate to see the final solution to this particular issue.
    [Hopefully I will be able to update this thread with a url in the future to show the site in operation, which may help somebody with their project in the future if its set up similarly.]
    Alas, it would be nice if future versions of flash had a more direct, flexible, user friendly method for creating navigation.
    [We may see development beyond the flash ads which everyone seems to loathe... and more creativity with flash in terms of games, web interactivity, &  animation.
    Below are 2 sets of code:
    a] the first is located within the first frame of the first button, and has some extra variables in it that the additional buttons call upon...
    b] the second is the code applied to every other button.
    stop();
    fscommand("allowscale", false);//keep SWF display at 100%
    var x:XML = new XML();//Define XML Object
    x.ignoreWhite = true;
    var fullURL:Array = new Array();//Array of full size image urls
    var thumbURL:Array = new Array();//Array of thumbnail urls
    //  .......  CHANGE
    var thumbX:Number;// = 25;//Initial offset of _x for first thumbnail
    // make an array of all of the instance names of each button object...
    // only do this once
    var buttonsList:Array = new Array(shadesOfGrey, silkPaintings);
    shadesOfGrey.isLatched = false;
    // the rollover function... repeat for each button
    shadesOfGrey.onRollOver = shadesOfGrey.onDragOver=function ():Void {
         if (!this.isLatched) {
              this.gotoAndStop(2);
    // the rolloff function... repeat for each button
    shadesOfGrey.onRollOut = shadesOfGrey.onDragOut=shadesOfGrey.onReleaseOutside=function ():Void {
         if (!this.isLatched) {
              this.gotoAndStop(1);
    // the mouse press function... repeat for each button
    shadesOfGrey.onPress = function():Void  {
         resetAllButtons();
         this.isLatched = true;
         this.gotoAndStop(3);
    shadesOfGrey.onRelease = function():Void  {
         x.load("shadesOfGrey.xml");// path to XML file
         thumbX = 25;
    function resetAllButtons():Void {
         for (b in buttonsList) {
              buttonsList[b].isLatched = false;
              buttonsList[b].gotoAndStop(1);
    x.onLoad = function() {//Function runs after XML is loaded
         //  resets the position of the panel on each new load
         panel._x = 740;
         //  .......  CHANGE  removes the existing movieclips from the panel before any new load...
         for (c in panel) {
              if (typeof (panel[c]) == "movieclip") {
                   removeMovieClip(panel[c]);
         var photos:Array = this.firstChild.childNodes;//Defines variable for length of XML file
         for (i=0; i<photos.length; i++) {//For loop to step through all entry lines of XML file
              fullURL.push(photos[i].attributes.urls);//Each loop, adds URL for full sized image to Array fullURL
              thumbURL.push(photos[i].attributes.thumbs);//Each loop, adds URL for thumbnails to Array thumbURL
              //trace(i+". Full Image = "+fullURL[i]+"  Thumb Image = "+thumbURL[i]);
              var t = panel.attachMovie("b", "b"+i, i);//Each loop, Define local variable 't' as a new instance of 'b' movie clip, given unique instance name of 'b' plus the index number of the For loop
              t.img.loadMovie(thumbURL[i]);// Each loop, load thumbnail image from XML data into variable movie clip
              t._y = 0;//Set Y coordinate of variable movie clip
              t._x = thumbX;//Set X coordinate of variable movie clip based on variable thumbX
              t.numb = i;//Set sub-variable 'numb' inside variable t to hold index number
              t._alpha = 75;//Set the Alpha value of the variable movie clip to 75% - for onRollOver highlight action
              thumbX += 55;//Increment thumbX value so next thumbnail is placed 125 pixels to the right of the one before
              t.onRollOver = function() {//define onRollOver event of the variable movie clip
                   this._alpha = 100;//Set thumbnail alpha to 100% for highlight
              t.onRollOut = function() {//define onRollOut event of the variable movie clip
                   this._alpha = 75;//Reset thumbnail alpha to 75%
              t.onPress = function() {//define onPress event of the variable movie clip
                   this._rotation += 3;//rotates thumbnail 3 degrees to indicate it's been pressed
                   this._x += 3;//Offset X coordinate by 3 pixels to keep clip centered during rotation
                   this._y -= 3;//Offset Y coordinate by 3 pixels to keep clip centered during rotation
              t.onReleaseOutside = function() {//define onRelease event of the variable movie clip
                   this._rotation -= 3;//rotate thumbnail back 3 degrees
                   this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during rotation
                   this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during rotation
                   this._alpha = 75;//Reset thumbnail alpha to 75%
              t.onRelease = function() {//define onRelease function to load full sized image
                   this._rotation -= 3;//rotate thumbnail back 3 degrees
                   this._x -= 3;//Reset X coordinate by 3 pixels to keep clip centered during
                   this._y += 3;//Reset Y coordinate by 3 pixels to keep clip centered during
                   this._alpha = 75;//Reset thumbnail alpha to 75%
                   holder.loadMovie(fullURL[this.numb]);//Load full sized image into holder clip based on sub-variable t.numb, referenced by 'this'
         holder.loadMovie(fullURL[0]);//Initially load first full size image into holder clip
    // this one function scrolls the panel for all of the buttons, it gets the
    // size of the panel when the images are loaded by any given button...
    stroke.onEnterFrame = function() {
         if (this.hitTest(_xmouse, _ymouse, false)) {
              if (panel._x>=740) {
                   panel._x = 740;
              if (panel._x<=740-panel._width+mask._width) {
                   panel._x = 740-panel._width+mask._width;
              if ((panel._x<=740) && (panel._x>=740-panel._width+mask._width)) {
                   var xdist = _xmouse-830;
                   panel._x += -xdist/7;
    Of note is the change to how the movie clips are measured... this change in and of itself has really helped to make the thumbnail panels operation more efficient.
    Below is the script for each additional button: [Having issues with the forums not letting me post additional code, so I will put the remaining code in a reply below.]
    cont.

  • IE incompatible ? Image size.

    Hi,
    I know very little about HTML, CSS and the like but as a photographer I upload gallery webs all the time for clients etc. I generate these in PS CS2 or iView MediaPro and then upload to my server (shared web hosting).
    With a current project requiring a 'site' type environment I decided to try iWeb. Before visiting this site please note that due to image sizes with iWeb it's a bit on the heavy side and if you're using IE on a PC BEWARE of crashes! Safari may even crash as has done with me.
    http://www.kura-images.com/camping
    Remarks and problems :
    1. As you can see my site does not resemble any iWeb template - using the 'modern' template I basically threw everything away and designed from scratch. It's a great WYSIWYG appli in that sense - no code - just drag and drop, resize, add some effects etc. I published regulary to a folder as a way of double checking but was impressed with the 100% WYSIWYG capability of iWeb
    2. Image size is a MAJOR problem. My concerns are specifically with the gallery pages generated from the photo page temps. Thumbnails at 16ko is too big and the motor that generates the large image files uses a single parameter (800pixels largest dimension) that cannot be changed in any pref settings etc. It also uses a compression factor which is a tad too high. Using Image Ready or the PS gallery web function (driven by Image Ready) I can get as good visual quality for my web-optimised JPEGS for 65% of the file size.
    Note : I tried this file swap as a test
    I changed one image in the folder for the "activités" page (activities_008) - I made a smaller thumbnail in ImageReady and created a 600pixel version of the large file; I replaced the images in the folder with these and checked the site. The thumb appears no problem in a smaller size (btw 6ko vs 16ko - that's a big diff when you apply it to 250 images !). SlideshowJS however has instructions to open the image at main size as determined by the slideshow index file creation generated by iWeb. And that's written as 800pixels. So on opening the 600 pixel image I'd replaced, slideshowJS opened it to 800pixels (not pretty). The only way to rectify that was to go into the source code in the relevant 'activités' js file, find the codeline for the image 008 and change the values manually. And I'd have to do that with 250 line of code ! That rather defeats the prupose of having a nice easy application to produce your galleries.
    3. Upload to my server via Transmit was trouble-free. No problems publishing to a non .mac server.
    4. Problem with the page titles. The names you give to pages determines the URL. Any spaces means you get the %20 thing and if, like me, you're writing in French the accents mean that iWeb has to get around the problem in a different, and not very practical, way. iWeb creates a random character line as a name, and uses that as the URL for pages where accents appear in the title. When the assets and index page are published those long character names appear on the index file and folder.
    I also think that may lead to compatability issues with certain servers.
    5. But here's the BIG PROBLEM !
    I had 4 people with PC's and IE (God bless 'em) check out the site. 2 reported repeated crashes of IE (unexpectedly quit exe. error). No problems with the homepage - just when clicking on some of the photo pages. What is really strange is that neither had problems when accessing the 'La Soirée' page, but both had problems with all the others. Apparently the crash came after IE tried to load the page, succeeded in loading a few thumbnails and then stopped and crashed 5-10secs later.
    6. EVEN WORSE !
    I have gone back to my site several times, emptying Safari cache each time, and have succeded in stalling definitively Safari's attempts to load certain pages. Just stops with partial page upload. I then have to quit Safari and re-open to be able to access any web page (even other sites). Sometimes it's OK, sometimes not.
    This site goes officially live on wednesday morning but for now it's a no-goer. Just too erratic and not IE compatible.
    PLEASE, any suggestions ?
    Many thanks in advance
    Peter
    G5 2Ghz   Mac OS X (10.4.5)  

    4. Problem with the page titles. The names you give
    to pages determines the URL. Any spaces means you get
    the %20 thing and if, like me, you're writing in
    French the accents mean that iWeb has to get around
    the problem in a different, and not very practical,
    way. iWeb creates a random character line as a name,
    and uses that as the URL for pages where accents
    appear in the title. When the assets and index page
    are published those long character names appear on
    the index file and folder.
    I also think that may lead to compatability issues
    with certain servers.
    Yes, it is best to avoid spaces and accents and special characters if you can. If you must have them in your navigation links, then don't use the iWeb nav bar. Instead give your pages very short simple names with the Inspector, uncheck the box for "include in nav bar," and just create ordinary hyperlinks for page navigation. I don't know if this will help with IE compatibility, but it can't hurt.

  • This is about the still image size changing from what I see on the computer monitor and what the burned DVD shows on the TV

    I have Prem.El 12 and have used PE4 for years.  I have a new PC that runs Win7Pro.  The still images on the computer monitor are within the "safe margins".  The still images after the movie has been burned to a disk are MUCH smaller on the TV screen.  Is this an issue of 16:9 vs 4:3 ratios?  My TV is 4:3.  Can I tell PE12 to make the movie a 4:3?

    retchemteach
    Although I have seen your post of today in my Inbox Email Notifications, that post has not yet appears in this thread. It will probably will sooner or later. But, to keep things moving along....this is a copy of what I am seeing as your message of today in my Indox Email Notifications
    Thank you for your patience in the time it is taking me to get back to you.
    I am still trying to buy some DVD-RW discs and will hopefully do that in a
    bit.  Meanwhile, I have more info for you and some simple (I hope)
    questions.  If you want to insert your answers, that would be fine.
    My camera (for stills and video) is set to the 4:3 ratio.  It is capable of
    being set to a 16:9 ratio if I wanted to do that.  I looked in its TOOLS
    menu and saw this info.
    My TV is definitely a 4:3 TV.  (I measured it with my tape measure and
    divided W/L to get 1.33)  The TV can show a 16:9 movie and just adds the
    black bars on the top and bottom.  Question: What will my old 4:3 movies
    look like on a 16:9 TV whenever we buy one of those?
    It seems to me that I want to set PE12 to the NTSC DV Standard you
    mentioned.
    I do NOT know how to “size your photos so that each has a 4:3 aspect”,
    unless you mean doing that in Photoshop Elements, which I know how to do
    (*see below)
    I had NOT considered that I would need to watch the preset for the
    ‘Publish+Share’ step; so that’s good to know (I copied and pasted your info
    for later use).
    BTW, years ago when I had difficulties with my XP computer working on PE4
    (had only 2 GB RAM), an Adobe tech told me to resize my photos * to have a
    720 pixel width (the height would be automatically adjusted) to lower the
    file size to something my computer could handle without crashing.  (That
    was back in the good ol’ days when Adobe support would actually talk with
    their customers and try to help them in the first month)
    My new computer has 16GB RAM.  Do you think I still need to reduce file
    size?  One does lose some sharpness in the resizing process…..however,
    these videos I’m making are travelogues and are for a fun way to view pics
    and videos of a trip…nothing Earth shattering….and just a hobby to keep me
    off the streets.
    I truly appreciate the time you take to help me (and others).  I was even
    tempted to try to install my old PE4 on my new computer just to be able to
    enjoy my hobby again.
    My reply to the above....
    1. If you camera is giving you 4:3 photos and your Premiere Elements 12/12.1 is running on Windows 7, 8, or 8.1 64 bit, then leave
    the photos as is unless you have a lot of photos and each has pixel dimensions sizes way over 1920 x 1080 pixels that are giving your computer resource issues. If you have to down size them because of computer resources, then copy the photos to a computer desktop folder and also create an empty folder on the computer desktop.
    a. Photoshop Elements Editor, File Menu/Process Multiple Files.
    Process Files form Folder
    Source - browse to and select the computer desktop folder with photos to be resized
    Destination - browse to and select the empty computer desktop folder
    Image Size
                 Check Mark Next To Resize Images
                (no check mark next to Constrain Proportions)
                Type in Width = 1000  (set units for pixels)
                Type in Height = 750 (set unites for pixels)
    File Size
               Check Mark Next to Convert Files To
               Set for JPEG High Quality
    The above should work fine for a NTSC DV Standard project with a burn to DVD disc with preset NTSC_Dolby DVD (4:3 video).
    2. With regard to the TV Set and 16:9 video....when you have the DVD-player attached to the TV, do you have the opportunity to bring up a display of menus with
    controls for Picture and Aspect Ratio? From what you have written so far, it looks like the answer is no. I am not sure how your TV DVD
    player will handle 16:9.
    Best do a mini test run
    1. Project preset set manually to NTSC DV Widescreen (please refer to post 1 link)
    A few photos sized for 1600 x 1200
    In the Premiere Elements project, use the Safety Margins inner rectangle for text placement
    Publish+Share/Disc/DVD disc with preset = NTSC_Widescreen_Dolby DVD.
    See what that looks like on your TV DVD player.
    If you discovered that your current TV DVD player can be set for a 16:9 display, then I have a preferred workflow for
    NTSC DV Widescreen which typically gives best possible results. Hints of things to come.
    Please review and consider. Thanks for the follow ups.
    ATR

  • InDesign CS3 Scripting XML Import Multiple Images into same Text Frame

    I am having trouble importing multiple images into the same Text Frame using XML import. I imported 5 images into the text frame. However, all 5 images are laying on top of one another. Does anyone know if there is a way to have all images laying out like how Microsoft Word handles inline images, i.e., laying out next image to the right of previsous image in the same line and if there is not enough space left in the line, then wrap to next line. Thanks in advance. I understand I could use JavaScript to do post import processing, e.g, calculate the image size and place each images accordingly. But I am trying to see whether there is a way to do this without scripts.

    You can apply an object style to all anchored images by script. A text frame containing main flow should be selected.
    var doc = app.activeDocument;
    var textFrame =  app.selection[0];
    var rectangles = textFrame.texts[0].rectangles;
    if (rectangles.length > 0) {
         for (var i=0; i < rectangles.length; i++) {
              rectangles[i].appliedObjectStyle = doc.objectStyles.item("Cover");
    However, there is a better approach:
    Step 1
    Create place holders for a single "Book" element and format it as needed -- apply an object style to the cover.
    Step 2
    Import the xml file -- the placeholders are replaced with data from the 1st xml element
    Step 3
    Drag & drop the element containing all "Books" elements into the main flow -- all elements are placed and formatted the same way as in step 1.
    Finally, add a new page, click the overset text icon and autoflow text to add pages so that to fit all the text.
    Hope this helps.
    Kasyan

  • When I export from Lr to CS3 my image size is 8x12 roughly, why?

    I shoot RAW with a 5d mark2 I export from lr to cs3 in my workflow. I am wanting to create a gallery wrap at an image size of 24x36, when I go to create my negative space my exported image size from Lr is only 8x12, why would that be? I don't know what to do or how to make my image larger without loosing quality? I have never noticed this before? Why is it doing this now?

    It will be the settings in your export menu.
    clsmithphoto wrote:
    I shoot RAW with a 5d mark2 I export from lr to cs3 in my workflow. I am wanting to create a gallery wrap at an image size of 24x36, when I go to create my negative space my exported image size from Lr is only 8x12, why would that be? I don't know what to do or how to make my image larger without loosing quality? I have never noticed this before? Why is it doing this now?
    Check this out for how to export: http://tv.adobe.com/search/?q=exporting

Maybe you are looking for

  • Concurrent Program Open in XML format Instead of PDF in R12

    Hi , I register 1 concurrent program and set its output in "XML" also attach this CP with XML template , when i run CP it show warning but output show in XML format instead of PDF format which is define in XML Template . Below text is log file of CP

  • When changing to Live View Images do not display...

    Yesterday I was working on my website and it is still in the early stages so currently I have just a single image worked into my design.  When I was changing between my code and the live view everything was displaying just fine.  I saved my work yest

  • Can I enter Masterdata in BPS layout ?

    Hi, I want to create a BPS layout to enter the masterdata. Is it possible to maintanin masterdata through BPS layouts ? If so what are the configurations I need to change for the corresponding Info Object ? any suggestion is eagerly awaited D Bret

  • Using iphoto with iview

    I am trying to set up a simple system for archiving and backing up photos using the best combination of iview and iphoto. As far as i understand, iphoto makes copies of the original photos to store in its own folder, and iview simply mnakes pointers

  • Help!-Scratch disk has died now PS4 wont open

    The hard Drive I use for a scratch disk in photoshop has died. Unfortunately now Photoshop CS4 wont load because the disk is 'unavailable'. How can I change the scratch disk if photoshop won't even load?? Is there a way around this problem? Can I for