Copied to clipboard

Flag this post as spam?

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


  • Gordon Saxby 1461 posts 1883 karma points
    Jan 14, 2014 @ 11:46
    Gordon Saxby
    0

    ico files in media library

    It is possible to upload .ico files to the media library, but they do not seem to be properly supported (Umbraco v6.1.6).

    If you drag-and-drop they are uploaded as files. If you create an Image and upload the file, they do not get processed properly. The only setting I could find was the list of extensions that cause a thumbnail to be created - not ideal as the thumbnail is much bigger than the original file!

    I guess the main issue is that they (.ico files) are not recognised / treated as images when using the drag-and-drop method of uploading. Also, it would be nice if they displayed properly when browsing the media library folders.

    Is there a way to make ico files appear nicely?

    I am working on a multi-site system and each site will need its own favicon. I want to allow the images to be uploaded via the CMS.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 14, 2014 @ 12:13
    Jeroen Breuer
    0

    Hello,

    If you look into the Umbraco source code you can see this:

    var imageTypes = ",jpeg,jpg,gif,bmp,png,tiff,tif,";

    So those are the image types which are supported. If you want ico support you'll need to change the source code.

    Jeroen

  • Gordon Saxby 1461 posts 1883 karma points
    Jan 14, 2014 @ 12:15
    Gordon Saxby
    0

    OK ... obviously, I don't want to go changing the Umbraco source code.

    Is it possible to deal with this via the API?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 14, 2014 @ 12:38
    Jeroen Breuer
    0

    Hello,

    If you do it through the API you can define the media type and than it might work. It will try to create a thumbnail and I don't know what happens when it tries to generate a thumbnail from an ico file. This example might help: https://gist.github.com/nul800sebastiaan/8008892

    Jeroen

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jan 14, 2014 @ 12:51
    Dennis Aaen
    0

    Hi Gordon,

    Here is a topic where the same question has been discussed.

    http://our.umbraco.org/forum/using/ui-questions/13841-Multiple-sites-each-with-it%27s-own-favicon

    Hopefully this can inspire you to a solution, or maybe you could use JanĀ“s suggestion.

    /Dennis

  • Gordon Saxby 1461 posts 1883 karma points
    Jan 14, 2014 @ 12:59
    Gordon Saxby
    0

    I added "ico" to

    It would be much nicer if the Media Library just displayed the ico file, or generated a jpg containing an unaltered image. I appreciate that this is not a major feature requirement, so I will probably just instruct the client on how to upload the Favicon images - manually, rather than drag-and-dropping them!

Please Sign in or register to post replies

Write your reply to:

Draft