what does 1x1.gif do

Last post 04-14-2011, 1:28 AM by pbwbart. 4 replies.
Sort Posts: Previous Next
  •  04-13-2011, 4:25 AM 67137

    what does 1x1.gif do

    My question is simple, what does the gif 1x1.gif do?
    I created my own imagehandler and this one messes up 1x1.gif and then the complete CuteEditor doesn't work.
    so I removed my imagehandler but I'm asking myself what does this file do And can I remove it?
  •  04-13-2011, 8:37 AM 67139 in reply to 67137

    Re: what does 1x1.gif do

    Dear pbwbart,
     
    1x1.gif is a blank image, it is a placeholder.
     
    You can open file "CuteSoft_Client\CuteEditor\Dialogs\InsertImage.aspx", you will find the following line:
     
    <div id="divpreview">
             <img id="img_demo" alt="" src="../Load.ashx?type=image&file=1x1.gif" />
      </div>
     
    Once you choose one image(10n2.jpg), these html code will be changed to:
    <div id="divpreview">
             <img hspace="0" height="85" align="" width="135" vspace="0" src="http://cutesoft.net/uploads/10n2.jpg?time=1302701489012" alt="" id="img_demo">
     </div>
     
    Thank you for asking
  •  04-13-2011, 9:06 AM 67140 in reply to 67139

    Re: what does 1x1.gif do

    ok,
     
    From what I understand is the text after the questionmark a timestamp?
    actually, my question is, why do I need it? I think it's also possible to just use a placeholder.
    Or do I need this image to prevent changing?
  •  04-13-2011, 10:27 AM 67145 in reply to 67140

    Re: what does 1x1.gif do

    Dear pbwbart,
     
    You can open file "CuteSoft_Client\CuteEditor\Dialogs\InsertImage.aspx", you will find the following line in this file:
    <div id="divpreview">
    <img id="img_demo" alt="" src="../Load.ashx?type=image&file=1x1.gif" />
    </div>
     
    If you remove <img id="img_demo" alt="" src="../Load.ashx?type=image&file=1x1.gif" />, run cuteeditor, and click button "Insert Image", you will find image file cannot be previewed.
     
    You can replace "\CuteSoft_Client\CuteEditor\Images\1x1.gif" with your own large size image, don't change the file name, If you click button "Insert Image", you will see your own image file will be displayed at the right preview panel.
     
    Thank you for asking
  •  04-14-2011, 1:28 AM 67155 in reply to 67145

    Re: what does 1x1.gif do

    thanks,
     
    Now I understand a little.
View as RSS news feed in XML