+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Image Library That Converts EPS to JPG

Image Library That Converts EPS to JPG

2 posts, 0 answered
  1. Tim
    Tim avatar
    6 posts
    Registered:
    28 Oct 2008
    07 Jul 2009
    Link to this post
    I have a library of logos that are saved as EPS files. Is anyone aware of a method using Sitefinity that would allow the user to upload EPS files, which would be processed into an image library of JPG files for display with the high-res EPSs available for download?


  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    09 Jul 2009
    Link to this post
    Hi Tim,

    We do not have an out of the box solution to this, but you can use the following code sample - http://www.sitefinity.com/help/developer-manual/libraries-api-contentmanager.html

    This will upload your item to a certain library. Note that once you have the buffer filled with your EPS data:
    while (currentByte != -1) 
       buffer[position++] = (byte)currentByte; 
       currentByte = firstFile.InputStream.ReadByte(); 

    You can compress it to JPEG and save it to another library as well. Then you can add a new metafield to the library items, in which you will save the relationship between the EPS and JPEG image.

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered