Question about image loading problem

Dear Java Gurus,
I am writing a simple Java Applet application. Basically what it does is every 3 seconds, it tries to get an image from a server and display it (also based on the browser�s client size to do some resize of the image to fit the width of the browser�s client area). But frequently I got this kind of exceptions:
----------------------------- Exception 1 --------------------------------------
Uncaught error fetching image:
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at sun.awt.image.PNGFilterInputStream.read(Unknown Source)
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.awt.image.PNGImageDecoder.produceImage(Unknown Source)
at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
at sun.awt.image.ImageFetcher.run(Unknown Source)
----------------------------- Exception 2 ------------------------------------------
sun.awt.image.PNGImageDecoder$PNGException: crc corruption
at sun.awt.image.PNGImageDecoder.getChunk(Unknown Source)
at sun.awt.image.PNGImageDecoder.getData(Unknown Source)
at sun.awt.image.PNGFilterInputStream.read(Unknown Source)
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.awt.image.PNGImageDecoder.produceImage(Unknown Source)
at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
at sun.awt.image.ImageFetcher.run(Unknown Source)
Which will cause the image goes to blank in the browser and also degreed down the performance, and I do not know where they are coming from. I tried to put try-catch blocks at possible method calls, but still it does not catch these kind exceptions.
---------------------------- My Source Code ----------------------------
import java.io.*;
import java.awt.*;
import java.net.*;
import java.util.*;
import java.applet.*;
import javax.swing.*;
import java.awt.event.*;
// This is for Popup Menu
class PopupListener extends MouseAdapter
JPopupMenu popup;
PopupListener(JPopupMenu popupMenu)
popup = popupMenu;
public void mousePressed(MouseEvent e)
maybeShowPopup(e);
public void mouseClicked(MouseEvent e)
maybeShowPopup(e);
public void mouseReleased(MouseEvent e)
maybeShowPopup(e);
private void maybeShowPopup(MouseEvent e)
if (e.isPopupTrigger())
popup.show(e.getComponent(), e.getX(), e.getY());
// Image Component who contains the image and will be hosted in the ScrollPane
class ImageComponent extends JComponent
Image onscrImage;
Dimension comSize;
ImageComponent(Image image)
onscrImage = image;
setDoubleBuffered(true);
comSize = new Dimension(onscrImage.getWidth(null), onscrImage.getHeight(null));
setSize(comSize);
public synchronized void paint(Graphics g)
super.paint(g);
g.drawImage(onscrImage, 0, 0, this);
public Dimension getPreferredSize()
return comSize;
// Update the image with new image
public void setImage(Image img)
onscrImage = img;
comSize = new Dimension(onscrImage.getWidth(null), onscrImage.getHeight(null));
setSize(comSize);
// The main Applet hosted in the browser
public class MWRemotingApplet extends JApplet
//Media Tracker to manage the Image loading
MediaTracker medTracker;
Image my_Image;
// ScollPane who contains the image component
JScrollPane scrollPane;
ImageComponent imgComp;
// The applet base URL and image filename passed from htm who hosted the Applet
URL base;
String filename;
// Schedules getting the image
private java.util.Timer timer;
private int delay = 3000;
private boolean bFitToBrowser = false;
private int iVScrollbarWidth = 20;
// Popup Menu
JPopupMenu jPopupMenu;
JMenuItem popupMenuItem;
public void init()
// Set the layout to GridLayout then the it can fill in the Applet
setLayout(new GridLayout());
try
// getDocumentbase gets the applet path.
base = getCodeBase();
// Get the image file name from the parameter
filename = getParameter("filename");
catch (Exception e)
JOptionPane.showMessageDialog(null, "Failed to get the path and filename of the image!", "Message", 0);
return;
// Create the Media Tracker
medTracker = new MediaTracker(this);
// Download the image from the remote server
// If the image width is greater than the width of the current browser client area
// Resize the image to fit the width
// This is because for some reason, this will lead to image not refreshing
DownloadImage();
//Add the popup menu
jPopupMenu = new JPopupMenu();
popupMenuItem = new JMenuItem("Fit to Browser");
popupMenuItem.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent event) {
bFitToBrowser = !bFitToBrowser;
if(bFitToBrowser)
popupMenuItem.setText("Original Size");
FitToBrowser();
else
popupMenuItem.setText("Fit to Browser");
DownloadImage();
if(my_Image != null)
imgComp.setImage(my_Image);
jPopupMenu.add(popupMenuItem);
// Create the image component
imgComp = new ImageComponent(my_Image);
//Add listener to the image component so the popup menu can come up.
MouseListener popupListener = new PopupListener(jPopupMenu);
imgComp.addMouseListener(popupListener);
// Create the scroll pane
scrollPane = new JScrollPane(imgComp);
scrollPane.setDoubleBuffered(true);
// Catch the resize event of the Applet
addComponentListener(new ComponentAdapter()
public void componentResized(ComponentEvent e)
super.componentResized(e);
if(bFitToBrowser)
FitToBrowser();
else
DownloadImage();
if(my_Image != null)
imgComp.setImage(my_Image);
//Add Components to the Applet.
add("Center", scrollPane);
validate();
// Start the timer to periodically download image
// from remote server
public void start()
timer = new java.util.Timer();
timer.schedule(new TimerTask()
//creates a timertask to schedule
// overrides the run method to provide functionality
public void run()
DownloadImage();
if(my_Image != null)
imgComp.setImage(my_Image);
, 0, delay);
public void stop()
timer.cancel(); //stops the timer
public synchronized void DownloadImage()
if(my_Image != null)
my_Image.flush();
my_Image = null;
try
my_Image = getImage(base, filename);
catch (Exception e)
my_Image = null;
return;
medTracker.addImage( my_Image, 0 );
try
medTracker.waitForAll();
if ( my_Image != null )
medTracker.removeImage(my_Image);
catch (InterruptedException e)
JOptionPane.showMessageDialog(null, "waitForAll failed while downloading the image!", "Message", 0);
catch(Exception e1)
System.out.println("Get Exception = " + e1.getMessage());
e1.printStackTrace();
if(bFitToBrowser)
FitToBrowser();
else if(my_Image.getWidth(null) > this.getSize().width)
FitToWidth();
// Resize the image to fit the browser width and height
public synchronized void FitToBrowser()
if(my_Image != null)
my_Image = my_Image.getScaledInstance(this.getSize().width - 5, this.getSize().height - 5, java.awt.Image.SCALE_SMOOTH);//java.awt.Image.SCALE_AREA_AVERAGING);//java.awt.Image.SCALE_SMOOTH);
medTracker.addImage( my_Image, 0 );
try
medTracker.waitForAll();
medTracker.removeImage(my_Image);
catch (InterruptedException e)
JOptionPane.showMessageDialog(null, "waitForAll failed!", "Message", 0);
catch (Exception e1)
System.out.println("Get Exception = " + e1.getMessage());
e1.printStackTrace();
// Resize the image to fit the browser width only
public synchronized void FitToWidth()
if(my_Image != null)
int fitHeight = (int)((this.getSize().width - iVScrollbarWidth)*(my_Image.getHeight(null)+0.0)/my_Image.getWidth(null));
my_Image = my_Image.getScaledInstance(this.getSize().width - iVScrollbarWidth, fitHeight, java.awt.Image.SCALE_SMOOTH);
medTracker.addImage( my_Image, 0 );
try
medTracker.waitForAll();
medTracker.removeImage(my_Image);
catch (InterruptedException e)
JOptionPane.showMessageDialog(null, "waitForAll failed!", "Message", 0);
catch (Exception e1)
System.out.println("Get Exception = " + e1.getMessage());
e1.printStackTrace();
}

[url http://forum.java.sun.com/thread.jsp?thread=518979&forum=14]Please[url http://forum.java.sun.com/thread.jsp?thread=518977&forum=32] do[url http://forum.java.sun.com/thread.jsp?thread=518973&forum=37] not[url http://forum.java.sun.com/thread.jsp?thread=518978&forum=42] crosspost. Or [url http://forum.java.sun.com/thread.jsp?forum=7&thread=518976]double-post. Or post to the wrong forum. Or use non-sense subject.

Similar Messages

  • Question about Finder-Load-Beans flag

    Hi all,
    I've read that the Finder-Load-Beans flag could yield some valuable gains in performance
    but:
    1) why is it suggested to do individual gets of methods within the same Transaction
    ? (tx-Required).
    2) this strategy is useful only for small sets of data, isn't it? I imagine I
    would choose Finder-Load-Beans to false (or JDBC) for larger sets of data.
    3) A last question: its default value is true or false ?
    Thanks
    Francesco

    Because if there are different transactions where the get method is called
    then the state/data of the bean would most be reloaded from the database. A
    new transactions causes the ejbLoad method to be invoked in the beginning
    and the ejbStore at the end. That is the usual case but there are other ways
    to modify this behavior.
    Thanks
    Gaurav
    "Francesco" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi thorick,
    I have found this in the newsgroup. It's from R.Woolen answering
    a question about Finder-Load-Beans flag.
    "Consider this case:
    tx.begin();
    Collection c = findAllEmployeesNamed("Rob");
    Iterator it = c.iterator();
    while (it.hasNext()) {
    Employee e = (Employee) it.next(); System.out.println("Favorite color is:"+ e.getFavColor());
    tx.commit();
    With CMP (and finders-load-beans set to its default true value), thefindAllEmployeesNamed
    finder will load all the employees with the name of rob. The getFavColormethods
    do not hit the db because they are in the same tx, and the beans arealready loaded
    in the cache.
    It's the big CMP performance advantage."
    So I wonder why this performance gain can be achieved when the iterationis inside
    a transaction.
    Thanks
    regards
    Francesco
    thorick <[email protected]> wrote:
    1) why is it suggested to do individual gets of methods within thesame Transaction
    ? (tx-Required).I'm not sure about the context of this question (in what document,
    paragraph
    is this
    mentioned).
    2) this strategy is useful only for small sets of data, isn't it? Iimagine I
    would choose Finder-Load-Beans to false (or JDBC) for larger sets ofdata.
    >
    If you know that you will be accessing the fields of all the Beans that
    you get back from a
    finder,
    then you will realize a significant performance gain. If one selects
    100s or more beans
    using
    a finder, but only accesses the fields for a few, then there may be some
    performance cost.
    It could
    depend on how large some of the fields are. I'd guess that the cost
    of 1 hit to the DB per
    bean vs.
    the cost of 1 + maybe 1 more hit to the DB per bean, would usually be
    less. A performance
    test using
    your actual apps beans would be the only way to know for sure.
    3) A last question: its default value is true or false ?The default is 'True'
    -thorick

  • Some question about image component

    Hi,
    I encounter two questions when using image component and can't solve it myself after reading online document.
    1. How can I get image source at runtime? I find image.source return an Object class, but not the source image path.
    2. How to ensure image loading image correctly? In my itemRenderer, I set image source with this
    source="{appURL}+{data.picname}"
    I am sure there's no problem with the path, but it shows a broken image. What's the right way?
    Thanks,

    Try adding the images to the container dynamically
    var img : Image = new Image();
    img.load("{appURL}+{data.picname}")
    img.addEventListener(Event.COMPLETE,imageLoaded);
    private function imageLoaded(event:Event):void
                  var img : Image = event.currentTarget as Image;
                   // now add the img to the container
    cheers
    Varun Rathore
    http://www.vrathore.blogspot.com

  • Questions about the load processing of OpenSparc T1 Dcache

    Hi,
    I have some questions about OpenSparc T1 Dcache load processing.
    During load processing, subsequent loads to the same address need to search the store buffer for a valid store to that address. If there is a CAM hit, data is sourced from the store buffer, not from the D-cache, and no load request will be sent to the L2.
    What if there is no CAM hit. Would the load request be sent to L2? Or would Dcache be checked for the requested data?
    If the load request would be sent to L2, what next? Would the Dcache be updated?
    Thanks

    Store buffer is checked for Read after Write (RAW) condition on loads. If there is full RAW - i.e. full data exists in the store buffer - then the data is bypassed and no D cache access happens.
    If RAW is partial (e.g. word store followed by a double word load) then load is treated as a miss. Store is allowed to complete in L2 cache and then load instruction is completed.
    For the miss in STB, D cache is accessed. If hit, data is fetched from D$. If miss, data is fetched from L2$ and allocated in D$.

  • Question about image slideshow (like mac file preview)

    Hello!Ι have a question about Adobe Edge.is it possible to create a photo slide show like mac's file preview? i mean smthg like this  https://www.youtube.com/watch?v=Q727LqDIZKM

    Hi, TasisGrafix2-
    Edge Animate doesn't support css3d natively, but you can use a third party library such as edgehero.js to make this work.
    http://www.edgehero.com/edgeherojs.html
    Good luck!
    -Elaine

  • Flash newbie questions about slow loading site

    Hi all. I am new to Flash and web-site building in general and I have been learning while doing. Its fun, but frustrating. I really need some help, hope someone out there with Flash experience can give me some advice.
    My problem is this: I built a Flash website, but it is painfully slow to load up (3-5 minutes via cable modem) when I visit the site (via Firefox, etc). Once it does load up, everything is fine with navigation. I'm having a hard time figuring out why its taking so long to load up on the web because, basically, I don't know how to trouble shoot. Hope you guys can help!
    Details: the site is just a portfolio site with pictures and a few motion-things, no complicated animations. The swf file is about 9MB. I do have a flash preloader, but it doesn't show up until after the 3-5 minute "load-up" time. When I do the testing via Flash, its Ok and doesn't show the lag. But once I upload the website files and try to visit my website, the load time problem occurs.
    My thoughts:
    - do I have to purge my Flash file/library of unused images before creating my swf file?
    - Is there a problem with my html code in my index file?
    - because it is a portfolio site, I've got about 90 images on it, each image about 300-400K.  Is this too big, or about right?
    Please help! Sorry for the long email, just desperate for help. Thanks in advance for any advise!!!! Just in case, here is the html code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Acme Company</title>
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <style type="text/css">
    <!--
    body {
    background-color: #000000;
    -->
    </style>
    <link href="favicon.ico" rel="icon" />
    </head>
    <center>
    <body>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','800','heigh t','600','title','Acme Company','vspace','100','src','development files/company site_AS2_2008 OCT_final','loop','false','quality','high','plugin spage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgco lor','#000000','scale','exactfit','movie','develop ment files/company site_AS2_2008 OCT_final' ); //end AC code
    </script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="600" vspace="100" title="Acme Company">
    <param name="movie" value="development files/comapny site_AS2_2008 OCT_final.swf" />
    <param name="quality" value="high" /><param name="BGCOLOR" value="#000000" /><param name="LOOP" value="false" /><param name="SCALE" value="exactfit" />
    <embed src="development files/company site_AS2_2008 OCT_final.swf" width="800" height="600" vspace="100" loop="false" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#000000" scale="exactfit"></embed>
    </object></noscript>

    Yeah I'm with Ned on this one. Dynamically loading your images is the way to go. The fact that you are new to Flash, try this tutorial (http://www.entheosweb.com/Flash/loading_external_images.asp). As you move along in learning Flash, look for tutorials on actionscript arrays and loading images dynamically. Arrays allow you to call each images from a folder outside your fla. That way your site moves right along without much loading time.
    Hope I was of help,
    -Sly

  • Sony TG5V vs Sanyo Xacti HD1010: A QUESTION ABOUT IMAGE STABILIZATION

    i have decided to return my new Sony TG5V handycam since discovering that it does not have an external mic jack for interviews that I plan on doing. The return will not be a problem, but my new question is this:
    I did some preliminary research last night and found that the Sanyo Xacti HD1010 is very similar to the Sony TG5V, and it/the Xacti HD1010 does indeed have an external mic jack, so that solves the microphone requirement.
    Reviews have said, however, that the Sanyo HA1010 has poor IS (Image Stabilization) and that in fact, the Sony TG5V has a much better IS. I even saw some comparisons, and it is obvious that the Sony stabilizes better.
    HOWEVER: *Since I am going to edit with iMovie '09, which has a fine Image Stabilizer/Non Shake feature, would that make up for the bad shake in the raw footage?* More precisely: Would the same footage I shoot come out just as smooth with the Sanyo Xacti HD1010 with poor IS as it would come out with my Sonya TG5V and the iMovie '09 Image Stabiizer, working double time, so to speak?
    And also: I am still looking for a small, lightweight videocam that I can carry in my purse. I do not need or want a larger one. I have a larger Sony that I never use. I welcome any suggestions.
    Thank you.
    ~L

    I just bought an Xacti HD2000, convinced by what now seems to be pure "hype" about much more rapid transfer and editing in iMovie but don't see any improvement over my Canon HG20 which ricords in AVCHD. In any case, iFrame is 30fps. Sanyo made a big pitch about Xacti, iFrame and the Mac but turns out all the software and the manuals are about Windows. My requests for assistance of Sanyo got zero results, after the automated response. If you want I'll sell you my Xacti.

  • Image loading problem in OS X browsers

    This is a really perplexing.
    When I'm surfing around, Safari refuses to load some images on pages. It happens randomly but most reliably on MySpace.
    Here's what I typically see on a user's MySpace page...
    http://img198.imageshack.us/my.php?image=ss0zv.png
    Safari states in its activity window for the two blue question marks that it "can't connect to host".
    If I cut and paste the URLs in question to Mozilla or Firefox, I get the same "cannot connect to host" messages.
    However, if I were to open the same profile on my Windows PC, all browsers, here at work it shows just up fine.
    In fact here's a link of one of those pics which doesn't show for me using any browser on my Mac.
    http://myspace-421.vo.llnwd.net/00677/12/41/677381421_m.jpg
    Safari's full bomb on the naked URL is:
    "Safari can't open the page http://myspace-421.vo.llnwd.net/00677/12/41/677381421_m.jpg because it could not connect to the server myspace-421.vo.llnwd.net"
    Thanks in advance for your help.

    You are welcome.
    BTW, is it just MySpace you are having problems with? If so, the way their pages are coded may be the cause of problems with non-Windows browsers.
    In Safari, you can always go to Safari > Report Bugs to Apple when you are on a misbehaving page to report the problem. Clicking on "More Options" will allow you to attach page source code and/or a screenshot (you will not get an acknowledgment, but they do look at all bug reports).

  • Image loading problem in all OS X browsers

    This is a really perplexing.
    When I'm surfing around, Safari refuses to load some images on pages. It happens randomly but most reliably on MySpace.
    Here's what I typically see on a user's MySpace page...
    http://img198.imageshack.us/my.php?image=ss0zv.png
    Safari states in its activity window for the two blue question marks that it "can't connect to host".
    If I cut and paste the URLs in question to Mozilla, Firefox or IE, I get the same "cannot connect to host" messages.
    However, if I were to open the same profile on my Windows PC, all browsers, here at work it shows just up fine.
    In fact here's a link of one of those pics which doesn't show for me using any browser on my Mac.
    http://myspace-421.vo.llnwd.net/00677/12/41/677381421_m.jpg
    Safari's full bomb on the naked URL is:
    "Safari can't open the page http://myspace-421.vo.llnwd.net/00677/12/41/677381421_m.jpg because it could not connect to the server myspace-421.vo.llnwd.net"
    It has to be an OS issue if it's a problem across all browsers right?
    I'm really stumped at this one and would be appreciative if anyone has any ideas.
    Thanks in advance for your help.
    PowerBook G4   Mac OS X (10.4.6)  

    You are welcome.
    BTW, is it just MySpace you are having problems with? If so, the way their pages are coded may be the cause of problems with non-Windows browsers.
    In Safari, you can always go to Safari > Report Bugs to Apple when you are on a misbehaving page to report the problem. Clicking on "More Options" will allow you to attach page source code and/or a screenshot (you will not get an acknowledgment, but they do look at all bug reports).

  • Image loading problem on internet Explorer

    Hello EveryBody
    I am doing an java game.My starting class is a class that extends JApplet.Then I am calling a class that extends JFrame.Then i am calling a class which extends a canvas.In the constructor of my canvas class i call a method loadImage(),which loads all the images used in my game.My game is working fine in appletViewer.but it is not working in internet Explorer.When I commennted the method loadImage() inside consructor of canvas class ,then my game is working on internet Explorer.I think there is some problem in loading the images.I am using .png images,which has a size of 87.2KB only which is very little as compared to an PC game.plz help me
    Regards
    Srikant

    internet explorer by default uses the MSVM (microsoft's version of the Sun VM). This VM only runs Java 1.1 code. You can check if this is the problem by using this 1.1-compliant applet below:
    import java.applet.*;
    import java.awt.*;
    public class Test extends Applet {
         public void init() {
              setLayout(new FlowLayout(FlowLayout.CENTER));
              add(new Label(System.getProperty("java.version")));
    }compile that code with these parameters:
    javac -target 1.1 Test.javause this HTML:
    <applet code="Test" width="400" height="400"></applet>when you run the applet in Internet Explorer, if you see anything about "Java 1.1" or something similiar, then the problem is that IE is using the MSVM instead of the Sun VM.
    You may want to also run this applet in Mozilla Firefox, because Firefox uses the correct JRE that is installed on the system. If the applet running in Firefox does NOT say 1.1 (e.g 1.4, 1.5, etc), then you have the correct JRE. In this case, go to Internet Explorer -> Tools -> Internet Options -> Advanced. Scroll down this list until you see the checkmark that says "Use JRE x.x.x for <applet> tag (requires restart)." Ensure this box is checked.
    If that box is already checked, or if the applet in Firefox also says "1.1," then you probably don't have the latest JRE installed. See http://java.com/ to grab the latest JRE.

  • Firefox + Apple store = image load problems

    I've had this problem for a very long time. I prefer Firefox (Safari is extremely slow for me) and it loads every site just fine, even all of Apple.com pages, except for the Apple store.
    Here is a screen shot of part of what I see in Firefox:
    http://img156.imageshack.us/img156/1406/picture1gn0.jpg
    As you can see, just about every image is missing. I've already checked my adblock and I'm pretty positive it's not blocking the images. I even tried disabling my adblock and still didn't see any differences.
    I've used Firefox for a very long time. Since before Firefox 2. I don't recall when the images stopped appearing, since I don't visit the store often.
    Safari loads the images, but as I said, it's an extremely slow web browser, which is why I use Firefox.
    Any help on getting those images to load in Firefox would be greatly appreciated.

    I experienced a very similar problem. I'm running Firefox 2.0.0.12 (latest update) on a PC under Win XP.
    It looks like all the javascript is being ignored. Instead, I see a VERY plain HTML web page for the Apple Store. Everything else on the Apple website looks great.
    But after checking, I noticed that there are a ton of images from
    http://a248.e.akamai.net
    And Adblock has this site nailed.
    So I turned the adblocker off (actually, I just enabled this web address), and the site is now usable.
    Hope this helps.
    -scott biggs

  • Follow up question about image not looking good in canvas-Shane?

    I guess this is a follow up question for Shane....
    You wrote this in response to someone a year ago which helped me out.
    Shane's Stock Answer #49 - Why is the quality different between what I see in the Viewer and what I see in the Canvas?
    Well... the viewer is just that-- a viewer. It will display anything that fcp will recognize as usable video or graphics. The canvas is a viewer too, but at the pixel dimension specified by the settings of your project and sequence.
    For example, if your graphic or footage is much higher resolution than your 720x480 DV sequence, FCP is interpolating down your file to fit the settings of the sequence. Usually this makes it look not so hot. DV is a 5:1 compression working with a 4:1:1 color depth. Your pristine picture images and graphics are being crushed.
    Same with picture files. HIgh res pics now adopt the sequence settings and will render to those specs, and most likely they are not as high quality.
    So, based on your answer, I made an HDV sequence, dropped my DVCPro50-NTSC footage and my tiffs into the sequence and now the stills look great. Is this an okay workaround or do you have another suggestion? I'm worried about this HD sequence taking too long to make a compressed QT from in the end.
    Thanks!

    Photo JPEG is a good option.  But this all depends on what your final output will be.  If you are going to make a DVD, then that is SD, so using an HD sequence setting makes no sense.  Photo JPEG is good, but not realtime in FCP.  DV50 or ProRes NTSC are good options.
    Unless you are making an HD master...in which case ProRes 422 for HD is good

  • Bizarre image load problem in InDesign CS2

    Hi, I am having a problem with bringing in some images into InDesign CS2. I have a document file that has many images in place, and I just received some new images that are screenshots from video. They are saved as rgb jpgs. They are 2700x1963 pixels and 300dpi (so someone obviously did some conversion from screen res.)
    When I try to bring them into an image box in InDesign, I do command D, then select the image. It acts like its loading it but then nothing is in the box. I thought perhaps the image was just hidden outside of the edge of the box but when I go to "fitting" under the "OBJECT" menu, all the options are greyed out as if there is no image there. It also shows no image linked in the links panel.
    I tried opening in photoshop and resaving, and also tried resaving as another name. I tried changing it to cmyk and adjusting the levels and resaving as tif. I tried making a new photoshop file and copy-and=pasting the image into it and saving. Still, no image will load in the image box.
    I feel like the images must have corrupted since they were sent to me as email attachments, but its so odd that they open in photoshop just fine. Any ideas?

    nevermind, people.
    my computer was having memory overload. on a whim I restarted the computer.
    BAM...no issue.
    You know what they always say, "When all else fails, restart your computer!"

  • CSS Image loading problem by dynamically loading from fxml file?

    h1. Introduction
    The application I am developing loads an FXML file from a Controller. The FXML uses CSS and images for buttons are set in the CSS.
    CSS directory structure
    <package>.fxml
    Images
    <package>.fxml.resources.<subdir>
    Example CSS Code
    .buttonImage {
        -fx-background-image: url("resources/subdir/image.png");
    }Example loading fxml from controller code
             URL location = getClass().getResource("/package/fxml/UI.fxml");
             FXMLLoader fxmlLoader = new FXMLLoader(location);
             fxmlLoader.setLocation(location);
             fxmlLoader.setBuilderFactory(new JavaFXBuilderFactory());
             Parent root = (Parent)fxmlLoader.load(location.openStream());
             Controller = (Controller) fxmlLoader.getController();
             newPane.getChildren().add(root);h1. Problem
    The fxml file does not load and causes the following error:
    javafx.fxml.LoadException: Page language not specified.Note, the fxml file loaded correctly before images were added.
    Any ideas of what might be going wrong?
    h1. Attempted
    I have attempted the following: tried changing the url of the image as an absolute path.

    No Problem: Note, this is the actual FXML, my previous examples were simplifications of package names and class names in order to directly illustrate the problem. Note, I am using SceneBuilder to develop the FXML file.
    <?xml version="1.0" encoding="UTF-8"?>
    <?import java.lang.*?>
    <?import java.net.*?>
    <?import java.util.*?>
    <?import javafx.collections.*?>
    <?import javafx.scene.*?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.layout.*?>
    <?import javafx.scene.text.*?>
    <AnchorPane id="AnchorPane" prefHeight="396.0000999999975" prefWidth="350.0" styleClass="mainFxmlClass" xmlns:fx="http://javafx.com/fxml" fx:controller="com.monkygames.kbmaster.controller.ProfileUIController">
      <children>
        <Label layoutX="14.0" layoutY="14.0" text="Profiles">
          <font>
            <Font size="18.0" />
          </font>
        </Label>
        <GridPane layoutX="15.0" layoutY="44.0" prefHeight="99.0" prefWidth="335.0">
          <children>
            <Label text="Type: " GridPane.columnIndex="0" GridPane.rowIndex="0" />
            <ComboBox fx:id="typeCB" prefWidth="249.0" GridPane.columnIndex="1" GridPane.rowIndex="0">
              <items>
                <FXCollections fx:factory="observableArrayList">
                  <String fx:value="Item 1" />
                  <String fx:value="Item 2" />
                  <String fx:value="Item 3" />
                </FXCollections>
              </items>
            </ComboBox>
            <Label text="Program: " GridPane.columnIndex="0" GridPane.rowIndex="1" />
            <ComboBox fx:id="programCB" prefWidth="249.0" GridPane.columnIndex="1" GridPane.rowIndex="1">
              <items>
                <FXCollections fx:factory="observableArrayList">
                  <String fx:value="Item 1" />
                  <String fx:value="Item 2" />
                  <String fx:value="Item 3" />
                </FXCollections>
              </items>
            </ComboBox>
            <Label text="Profile: " GridPane.columnIndex="0" GridPane.rowIndex="2" />
            <ComboBox prefWidth="249.0" GridPane.columnIndex="1" GridPane.rowIndex="2">
              <items>
                <FXCollections fx:factory="observableArrayList">
                  <String fx:value="Item 1" />
                  <String fx:value="Item 2" />
                  <String fx:value="Item 3" />
                </FXCollections>
              </items>
            </ComboBox>
          </children>
          <columnConstraints>
            <ColumnConstraints fillWidth="false" halignment="RIGHT" hgrow="NEVER" maxWidth="-Infinity" minWidth="10.0" prefWidth="80.0" />
            <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
          </columnConstraints>
          <rowConstraints>
            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
            <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
          </rowConstraints>
        </GridPane>
        <HBox layoutX="14.0" layoutY="150.0" prefHeight="159.0" prefWidth="335.0">
          <children>
            <Label text="Description: " />
            <TextArea prefHeight="172.0" prefWidth="247.0" wrapText="true" />
          </children>
        </HBox>
        <HBox alignment="CENTER" layoutX="11.0" layoutY="334.0" prefHeight="48.0" prefWidth="329.0">
          <children>
            <Button fx:id="newProfileB" contentDisplay="GRAPHIC_ONLY" minHeight="48.0" minWidth="48.0" mnemonicParsing="false" onAction="profileEventFired" prefHeight="48.0" prefWidth="48.0" styleClass="newProfile" text="New Profile" />
            <Button id="newProfileB" fx:id="cloneProfileB" contentDisplay="GRAPHIC_ONLY" minHeight="48.0" minWidth="48.0" mnemonicParsing="false" onAction="profileEventFired" prefHeight="48.0" prefWidth="48.0" styleClass="cloneProfile" text="Clone Profile" />
            <Button id="newProfileB" fx:id="importProfileB" contentDisplay="GRAPHIC_ONLY" minHeight="48.0" minWidth="48.0" mnemonicParsing="false" onAction="profileEventFired" prefHeight="48.0" prefWidth="48.0" styleClass="importProfile" text="Import Profile" />
            <Button id="newProfileB" fx:id="exportProfileB" contentDisplay="GRAPHIC_ONLY" minHeight="48.0" minWidth="48.0" mnemonicParsing="false" onAction="profileEventFired" prefHeight="48.0" prefWidth="48.0" styleClass="exportProfile" text="Export Profile" />
            <Button id="newProfileB" fx:id="printPDFB" contentDisplay="GRAPHIC_ONLY" minHeight="48.0" minWidth="48.0" mnemonicParsing="false" onAction="profileEventFired" prefHeight="48.0" prefWidth="48.0" styleClass="pdfProfile" text="Print to PDF" />
            <Button id="newProfileB" fx:id="deleteProfileB" contentDisplay="GRAPHIC_ONLY" minHeight="48.0" minWidth="48.0" mnemonicParsing="false" onAction="profileEventFired" prefHeight="48.0" prefWidth="48.0" styleClass="deleteProfile" text="Delete Profile" />
          </children>
        </HBox>
      </children>
      <stylesheets>
        <URL value="@master.css" />
        <URL value="@profile.css" />
      </stylesheets>
    </AnchorPane>Edited by: 960799 on Jan 4, 2013 8:58 PM
    Edited by: 960799 on Jan 4, 2013 8:59 PM

  • Image load problem

    i have a problem...
    i have a list of images in the home page and the images are
    fetched from the database.
    when i browse the site, if i click a menu item(which changes
    the state.) before all the images have been loaded, it creates a
    problem: it goes back to the previous(home page) state and shows
    all the images, another menu item being highlited.
    please somebody suggest what to do for avoiding this.

    i solved it down myself.
    what i went wrong is i changed the state in result handler of
    http service call.

Maybe you are looking for

  • How can I change my iCloud email and password?

    How can I change my iCloud email and password ? My iCloud password can't open my iCloud account any more

  • How to create a new BARCODE PREFIX   (for SAPScripts)

    In SE73 transaction, we can create a NEW printer barcode. For this we require 'barcode prefix' .There are some SAP standard barcode prefixes(for eg.SBP01)...but I want to create a new barcode prefix.. Please let know how to create a new BARCODE PREFI

  • Problem in running mapping in OWB using an expert

    Hi All, My requirement is to run the mapping in OWB using an expert.I created an expert using OWB and associated the mapping with the expert using Add/Remove expert option.I validated and generated the expert.But when i run the expert through start o

  • The "basic" section of the develop module suddenly disappeared, how do I get it back

    I was in the develop module, click to move down to the detail section when the app flashed and the "basic" section was gone.  I have no idea what I clicked and am not able to establish the "basic" section.  Any ideas?

  • Viewing Images

    Hi, I just got a new computer and transferred Dreamweaver on to it. I went to update my site and cannot view any of my images. All I see are the broken icons (I think that is what they are). I can not see my flash buttons either - all I see is the F.