Tips for a better Looping image display?

I have a rather simple and large (file size) image display
here for a website in sacramento:
www.norcaldesigns.com/cLandscapes
the image loop is just one image that moves on the timeline
and returns to frame one at the end. I would love some advice or
links to examples of better ideas for looping image display.
Thanks!
-Jesse

Assuming that this is a valid concept (sorry, as a user I
find it quite annoying and dizzying after awhile), one of the
approaches to speed it up in the beginning - split the image into
several ones and load them one by one or in groups so that first
few to show load, naturally, first. Then you will need to append
them to the strip.
It would be much more scalable to keep the reference to the
images in an XML so that should you remove or add images -
everything is done in the XML and you don't have to recompile every
time.
Also, I would set a higher frame rate (around 30fps) -
animation looks a bit jerky.
If the presentation of many images is important - perhaps
another type of transition should be considered (not scrolling but,
say, blending via alphas or something). In addition to the movement
being dizzying, there is very little time to appreciate the
images.

Similar Messages

  • How do i create a Count for the no. of images displayed on stage

    i am a total newbie in flash ! & currently making a simple mcq quiz.
    each stage will have three choices of answers (A/B/C)
    every correct answers will be displayed an image :
    var myQ1a:URLRequest=new URLRequest("tick.png");
    in the end, how can i count the number of images displayed in the overall flash and display it.
    or.. perhaps you have other options on how can i display the scores.

    Hi.
    here's my code :
    stop();
    aa1.addEventListener(MouseEvent.CLICK, ona1Click);
    bb1.addEventListener(MouseEvent.CLICK, onb1Click);
    cc1.addEventListener(MouseEvent.CLICK, onc1Click);
    next1.addEventListener(MouseEvent.CLICK, onNext1Click);
    home1.addEventListener(MouseEvent.CLICK, onHome1Click);
    var Q1a:Loader;
    var Q1b:Loader;
    var Q1c:Loader;
    var Q1next:Loader = new Loader();
    var Q1home:Loader = new Loader();
    //the name of the function has to match what you're calling from the event listener
    function ona1Click(evt:MouseEvent):void {
    Q1a = new Loader();
    bb1.removeEventListener(MouseEvent.CLICK, onb1Click);
    cc1.removeEventListener(MouseEvent.CLICK, onc1Click);
    var myQ1a:URLRequest=new URLRequest("wrong.png");
    Q1a.load(myQ1a);
    addChild(Q1a);
    Q1a.x=320;
    Q1a.y=180;
    function onb1Click(evt:MouseEvent):void {
    Q1b = new Loader();
    aa1.removeEventListener(MouseEvent.CLICK, ona1Click);
    cc1.removeEventListener(MouseEvent.CLICK, onc1Click);
    var myQ1b:URLRequest=new URLRequest("tick.png");
    Q1b.load(myQ1b);
    addChild(Q1b);
    Q1b.x=320;
    Q1b.y=260;
    function onc1Click(evt:MouseEvent):void {
    Q1c = new Loader();
    aa1.removeEventListener(MouseEvent.CLICK, ona1Click);
    bb1.removeEventListener(MouseEvent.CLICK, onb1Click);
    var myQ1c:URLRequest=new URLRequest("wrong.png");
    Q1c.load(myQ1c);
    addChild(Q1c);
    Q1c.x=320;
    Q1c.y=340;
    //next1.addEventListener(MouseEvent.CLICK, onNext1Click);
    function onNext1Click(evt:MouseEvent):void {
    if(Q1a)
    removeChild(Q1a);
    if (Q1b)
    removeChild(Q1b);
    if(Q1c)
    removeChild(Q1c);
    gotoAndPlay(2);
    //home1.addEventListener(MouseEvent.CLICK, onHome1Click);
    function onHome1Click(evt:MouseEvent):void {
    gotoAndPlay(17);
    this code is on the 1st frame. this will go on till the 15th frame. i wonder where i can put the codes you've given me ..

  • Exchange 2013 with Outlook 2013 - Not getting pop-up or mail tips for attachments exceeding max size

    Our environment is Exchange Server 2013 CU3 and Outlook 2013 in cached mode. We have a transport rule that sets the max attachment size to 20 mb.
    If someone sends an attachment larger than 20 mb they receive an NDR letting them know the message wasn't delivered because it exceeded the max attachment size. We would like for the user to be prevented from sending the message at all or to at least
    get a mail tip before they try to send the message. The Outlook pop-up message that says "The file you're attaching is bigger than the server allows. Try putting the file in a shared location ..." isn't being generated for us. Not sure if that's
    because we're running Exchange or not. If that pop-up isn't going to work it would be nice if the user could at least get a mail-tip warning them that the attachment exceeds the limit. But it doesn't look likes there's a mail-tip for attachment size, only
    for message size. And, I've found that the message size mail-tip only works if the limit is set on the user. It doesn't seem to work if the limit is set via a transport rule.
    Has anyone else gotten Outlook to present the pop-up or a mail-tip when exceeding attachment size? Any help you can offer would be greatly appreciated.

    Thanks but I performed all of those trouble shooting prior to posting to the forum. But, I have found the answer!
    After referring to this article;
    http://technet.microsoft.com/en-us/library/bb124345(v=exchg.150).aspx
    I removed the 10mb default limits from the organization config and chose to set the attachment and message size limits in our environment via transport
    rules instead. That is the only way you can actually set an attachment size limit.
    I had read this article several times searching for an answer;
    http://support.microsoft.com/kb/2813269#appliesto
    The key is here;
    "If you are using an Exchange Server account, the 20-MB attachment
    limit for Internet email accounts is not used by Outlook 2013. Instead, Outlook uses the limit that is configured on your Exchange server. To modify the setting that is used to control the size of a message that is sent through an
    Exchange Server account, follow these steps."
    The steps that follow are for Exchange 2010 but they show setting organization limits not server limits. And note that it
    says the size of a message, not the size of an attachment. Since mail-tips for message size are not displayed when the limit is set via the transport rules I thought it
    was possible that the same inconsistency might apply to the attachment pop-up warning. I set the organization limits and voila! The pop-up now displays when an attachment that exceeds the message size limit is added to a message.
    This is exactly what I wanted. Now users won't fill up their sent items trying to send large attachments that just bounce anyway.
    It would be wonderful if Microsoft would provide information about what features of Outlook are affected when you apply message size limits at the
    various levels. 

  • Tips for avoiding "noisy" images in low-light

    Hi all,
    I noticed that there are a lot of users here who are complaining of noisy images especially in low-light. I'm not a professional photographer or anything but I have been playing a lot with the camera of my Xperia Z1 and I did have noisy images also at first.
    Here is my tip: Use these settings:
    Go to Manual Mode.
    Shoot in either 8MP 4:3 or 16:9 (don't worry about not making use of the 20MP, because its still doing oversampling to improve the quality of the 8MP image by making use of the whole 20MP sensor).
    Set Stabilizer to off
    ISO to Auto (if you prefer more detailed images, set ISO to a lower value but take note of the exposure of the image and that there is a chance of motion blur due to the longer shutter speed necessary to capture low light at low ISO)
    WB Auto (or your preference).
    With the setting I use above, I've seen improvements on low-light capability (indoors, artificial lighting, or night outdoor scene for example) and quality of my camera pictures. Note though that this will not be applicable for extreme low-light. Its very normal to capture really noisy images when shooting in extreme low-light (even my dedicated compact camera has troubles too).
    Here is my theory why its taking noisy images by default. In Superior Auto, I analyzed the EXIF data of the pictures I've shot. It seems that Superior Auto is really excessive in bumping up the ISO (thus resulting in more noisy images) to compensate for having a faster shutter speed (reduced motion blur). Thus what you get is a noisy image that is bright and freezes the motion. For example, test it out that in Superior Auto, even minute movements of the phone will trigger the Sports Mode (running man icon near the button) prioritizing a faster shutter speed at the cost of a higher ISO.
    Another reason I have for turning off the Stabilizer in Manual Mode is the same. In contrast to Steady Shot used in recording movies (sensor based shift to compensate for handshake movements), I think the Stabilizer option basically just bumps up the ISO also to compensate for handshake movements. I"m not entirely 100% sure but so far, I've been satisfied with taking images with the Stabilizer Off.
    Please feel free to test it out and report the results if there have been improvements. I'm still testing it out too! One of the things I wish for Sony to put in the Camera App are just these 3 things: 
    1.) Holding Shutter Key will open the Camera app with the LAST CONFIGURED SETTINGS
    2.) Maximum ISO can be set in Manual Mode
    3.) Scene AUTO mode for Manual Mode (I know it might be redundant but it would be nice to have Auto mode for 4:3 orientation images).
    Again, hope to hear from others what are their settings or if they notice any improvements in images captured.
    Thanks!

    Hi, there is a FAQ related to this topic.
    http://talk.sonymobile.com/t5/FAQ/Capture-better-photos-in-low-light-conditions/m-p/395397#U395397
    Don't forget to mark correct answer as Accepted Solution.
    If you find the post helpful, press Kudos.

  • Any way for one VI to dynamically update images shown in another VI's Image Display control?

    I've just discovered (in LV v7.0) that, while I can wire to it, I cannot write image data to a "value" input terminal of a property node associated with an Image Display. When the VI runs I get this error:
    "IMAQ Vision: (Hex 0xBFF6051A) The Image Display control does not support writing this property node."
    (I must admit that I have to wonder why we are allowed to wire to it, if all it does is generate this error)
    Is there any way for one VI to dynamically update images shown in another VI's Image Display control?
    I am not interested in using IMAQWindDraw windows.

    OK, I have found one way to simultaneously access one VI's image data within another VI without the use of globals. I don't know if it makes use of a known feature of image data that will be with us forever or if it is a bug that will disappear sometime in the future...
    It seems that if I create an image data stream in one VI using IMAQ CREATE and name the data stream "ABC" and then create an image data stream in another VI using IMAQ CREATE and also name that data stream "ABC" then in fact they are both the same data streams and they can be read or written by either VI.
    Using this feature I can write the common data stream in one VI and using a shared occurrence or semaphore let the other VI know when it is OK to display the data from the common stream.
    This method requires that the displaying VI needs to have a while loop around the image display which is not nearly as simple as a display that is updated automagically by another VI writing to a VALUE input that is referenced back to the Image Display. I'd still like to know if there is some way to make that work.
    One corollary to this is that if you have several image data streams in use in a system (they can be in totally separate VI's, running independently) and you don't want them tromping on each other's image data then you need to make sure that they (the image data streams) get created with different names. An example of a place where this might bite you (and where I discovered this "feature") is to have multiple copies of the same VI with different names to do image acquisition and display from multiple cameras. Being copies of the same VI, they all had the same image data stream names, defined as constants, within them. When they were run simultaneously, the image data from all of the multiple cameras randomly appeared in all of the image displays. I don't know if this feature would hold up if the separate VI's were turned into separate executables and then run. Do any of you know if this sharing of image data streams with common names works across executables running on the same machine?

  • Producer loop and 2 consumer loop for acquisition and process images

    Hello everybody,
    I'm quite a newbie in Labview 2011 on Windows 7.
    Those are what I want to do :
    Step 1: When the objects fall with velocity around 2 to 5 m/s, images of these objects will be acquired continuously from PCIe 1433 with Basler spL4096-39kc.
    Step 2: The processing of the images continuously in the same time with step 1 will find the datas of the objects in images as colors, patterns and locations. If the patterns and colors at location are as the same sample, the elements in Boolean data array are true.
     Step 3: Every 01 millisecond, values from Boolean data array will be read, the valves of nozzle will be opened if the values are true.
     My question is what is the best way to do my tasks ? I couldn't find any example of program in Labview and I think I use producer/consumer architecture for step 1 and 2 but I don't know how can I set up producer loop for step 3 and transfer Boolean data array from step 2 to step 3 ?
    Thank you for reading and help me !

    Dear Eric-J,
    Thanks for your reply. I want sort the pellets that have 6mm diameter. The pellets were fed in a single layer by a vibratory feeder with a flat-bottom trough, 400mm wide that was supplied with the feeder . The pellets dropped off the end of the feeder onto a chute with 40 parallel U-shaped grooves. Images of these pellets will be acquired continuously. I make the sample from image that was acquired. I use NI Vision for processing  of the images. If the patterns and colors of pellets are as the same sample, the elements in boolean data array are true. As you thought, I would like to interpret data every millisecond and open/close a valve based on the boolean array. The air valve sends a burst of air for 2 - 3 milliseconds to an air nozzle that diverts the pellets into the appropriate channel.
    What are your ideas for this task ? Could you explain more clearly about "a real time system" and "determinism" for this task ?
    Thanks and best regards

  • Using IMAQ Image Display control vs IMAQ WindDraw for large image files

    Hello All;
    I am designing an application that is currently using IMAQ Image Display control to view large images (5K x 3K and larger).  My problem is that these images take 10-20 seconds to load and display, whereas if I use IMAQ WindDraw to display my image in a separate window, it only takes a couple of seconds.  My application is designed such that I am making use of the Subpanels in LabVIEW 8.0, and to make it pleasant for the user, the interface is such that my line profile, histograph and image viewer displays are contained within the same GUI (panel).
    I read the National Instruments application note regarding displaying of large images, and it did not seem to make a difference.  For example, I switched the 'modern' IMAQ Image Display control with the classic Image Display control, since the 'classic' does not contain any of the 3D rendering tools which might slow the process down.
    Why is there such a huge difference in loading times if I am trying to do exactly the same thing with both methods?  How can I bring the IMAQ Image Display control up to the same speed as the IMAQ WindDraw tool?
    I am currently using LabVIEW 8.0 with the latest IMAQ/NI Vision package from NI (IMAQ v7.1?).  Thanks.
    DJH

    Use a property node and select 16 bit image mapping. You can create a control for this or whatever you need. If you select the individual elements, you can get enumerated controls.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Creating a "Tool Tip"  for an image

    Is there a dreaweaver extension for creating a "tool tip" for
    an image, or how do i create one?
    Thanks for your help
    Jim

    Jim,
    Put your tooltip text in the title attribute.
    HTH,
    Randy
    > Is there a dreaweaver extension for creating a "tool
    tip" for an image, or how do i create one?

  • IMAQ WindDisplayMapping...for Vision Image Display Control?

    The IMAQ WindDisplayMapping operates on an IMAQ window display. Is there an equivalent fx that will operate on the Vision Image Display Indicator that can be placed on LabVIEW front panel? (Or do I need to code up the equivalent fx?)
    Thanks,
    Don

    Use a property node and select 16 bit image mapping. You can create a control for this or whatever you need. If you select the individual elements, you can get enumerated controls.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • Tips for DPS publishing for display on ipad & widescreen TVs

    Im looking into the use of ipad as a presentation controller, for connection to an HD TV (using HDMI?, apple TV? ideas?) for display.
    At the moment Ive designed folios horizontal at 768x1024 for ipad screen but should I instead be designing them at 1080 tall since the TV display for my audience is the priority?
    If I do that what happens to the ipad screen during display? does it cut off the edges? or squeeze to fit? or does it display at all?
    Ideally I would like the TV screen to display my folio full screen (without any black bars) but still be able to control, swipe and control interactivity from the ipad.
    Anyone have experience and tips for setting this up?
    thanks

    This question is related to AirPlay, not dps.
    When you mirror your iPad to an apple tv the output is always the same in 4:3 aspect ratio. This is for anything: the home screen, the web, games, magazines. Only videos might play in full screen on the apple tv.
    —Johannes

  • Mirrors for beta iso image?

    Are there any mirrors which host the iso's for the beta?  I'm been manually searching through the mirrors and have been unable to find one so far.

    Ok.  Nevermind.
    I never looked in the "other" folder on the mirrors.

  • Hopefully useful tips for endless processing

    I also posted this in reply to another user, but I think it might be useful enough to others that I will post it here so it's not so buried.
    I'm just starting, after many, many hours, to see the light at the end of the tunnel with Aperture 3. I think A3 offers some great options, and is a diamond in the rough -- very, very rough, even in v3.0.1.
    But I think I have some VERY USEFUL TIPS for you here (again this is after a lot of learning by pain... 4 different attempts to "upgrade" my A2.1.4 library (42K images about 200GB of images).
    1st, and possibly most importantly the "SHIFT" key is your friend. You can use it when you restart A3 to stop the endless processing loop that A3 would fall into every time I upgraded or imported my library to A3 (or 3.01). All you need to do is hold down the "SHIFT" key while restarting A3, this should top all previously stuck processing as you upgrade your library. So use this tip after you first upgrade/import your library, if the processing bug hits. Then you have to be patient and go though your library and figure out where the problem files are (Apple has done a LOUSY job in not identifying what specific images A3 is processing in the "Activity Window" -- Let Apple know if this really bugs you)
    2nd, at this point you will need to systematically go through your library and figure out where the "problem" files are and "fix" them (in my case all of these worked just fine in 2.1.4 - go figure). I would start by generating thumbnails for all of the images in a project, one project at a time (I had 150 some in my library). When you get stuck in the "processing" loop again, you can restart A3 using the "SHIFT" trick, and maybe just try a chunk of images within that same project until you find where things fail again, and until you can get to the offending image (if it's a problem you won't be able to generate a thumbnail for the image -- and A3 will go into endless "processing" mode)
    3rd, this sound like a horribly tedious process and it is. But I can offer you some useful tips. In my case, and others as well apparently, a lot of the offending files are 16-bit PSD or TIFF images, especially if they had adjustments applied in A2.1.4. In my case I had fewer than 50 of these, so I exported an original and a jpg for each of these files. I re-imported the jpg and deleted the PSD/TIFF from A3 (I kept the exported original for future use). These files would then generate thumbs without endlessly processing. The other type of file that I ran into problems with were stitched panoramic images (often over 30MP) that I had applied adjustments to in A2.1.4. I simply removed the adjustments and the generated thumbs for them (worked like a charm).
    4th, download some good podcast, music or audiobook... this will take a long time.
    Cheers, and look me up in FaceBook I started a group called "Apple Please Fix Aperture"

    Danny,
    Funny you should mention this.... (actually it makes you look a bit like a "schill", even though you are not)... nope, as far as I can tell there is no way to tell which specific images are causing A3 to grind to a halt.
    Hence my comment:
    "(Apple has done a LOUSY job in not identifying what specific images A3 is processing in the "Activity Window" -- Let Apple know if this really bugs you)" and similar previous ones in other posts.
    I wonder if Steve, yes that one, knew about this, being the perfectionist he seems to be, if he would have this feature included in Activity Monitor ASAP, or more likely it would have just been fixed by now (more of a "one-button" solution). Anyone have his house #?
    In any case, I please let me (us) know if this helps resolve your problems... and consider joining the Facebook group as well and maybe we can hope for a much better 3.x.x version in the very near future.

  • Indesign image display is very slow and jerky

    good morning
    I contacted Adobe Customer Service in Italy because I have big problems with the Creative Suite CS 5.5, in particular with Indesign and in general with the display of images of AI and Acrobat.
    As I work with Indesign image display is very slow and jerky. Even with AI and Acrobat work experience is not good, the images are jerky and there are hesitations in the fluidity of view.
    The software is installed on windows 7 64bit Utlimate, the workstation is very powerful: Supermicro motherboard, dual Xeon E5620 2.4ghz, 16gb ram, SSD OCZ vertex4, PNY Nvidia Quadro 4000.
    The customer service has sent me several tips for email, I have followed all the instructions but I did not get results. In conclusion, when I pointed out that reading on the forums I was not the only one who showed this problem and after discussing about my hardware configuration, they told me that the problem is probably due to the fact that I have two Xeon processors!
    In efects had observed that CS 5.5 on my notebook works better, but I never thought about having problems because the PC is powerful. I checked the CPU and GPU when using Indesign and I could see that uses a single CPU, and most "only 1 core"! But of CPUs in the system there are two for a total of 8 cores. Indesign seems to use only 1/8 of the available computing power ... In addition, practically does not use the GPU (only 10-15%).
    From the customer service was suggested to disable or remove a processor from the system. All this seems to me incredible. I use the workstation for applications that can take advantage of the power of the machine, should I remove the processor whenever I have to use CS 5.5? If things are this way I'm thinking of asking if Adobe buy me a PC with a single processor only for use with CS 5.5 ...
    Thank you.

    Interesting idea, I'll investigate in this direction, I should try to make a mirror of the ssd on a traditional hard drive, exchange them and see if the situation changes. It must, however, be a further factor in the eventual bad combination hardware ... on my laptop I have: windows 7 x64, intel core i7 processor, 16gb of ram, nvidia quadro 3000m, and .... a ssd ocz agility 3, but indesign is more responsive.
    But why indesign should be influenced by the hard-drive? With 16gb of ram and working files on NAS because in design interacts with the hard drive?

  • Why does moving the mouse over an IMAQ image display slow the GUI down so much?

    I have a large application with several vi's running simultaneously under labview 8.6.1.  When I mouse over an image display control in one of the vi's, everything slows down a shocking amount in all the other vi's.  The windows task manager does not show a large increase in CPU use.  My pc is has a quad cpu with 4GB of RAM, and the CPU and memory loads do not appear to be terribly taxing to the system.  However, many of my vi's apparently come almost to a standstill if I just move the mouse in a circle around my image control.
    This looks like it is largely a GUI display issue.  If I make a new vi and put a while loop in it that only displays the iteration loop number to an indicator, I can see the iterating occurring, then stopping totally when I mouse inside the image display control.  When I stop moving the mouse inside the control, or when I move it outside the control, the interation loop number jumps up, as if it had been incrementing behind the scenes the whole time.  So only display of the interating was halted.
    This problem occurs even if the vi with the image control is not executing.  If the vi with the image control is open but not running, and I mouse over the image on it, the other guis all come to a screeching halt.
    Does mousing in the image display control really utterly crush all other guis in all other labview windows?  Is this an issue inherent to the image display control?  If so, is there anything I can do about this? 
    Also, this issue is not entirely limited to display.  I started looking at it in greater detail because this issue also exposed what I think is a race condition in my code.  I have a vi that acquires an image from a ccd and puts it into an IMAQ image.ctl.  This image then gets passed up to a vi up the call chain, and is put on a queue and sent over to be de-queued by a vi that has the image display control.  Here's the kicker:  when I mouse over the image display control, the image successfully gets acquired inside the subvi, and if I probe the wire leading to the output IMAQ image display.ctl, I see the image.  If I simultaneously probe the wire coming out of the subvi one level up the call chain, the image gets lost about half the time.  This only happens if I am mousing in the image display control IN A TOTALLY DIFFERENT AND SEPARATE VI.  If I bump up the priority of the ccd image acquisition vi to 'highest priority', the problem only happens about 1% of the time, and I really have to mouse around to make it happen.  Still, it's disturbing that mousing in the GUI in one window results in a failure of a separate subvi to simply pass an image up the call chain.  I understand that IMAQ images are referenced rather than passed by value, but I don't see why there should be a failure to pass the image up the call chain.  I've looked for a race condition, but can't find one.
    Eric

    I have finally been able to replicate the behavior that you are seeing on another computer once the image was large enough.  Here are a few notes about this behavior:
    First. The UI only slows down when the images are large, 16 bit images.  The reason why this is unique to 16 bit images is that they can only be displayed on the front panel as 8 bit images.  The workaround that Weiyuan suggested to change the 16 bit display mapping hints towards the root of the problem...that any time a mouse runs over the indicator, Windows asks the entire image to re-draw (having a separate indicator overlapping the image will create the same behavior).  With a 16 bit image, not only does the image have to re-draw on the screen but the 16 bit pixels need to be mapped to 8 bits.  When setting the 16 bit display mapping to Full Dynamic, this requires mor computation/pixel than 90% dynamic or one of the other mapping schemes.
    This is expected behavior if your program is running and you're trying to display a large 16 bit image.  To fix this behavior there are a couple options:
    Change the 16 bit display mapping to something other than full dynamic.  You can choose which 8 bits to display or if you want to map the bits. 
    Resize the image just for viewing purposes on your front panel (since you aren't going to view every single pixel of you image on the screen). You can use the IMAQ Resample.vi to do this.  This will allow you to take your 1500x1500 pixel image and only display a 500x500 pixel version.
    If you are interested in viewing small details of the large image, consider just displaying a smaller region of interest at a time.
    Let me know if any of these solutions work for you.  Good luck on your application.
    Zach C.
    Field Engineer
    Greater Los Angeles

  • Go back to old image display

    I just updated to Firefox 11 and the new image display is awful. When I go to an image URL (like this http://www.google.com.br/images/srpr/logo3w.png ) it's displayed with a dark background. It would be better if the background was soft grey... but it's too dark!
    Is there a way to use the old image display, with white background or changing the background color?

    <strike>I don't think that you can use code in userContent.css to fix this</strike>.<br />
    <strike>There is no selector possible to set the background-color for the body if there is only an img (body > img:only-child) on that page.<br />
    Only a script would be able to accomplish that AFAIK.</strike>
    It looks that I'm wrong about this.
    *http://userstyles.org/styles/58710/firefox-11-change-image-view-background
    *http://forums.mozillazine.org/viewtopic.php?f=38&t=2443535
    Add this code to userContent.css in the chrome folder
    *http://kb.mozillazine.org/userContent.css
    <pre><nowiki>@-moz-document regexp("((.*\\.(png|apng|jpg|jpeg|gif|tiff|bmp))|(^data:image\\/.*))(\\?([^#]*))?(#(.*))?") {
    html > body { background-color: #E8E8E8 !important; }
    html > body > img:only-child { background-color:#fff !important; box-shadow: none !important; margin: 0 !important; }
    </nowiki></pre>
    * resource://gre/res/TopLevelImageDocument.css

Maybe you are looking for