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

Forums / Bugs & Issues / PNG files loses transparency when uploaded

PNG files loses transparency when uploaded

6 posts, 0 answered
  1. OC
    OC avatar
    129 posts
    Registered:
    17 Nov 2004
    07 Sep 2010
    Link to this post
    Hello,

    I've encountered a strange problem.

    I've made a solution that's dependent upon png image files with an alpha channel (transparent background), and this worked just fine while uploading to the Image & Documents module pre Sitefinity 3.6. In 3.6 and 3.7 all transparent images get a white backround when they are uploaded.

    Is there a reason for this, or just a bug?

    What can I do about it - I need to be able to upload images with transparent background! I didn't discover this before it's now to late to revert to the old version.

    OC

    See attached image. Some images are uploaded pre 3.6 and works fine. The ones with white background are uploaded in 3.7.
  2. OC
    OC avatar
    129 posts
    Registered:
    17 Nov 2004
    07 Sep 2010
    Link to this post
    Image file.
  3. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    07 Sep 2010
    Link to this post
    Hi Mutantmannen,

    Thank you for using our services.

    This is an issue introduced in the latest official version of Sitefinity - Sitefinity 3.7 SP3. I have found what the issue is and fixed it. The fix will be available in the next SP for the system. In the mean time instaad of pulling images from the images and documents module with resize options similar to the one bellow:
    <img src="/Sitefinity37SP3/Libraries/pngs/foot.sflb.ashx?height=250&width=250" alt="">

    You can resize the image on the client by specifying width and height for the img tag instad:
    <img height="250" width="250" src="/Sitefinity37SP3/Libraries/pngs/foot.sflb.ashx" alt="">



    Kind regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. OC
    OC avatar
    129 posts
    Registered:
    17 Nov 2004
    07 Sep 2010
    Link to this post
    Hi and thanks,

    But this is not a resize problem!? It works just fine on images uploaded in older versions. They are also resized, and no white background are added. It looks to me that the upload is really the problem, not the resize!

    Or is the thumb created and stored at the upload - and the problem is really just for the thumb and other resized images?

    OC
  5. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    07 Sep 2010
    Link to this post
    Hello Mutantmannen,

    Upload is not the problem as mentioned earlier. We are not manipulating the uploaded image. Generation of thumbnails is the problem as we take the original image and create a smaller one of it. You can see in the attached image that when a image is insert straight into the page the transparency is not lost.

    Kind regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Barr
    Barr avatar
    1 posts
    Registered:
    31 May 2012
    04 Jun 2012
    Link to this post
    Hi Mutantmannen, I worked it out thank GOD, lol. It took me ages to work it out. For me I simply had to Disable (read: DELETE) Sitefinity's "Basic" styles Theme, which must've been overriding our div's backgrounds and made them white *grumbles*.

    Go to your Sitefinity backend page, click Administration, then Settings in the drop-down menu.
    Once on this page click on Advanced, then on the page that appears go to Appearance >> Frontend Themes. In here you'll see Basic. Just delete the thing. THAT'S IT!

    I've only been using SF for a few days, its been one of THE MOST traumatic experiences for me as a developer. There are no useful resources that explain step-by-step how to migrate a website to Sitefinity. I built my website from the ground up and didn't know that the most difficult part would be trying to wedge it into SF, lol. Anyways that's the only solution I've been able to use. I would have preferred to be able to override the Basic Theme with my own, but if this is how it works then this how I'm doing it!
Register for webinar
6 posts, 0 answered