Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • fabio 87 posts 107 karma points
    Jul 09, 2010 @ 11:31
    fabio
    0

    supported image types

    Hello and thanks in advice

    could someone please tell where can i find the list of supported image types.?

    with supported i mean types that umbraco "understands" and so it can buil thumbnails.

    Could also someone point me out to some info aboutt adding support for managing some other image types?

     

    Fabio

     

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jul 09, 2010 @ 11:39
    Jan Skovgaard
    0

    Hi Fabio

    As far as I know Umbraco can handle all image types. I think if there is something that umbraco does not recognize it's a matter of adding the extension and mime-type in IIS?

    /Jan

  • fabio 87 posts 107 karma points
    Jul 09, 2010 @ 11:56
    fabio
    0

    Thanks Jan for your answer 

    I've tried to upload an image in eps format, but no luck with the thumbnails generation.

    The file is ok, opened with photoshop it looks prettty fine.

    But umbraco doesn't seem to be able to build the thumbs.

    So i'm searching for some adivce about the supported type/formats

    and about how can i manage more format.

    Fabio

  • fabio 87 posts 107 karma points
    Jul 09, 2010 @ 13:10
    fabio
    0

    I've looked a little in umbraco source code (build-67270) and it seem that a thumbnail can be build for

    jpeg,jpg,gif,bmp,png,tiff,tif images.

    also formats are hard coded in  umbraco.editorControls.uploadField where i found 

    public void Save() {

     

    ........

    if (",jpeg,jpg,gif,bmp,png,tiff,tif,".IndexOf("," + ext + ",") > -1) {

    ...............................

     generateThumbnail( ............

    ..............................

    }

     

    Generate thumbs depends on ImageCodecInfo gdi+ supported codes.

     

    From this starting point can someone suggest ideas,approach to extend this support

    maybe using imagemagik or similar?

    Fabio 

     

  • fabio 87 posts 107 karma points
    Aug 03, 2010 @ 17:30
    fabio
    0

    Any Idea?

    Fabio

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Aug 03, 2010 @ 17:48
    Jeroen Breuer
    0

    You could create your own datatype which overrides the upload file datatype and extend it. I did the same for the tinyMCE datatype. Here is an example how you can create your own datatype. After you created your own datatype you can replace the upload datatype for the MediaTypes with your own datatype.

  • fabio 87 posts 107 karma points
    Aug 03, 2010 @ 17:51
    fabio
    0

    Thanks 

    Good Idea.

    Fabio

Please Sign in or register to post replies

Write your reply to:

Draft