Copied to clipboard

Flag this post as spam?

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


  • Rik Helsen 670 posts 873 karma points
    Oct 30, 2009 @ 10:08
    Rik Helsen
    0

    Images in page content breaking without user interaction?

    We have been migrating a number of content pages from an old website to umbraco, and noticed that the links to the images that are inserted in the pages are breaking?

    All images where uploaded to the media folder using zip upload and then inserted using the "insert picture" and choosing them from the media library. Once saved some of them (25%) stopped working (broken image icon in the tinymce editor). In the display mode of the page they still work strangely enough.

    When i look at the picture properties in tinymce, i see that the url is:

    url: /media/1184/historiek_ivovanhove.gif
    name:
    historiek_ivovanhove.jpg

    The image is a jpeg file, not a gif. When i change the url file extension back to jpg the image reappears in tinymce...

    Has anyone here ever had similar issues ?

    Kind regards,
    Rik

  • Rik Helsen 670 posts 873 karma points
    Oct 30, 2009 @ 10:19
    Rik Helsen
    0

    Another thing i noticed is that the image width isn't respected either, the images are 150x150pixels, and the editor alters this when saving the page, squeezing the images in 150x33 pixels instead of 150x150. I can't correct this without deleting the image and saving them again: when i uncheck "Constrain proportions" and enter 150 & 150px, it still maintains proportions that it (wrongly) believes the picture has...

    This is a page with quite a lot of pictures in it (42 to be exact)

  • Rik Helsen 670 posts 873 karma points
    Oct 30, 2009 @ 10:21
  • Rik Helsen 670 posts 873 karma points
    Oct 30, 2009 @ 10:41
    Rik Helsen
    0

    I only have problems with this issue on one two pages (same images, different language for the text)

  • Rik Helsen 670 posts 873 karma points
    Oct 30, 2009 @ 13:51
    Rik Helsen
    0

    temporarly fixed the content by removing all the widths, height and REL properties of links from the html source, search and replacing all .gif extensions and correcting them to .jpg,  and publishing the page again.

    I'm curious to see if this will occur again or not.

     

  • Rik Helsen 670 posts 873 karma points
    Oct 30, 2009 @ 13:55
    Rik Helsen
    0

    After opening and savind the page twice there are again issues where the .jpg extension has been replaced by .gif, thus breaking the images...

    this is weird.

  • Rik Helsen 670 posts 873 karma points
    Oct 30, 2009 @ 13:57
    Rik Helsen
    0
    There are all jpeg files, stil they get a .gif extension:

    <table border="0" cellspacing="5" cellpadding="6">
    <tbody>
    <tr>
    <td><img src="/media/1172/historiek_Cunningham.jpg" alt="historiek_Cunningham.jpg" rel="520,116" /><br /></td>
    <td><img src="/media/1189/historiek_Muller.jpg" alt="historiek_Muller.jpg" rel="518,584" /><br /></td>
    <td><img src="/media/1167/historiek_Brook.jpg" alt="historiek_Brook.jpg" rel="340,315" /><br /></td>
    </tr>
    <tr>
    <td>Merce Cunningham</td>
    <td>Heiner Müller</td>
    <td>Peter Brook</td>
    </tr>
    <tr>
    <td><img src="/media/1164/historiek_Bausch.jpg" alt="historiek_Bausch.jpg" rel="340,315" /><br /></td>
    <td><img src="/media/1177/historiek_Fabre.jpg" alt="historiek_Fabre.jpg" rel="520,116" /><br /></td>
    <td><img src="/media/1175/historiek_DeKeersmaeker.jpg" alt="historiek_DeKeersmaeker.jpg" rel="520,116" /><br /></td>
    </tr>
    <tr>
    <td>Pina Bausch</td>
    <td>Jan Fabre</td>
    <td>Anne Teresa De Keersmaeker</td>
    </tr>
    <tr>
    <td><img src="/media/1184/historiek_ivovanhove.gif" alt="historiek_ivovanhove.jpg" rel="506,206" /><br /></td>
    <td><img src="/media/1186/historiek_Lauwers.gif" alt="historiek_Lauwers.jpg" rel="506,206" /><br /></td>
    <td><img src="/media/1193/historiek_Vandekeybus.gif" alt="historiek_Vandekeybus.jpg" rel="508,551" /><br /></td>
    </tr>
    <tr>
    <td>Ivo van Hove</td>
    <td>Jan Lauwers</td>
    <td>Wim Vandekeybus</td>
    </tr>
    <tr>
    <td><img src="/media/1168/historiek_Brown.jpg" alt="historiek_Brown.jpg" rel="520,116" /><br /></td>
    <td><img src="/media/1196/historiek_Wilson.gif" alt="historiek_Wilson.jpg" rel="508,551" /><br /></td>
    <td><img src="/media/1188/historiek_Marthaler.jpg" alt="historiek_Marthaler.jpg" rel="518,584" /><br /></td>
    </tr>
    <tr>
    <td>Trisha Brown</td>
    <td>Robert Wilson</td>
    <td>Christoph Marthaler</td>
    </tr>
    <tr>
    <td><img src="/media/1181/historiek_Goebels.jpg" alt="historiek_Goebels.jpg" rel="520,231" /><br /></td>
    <td><img src="/media/1163/historiek_ARDITTI_Q.jpg" alt="historiek_ARDITTI_Q.jpg" rel="340,315" /><br /></td>
    <td><img src="/media/1180/historiek_Gergiev.jpg" alt="historiek_Gergiev.jpg" rel="520,231" /><br /></td>
    </tr>
    <tr>
    <td>Heiner Goebbels</td>
    <td>Arditti Quartet</td>
    <td>Valery Gergiev</td>
    </tr>
    <tr>
    <td><img src="/media/1187/historiek_Lupu_Radu.gif" alt="historiek_Lupu_Radu.jpg" rel="506,206" /><br /></td>
    <td><img src="/media/1166/historiek_Boulez.jpg" alt="historiek_Boulez.jpg" rel="340,315" /><br /></td>
    <td><img src="/media/1192/historiek_Taylor_Cecil.jpg" alt="historiek_Taylor_Cecil.jpg" rel="518,584" /><br /></td>
    </tr>
    <tr>
    <td>Radu Lupu</td>
    <td>Pierre Boulez</td>
    <td>Cecil Taylor</td>
    </tr>
    <tr>
    <td><img src="/media/1198/historiek_Zehetmair.jpg" alt="historiek_Zehetmair.jpg" width="150" height="150" /><br /></td>
    <td><img src="/media/1195/historiek_Van_Immerseel.gif" alt="historiek_Van_Immerseel.jpg" rel="508,551" /><br /></td>
    <td><img src="/media/1183/historiek_Ictus.gif" alt="historiek_Ictus.jpg" rel="506,206" /><br /></td>
    </tr>
    <tr>
    <td>Thomas Zehetmair</td>
    <td>Jos van Immerseel</td>
    <td>Ictus Kwartet</td>
    </tr>
    <tr>
    <td><img src="/media/1173/historiek_Danel_Kwartet.jpg" alt="historiek_Danel_Kwartet.jpg" rel="520,116" /><br /></td>
    <td><img src="/media/1169/historiek_Carter.jpg" alt="historiek_Carter.jpg" rel="520,116" /><br /></td>
    <td><img src="/media/1197/historiek_Xenakis.gif" alt="historiek_Xenakis.jpg" rel="508,551" /><br /></td>
    </tr>
    <tr>
    <td>Danel Kwartet</td>
    <td>Elliot Carter</td>
    <td>Yannis Xenakis</td>
    </tr>
    <tr>
    <td><img src="/media/1179/historiek_Francesconi.jpg" alt="historiek_Francesconi.jpg" rel="520,231" /><br /></td>
    <td><img src="/media/1165/historiek_Birtwistle.jpg" alt="historiek_Birtwistle.jpg" rel="340,315" /><br /></td>
    <td><img src="/media/1182/historiek_Goeyvaerts_Karel.jpg" alt="historiek_Goeyvaerts_Karel.jpg" rel="520,231" /><br /></td>
    </tr>
    <tr>
    <td>Luca Francesconi</td>
    <td>Harrison Birtwistle</td>
    <td>Karel Goeyvaerts</td>
    </tr>
    <tr>
    <td><img src="/media/1194/historiek_Van_Hove_Luc.gif" alt="historiek_Van_Hove_Luc.jpg" rel="508,551" /><br /></td>
    <td><img src="/media/1178/historiek_Foster.jpg" alt="historiek_Foster.jpg" rel="520,231" /><br /></td>
    <td><img src="/media/1191/historiek_Nouvel.jpg" alt="historiek_Nouvel.jpg" rel="518,584" /></td>
    </tr>
    <tr>
    <td>Luc Van Hove</td>
    <td>Norman Foster</td>
    <td>Jean Nouvel</td>
    </tr>
    </tbody>
    </table>
  • Rik Helsen 670 posts 873 karma points
    Oct 30, 2009 @ 14:38
    Rik Helsen
    0

    on another site where i don't have this issue (i recreated the same page, different server, different website), i can't recreate the issue...

    I do notice though that the "rel" properties aren't added to any of the images... any idea what creates this?

  • Rik Helsen 670 posts 873 karma points
    Oct 30, 2009 @ 17:25
    Rik Helsen
    0

    I've been able to recreate the error after removing all third party dll's from my bin folder

    I did some more tests, paste

       <img src="/media/1187/historiek_Lupu_Radu.jpg" alt="historiek_Lupu_Radu.jpg"/>

    in the html area of a page, and save & publish the page initially, the database shows the correct info:

    <node id="1337" version="f086c2f8-fa13-4c89-bf27-e1aef53bf673" parentID="1286" level="4" writerID="0" creatorID="0" nodeType="1044" template="1045" sortOrder="4" createDate="2009-10-30T15:04:34" updateDate="2009-10-30T17:18:35" nodeName="Kut" urlName="kut" writerName="Administrator" creatorName="Administrator" nodeTypeAlias="Page" path="-1,1071,1072,1286,1337"><data alias="Title">Testpage</data><data alias="Page-Content"><![CDATA[  <p><img src="/media/1187/historiek_Lupu_Radu.jpg" alt="historiek_Lupu_Radu.jpg"/></p>  ]]></data></node>

    Now when i load the page in the editor again, and I look at the page source, i see this:

    <p><img src="/media/1187/historiek_Lupu_Radu.gif" alt="historiek_Lupu_Radu.jpg" rel="506,206" /></p>

    As you can see in the code about the jpg file is renamed to .gif as it is being loaded into the editor.

    Saving the page again results in broken images in my db &  page content...

    Any advice on how to test further / solve this issue is more than welcome!!!

    Rik

     

  • Rik Helsen 670 posts 873 karma points
    Nov 02, 2009 @ 10:46
    Rik Helsen
    0

    The error does not reproduce when i'm using the "UltraSimpleEditor"...

    Anyone?

  • Rik Helsen 670 posts 873 karma points
    Nov 23, 2009 @ 11:17
    Rik Helsen
    0

    This issue was resolved when i replaced all the images with new copies that I "optimise & save for web" in photoshop, it appears there was something wrong with the images that i uploaded (created on unknown Mac software), and tinymce was reading out the image information wrong. This resulted in skewed/scaled images.

     

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies