7 Replies Latest reply on Nov 13, 2011 12:43 PM by TimAnderson

    Any way to display an eps in a webviewer

    TimAnderson

      I have an asset management module for a client that uses a webviewer to display/play the images/movies. This is working great but the webviewer does not render an eps image, even though I can open the eps file in a browser on the same machine and it displays perfectly.

       

      Is there any way round this? I have considered creating a thumbnail from the eps, exporting it and using that instead but Troi File cannot create a thumbnail friom the eps, neither can CNS Image.

       

      Using this on Mac, 10.6.x, Safari. The eps images are created in Illustrator and save with a mac preview.

       

      Thanks anyone

       

      Tim

        • 1. Re: Any way to display an eps in a webviewer
          RayCologon

          t1manderson wrote:

          Using this on Mac, 10.6.x, Safari. The eps images are created in Illustrator and save with a mac preview.

           

          Hi Tim,

           

          I was surprised to read your message because in my experience, web viewers can display most eps images without difficulty.

           

          Just to double check against your system and configuration, I saved a clip of part of your message as an eps file, and was able to see it in a web viewer in this file created in FMPA 11.0v4 on a machine running OSX 10.6.8:

           

          EPS.png

           

          Granted, I saved this example eps file out of Photoshop, not Illustrator, using default settings. But if your eps file will display in Safari, it should display in a web viewer also. Have you tried with files saved with different settings, or located elsewhere on your machine (or on a different machine) to see if you can better pinpoint the cause of the problem?

           

          Regards,

          Ray

          ------------------------------------------------

          R J Cologon, Ph.D.

          FileMaker Certified Developer

          Author, FileMaker Pro 10 Bible

          NightWing Enterprises, Melbourne, Australia

          http://www.nightwingenterprises.com

          ------------------------------------------------

          1 of 1 people found this helpful
          • 2. Re: Any way to display an eps in a webviewer
            jrenfrew

            Tim,

             

            Ray is right - even complex Illustrator files get rendered by the browser.

             

            To go from eps or ps to image is ridiculously complicated in Jave as there are almost no rendering libraries, and the better ones just use ImageMagik or Ghostscript, both of which are not easy toys to play with.

             

            What about loading the eps into an iFrame and using HTML5 canvas to capture the screen contents to a png (simialr to Todd's GoSign methodology....)?

            1 of 1 people found this helpful
            • 3. Re: Any way to display an eps in a webviewer
              TimAnderson

              Thanks pixi, but I need the eps to stay as eps

              • 4. Re: Any way to display an eps in a webviewer
                MicheleOlson

                Another option Tim would be to use SuperContainer from 360Works.

                <http://www.360works.com/supercontainer/>

                 

                I tested this with an older .eps logo from FMI. I don't know what application was used to create the logo but it would not display within a web viewer [as you describe],

                unable.jpg

                 

                Safari was also unable to open it. I am guessing some of your .eps documents are of this type.

                 

                Using SC, it displayed a thumbnail of the image within a webviewer rather than the file name.

                 

                HTH,

                 

                Michele

                • 5. Re: Any way to display an eps in a webviewer
                  TimAnderson

                  Thanks Ray/John

                   

                  have done some more testing after your comments, and you are right. The problem is that by embedding the path in html to resize it as below I was getting the problem.

                   

                  data:text/html,<html><body><img src='file:///Volumes/RAID/Clients/PPP/DAM Store/Job Specific/Test format/aaaa.eps'  width=140 /></body></html>

                   

                  The width is dynamic based on width of the web viewer. However after a couple of (not thorough) tests it looks as if the eps images will rescale into a web viewer unlike jpegs

                   

                  Thanks both - simple calc in the web viewer will do what I need. Appreciate your time

                   

                  Tim

                  • 6. Re: Any way to display an eps in a webviewer
                    TimAnderson

                    Thanks Michele,

                     

                    I am very familiar with SuperContainer, and had tested there and got the same results - it is a webviewer too! As you will see from my response to Ray and John I have found the problem and resolved.

                     

                    Thanks for your input

                     

                    Tim

                    • 7. Re: Any way to display an eps in a webviewer
                      sporobolus

                      on 2011-11-13 13:09 jrenfrew wrote

                      Ray is right - even complex Illustrator files get rendered by the browser.

                       

                      To go from eps or ps to image is ridiculously complicated in Jave as there are almost no rendering libraries, and the better ones just use ImageMagik or Ghostscript, both of which are not easy toys to play with.

                       

                      from what i understand, on Mac OS X, a built-in service renders EPS (and

                      PostScript) files into PDF for display in Safari, Preview, etc.; it can also be

                      invoked from the command line as epstopdf and pstopdf; in my automation work

                      i've found this service has its limits and i've seen it balk on some source

                      files; you might try testing epstopdf on your files to see if it works on the

                      command line; if not, that may be why it fails in the web viewer