21 Replies Latest reply: Mar 9, 2013 12:09 PM by CarlosCanto RSS

    Definitive way to check legacy EPS version?

    Cheryl Graham Community Member

      I work with lots of EPS files every day that are sent to me by users all over the world. As part of my work, I have to check the version of the EPS. They must be saved to version 10 (I review stock logos for GraphicRiver). I know you can open the EPS in a text editor, which I do, but that method does not seem to be reliable.

       

      For example, here is the header info for one file:

       

      ≈–”∆  p @p
      c ˇˇ%!PS-Adobe-3.1 EPSF-3.0
      %ADO_DSC_Encoding: Windows Roman
      %%Title: logo_original.eps
      %%Creator: Adobe Illustrator(R) 16.0
      %%For: Dan

       

      - - - - - - etc. - - - - - -

       


      I still have Illustrator10 on my machine (call me sentimental), and to my surprise, it still works under MacOS 10.6.8.  I was able to open the above EPS file with no warning message, or any problems whatsoever. So this was definitely an EPS 10 file. Clearly, the open-in-TextEdit method is not reliable.

       

      logo_original.eps-1.jpg

       


      I have tried using "Get Info" on the Mac, but that only works with files that were created by me.  I had a friend send me a test file that he created in CS6 and saved to EPS v.10.

       

      EPS10_from_Dave.eps_Info.jpg

       

       

      I found this thread, and they don't seem to have a definitive answer:

      http://forums.adobe.com/message/2732778

       

      It's from 2010, so I'm asking now, is there any way to definitively check the legacy version?

        • 1. Re: Definitive way to check legacy EPS version?
          Monika Gause MVP

          Looks like the version info is saved to some system dependent meta information that gets lost when transferred through the internet.

           

          AFAIK the EPS version determines not the content of the EPS part of the file but what is included in the AI part. When you save to EPS version 10, the AI part of the file can be opened in AI 10 (so what you open in 10 isn't actually the EPS, but the AI part). If you save to EPS CS3, it will be opened in AI CS3. If you save to EPS 3, there will be no AI part.

          • 2. Re: Definitive way to check legacy EPS version?
            Cheryl Graham Community Member

            AFAIK the EPS version determines not the content of the EPS part of the file but what is included in the AI part.

             

            Ah yes, I remember reading this somewhere. Unfortunately, it doesn't answer the question of how to determine the legacy EPS version.

            • 3. Re: Definitive way to check legacy EPS version?
              Monika Gause MVP

              I think you really need to consider what you want to achieve when demanding EPS version 10.

               

              Do you want to achieve mostly cross-platform-and-application compatiblity?

              Or just a sensible editability in Illustrator?

              Has anybody even thought about the sense in this version thing?

               

              A lot of the artworks you can buy in microstock, practically are not editable or it would require very deep knowledge in vector editing. Which many buyers might not have. For many artworks it would make more sense to provide a higher version or no EPS at all, just the source files with live effects. Even when you open AI in Corel Draw (latest versions), it would sometimes make sense to provide AI instead of EPS (any version).

               

              I have seen some micorstock files (not from your service) that probably have been checked for version compatiblity, but nonetheless make no sense at all. Which leads me to think it might be better to define the goals you want to achieve and not just check for some version numbers.

              • 4. Re: Definitive way to check legacy EPS version?
                amxyz Employee Hosts

                Not sure if there's a definitive way out there but what you have been doing by opening the EPS in a text editor seems to be on the right track.

                However, keep in mind that the info you are looking for doesn't necessarily have to show in the first few lines.

                 

                We tested a few files and were able to find the info 3/4 way down the file.

                %AI9_PrivateDataBegin

                %!PS-Adobe-3.0 EPSF-3.0

                %%Creator: Adobe Illustrator(R) 10.0

                %%AI8_CreatorVersion: 16.2.0

                It seems like if you can find %%Creator: Adobe Illustrator(R) 10.0, then you are good to go.

                My suggestions is to search %%Creator: Adobe Illustrator(R) 10.0 or %%Creator: Adobe Illustrator(R) in the text file and see what's in the file.

                 

                Please try it out and let us know how it goes

                • 5. Re: Definitive way to check legacy EPS version?
                  Cheryl Graham Community Member

                  amxyz, I think you've got it! I tested a couple of files and was able to find the "%%Creator: Adobe Illustrator(R) 10.0" deeper into the file by doing a "Find" in TextEdit

                   

                  Now the task is to find a way to streamline this process. I can always press Command-F in TextEdit and find the string, but that would mean having it on my clipboard at all times, then pasting. Perhaps I can use TextExpander.

                   

                  But this is the main problem, which might just be solved.

                   

                  Thank you!

                  • 6. Re: Definitive way to check legacy EPS version?
                    Cheryl Graham Community Member

                    Monika, I do not make the rules. I do not want to have a philisophical discussion about this. I just want to have an accurate and efficient workflow.

                    • 7. Re: Definitive way to check legacy EPS version?
                      amxyz Employee Hosts

                      Glad to hear that

                      Hopefully, someone can come up with a way to simplify the process soon.

                      • 8. Re: Definitive way to check legacy EPS version?
                        Kurt Gold Community Member

                        When (batch) changing the file extensions from .eps to .txt, I can imagine that using the Spotlight search could be a practicable way.

                        • 9. Re: Definitive way to check legacy EPS version?
                          Cheryl Graham Community Member

                          I'm not changing the extensions, just dropping the EPS file onto the TextEdit icon in the dock.

                          • 10. Re: Definitive way to check legacy EPS version?
                            Kurt Gold Community Member

                            Have you tried to understand my suggestion ?

                             

                            Two quotes from your previous posts:

                             

                            "I work with lots of EPS files every day that are sent to me by users all over the world."

                             

                            "Now the task is to find a way to streamline this process. I can always press Command-F in TextEdit and find the string, but that would mean having it on my clipboard at all times, then pasting."

                             

                            That's why I thought a Spotlight search could streamline your task. As Spotlight doesn't seem to handle .eps very well, the workaround is as simple as that:

                             

                            Let's assume you've got a folder that contains a greater number of .eps files. You're now going to find a specific text string inside the files. You can try:

                             

                            - Copy that folder

                             

                            - Take a programme that can batch rename file extensions (for example NameChanger (free))

                             

                            - Batch rename the files from .eps to .txt

                             

                            - Inside the folder, do a Spotlight search with the desired text string

                             

                            - Take a look at the search results

                             

                            A quick test tells me that this way apparently works.

                             

                            Of course, that approach might be too philosophical as well …

                            • 11. Re: Definitive way to check legacy EPS version?
                              Cheryl Graham Community Member

                              Thanks for elaborating. The thing is, I don't get them in batches, but one-by-one. Then I move on to the next one. So your idea would definitely work if I could just download a bunch of files and batch change, then search for the text string. But I usually get a folder that contains the EPS as well as a host of other supporting files. Unfortunately, I have to review one upload before I can move on to the next one.

                               

                              Also, as I've done some more testing, searching for "%%Creator: Adobe Illustrator(R) 10.0" is not fool-proof, as the EPS files are sometimes saved as version 8, which is acceptable. Another exception to the rule is files that have been created in Corel Draw –those EPS's don't have the "%%Creator: Adobe Illustrator(R) 10.0" string in them at all.

                               

                              But thanks for taking to time to reply. I will keep it in mind for future projects.

                              • 12. Re: Definitive way to check legacy EPS version?
                                amxyz Employee Hosts

                                %%Creator: Adobe Illustrator(R) 10.0 simply means the file was creating using Illustrator version 10, which is why I also suggested you to do a search for %%Creator: Adobe Illustrator (R) so you can identify the exact version of the software used to save the file.

                                 

                                If the EPS was created in Corel Draw, then searching for %%Creator: Adobe Illustrator(R) would not work since it's made by a different creator. I don't have a Corel Draw file with me but I am guessing searching for %%Creator: Corel Draw(R) might work..?

                                • 13. Re: Definitive way to check legacy EPS version?
                                  Cheryl Graham Community Member

                                  Yes, I've been using %%Creator: Adobe Illustrator(R). I was just explaining to Kurt why I couldn't use %%Creator: Adobe Illustrator(R) 10.0 with his idea to batch-process (because I get the files one at a time and can't batch process).

                                   

                                  As for the Corel files, they do have %%Creator: Corel Draw(R) in them, but no info that I can see that tells me the EPS version. Corel files are pretty rare, however.

                                   

                                   

                                  I also suggested you to do a search for %%Creator: Adobe Illustrator (R) so you can identify the exact version of the software used to save the file.

                                  Just to clarify, it is not important to know which software was used to create the file, just if it was saved as version 8, 9 or 10 EPS. Thanks again!

                                  • 14. Re: Definitive way to check legacy EPS version?
                                    CarlosCanto MVP

                                    Hi Cheryl, I just put this script together, tested with illustrator and corel eps files on windows

                                     

                                    open your eps file before running

                                     

                                    // script.name = getEPScreator.jsx; 
                                    // script.description = that, it gets the active EPS document's Creator Property;
                                    // script.requirements = an open EPS document;
                                    // script.parent = CarlosCanto // 03/08/2013;
                                    // script.elegant = false;
                                    
                                    
                                    #target Illustrator
                                    
                                    
                                    if (app.documents.length>0) {
                                        var idoc = app.activeDocument;
                                        var afile = idoc.fullName; 
                                        var fname = afile.fsName; 
                                        fname = fname.replace (' [Converted]', ''); // legacy files append 'converted'
                                        var epsfile = File(fname);
                                    
                                        if(fname.indexOf (".eps") != -1) {
                                            if (epsfile.exists) {
                                                 var found = false;
                                                 epsfile.open('r');
                                                 while(!epsfile.eof) {
                                                      var eline = epsfile.readln();
                                                      if(eline.indexOf ("%%Creator:") != -1) {
                                                          alert (eline.substr (2));
                                                          found = true;
                                                          //break; // it could be more than one 'creator' property
                                                      }
                                                 }
                                                 epsfile.close();
                                                 if (!found) alert('Could not find a Creator Property in this document');
                                            }
                                            else alert('weird...active file does not exist, was it deleted?');
                                        }
                                        else alert('Open an EPS file and try again');
                                    }
                                    else alert('No document to process');
                                    
                                    • 15. Re: Definitive way to check legacy EPS version?
                                      Monika Gause MVP

                                      Cheryl Graham wrote:

                                       

                                      Just to clarify, it is not important to know which software was used to create the file, just if it was saved as version 8, 9 or 10 EPS. Thanks again!

                                       

                                      This shows the EPS export dialog box from CorelDraw:

                                      http://stocklogos.com/topic/how-export-eps-and-png-corel-draw

                                       

                                      There's no such thing as 8, 9 or 10 in it. Only PostScript compatibility (and version 3 is the last - little over a decade ago). "Version 8, 9 or 10" only exists in Illustrator and only determines the compatiblity  of some private data embedded by Illustrator and only readable in Illustrator. Don't know if CorelDraw (or Inkscape or any other vector software) also embeds private data in its EPS files, but maybe they won't and so you won't be able to find any reference of it in the file.

                                       

                                      The EPS part of Illustrator EPS of any version should actually be readable by any vector software that can open EPS (and that was created after PostScript version 3). "Version 8, 9 or 10" should only matter if you want to open the file in Illustrator, because only Illustrator will look for this special private data and use it if it is there. Maybe CorelDraw (or Inkscape or any other editor) will look for other private data and use it ...

                                       

                                      BTW: Illustrator only looks for private data when you open the file in. When you place it instead, Illustrator will use the EPS part of the file.

                                       

                                      Perhaps this helps understand my questions in post #3

                                      • 16. Re: Definitive way to check legacy EPS version?
                                        Cheryl Graham Community Member

                                        Carlos - How do I save this as a script?

                                        • 17. Re: Definitive way to check legacy EPS version?
                                          Cheryl Graham Community Member

                                          Thanks, Monika. Good information.

                                           

                                          I think what the stock logo and illustration sites are going for with these rules is maximum compatibility for all users. So if someone purchases a logo and they only have Corel Draw, or Freehand, or Inkscape, they'll be able to open and edit it.

                                          • 18. Re: Definitive way to check legacy EPS version?
                                            CarlosCanto MVP

                                            - copy the script from previous post

                                            - open Adobe ExtendScript Toolkit (or a text Editor of your choice)

                                            - paste the copied script

                                            - save the script with a meaningful name (getEPScreator.jsx)

                                             

                                            to run double click on the script.

                                             

                                             

                                            if you want to run it from within Illustrator -> File -> Scripts Menu

                                             

                                            - save the script here:

                                            C:\Program Files\Adobe\Adobe Illustrator CS5\Presets\en_US\Scripts\

                                             

                                            - restart Illustrator

                                            • 19. Re: Definitive way to check legacy EPS version?
                                              Cheryl Graham Community Member

                                              Carlos -

                                               

                                              OMG, that is awesome. Assigned a keyboard shortcut to it and bam! Thank you so much.

                                               

                                              (p.s., I'm a Mac user, so the file path was /Applications/Adobe\ Illustrator\ CS5/Presets/en_US/Scripts/)

                                              • 20. Re: Definitive way to check legacy EPS version?
                                                Monika Gause MVP

                                                Cheryl Graham wrote:

                                                 

                                                So if someone purchases a logo and they only have Corel Draw, or Freehand, or Inkscape, they'll be able to open and edit it.

                                                FreeHand users will only be able to edit it, if it was saved as version 8 EPS,

                                                while CorelDraw X5 users will be able to open .AI (up to CS4) files - some objects will get lost, but a lot of stuff stays editable.

                                                I have seen a file (probably from Inkscape) that contained a simple shape with a gradient consisting of an awful lot of clipping mask that practically needed to be re-created in order to simply recolor the gradient.

                                                 

                                                The whole concept of editability needs a deeper understanding of file formats and software functions than most users of these files have (otherwise they might perhaps be able create the stuff themselves). The promise of compatibility and editability  leads people into believing that everything is possible. But that  isn't  the case.

                                                 

                                                If you could raise awareness with the responsive people for a rethinking of editability, you would do the downloaders a big favour in my opinion.