Loading ...
Sorry, an error occurred while loading the content.

15975Re: [Clip] help with "Images to HTML" clip needed

Expand Messages
  • Mike Breiding
    Jan 16, 2007
    • 0 Attachment
      At 03:38 PM 1/15/2007 , you wrote:

      >If I am understanding you right, you are simply creating a low res image
      >in an image directory (I'd call them thumbnails even though they are
      >larger than your thumb, or we could call them the preview images or
      >whatever). Now presumably you have a subdirectory inside of that called
      >hres (or whatever). Assuming you always use the same subdirectory name
      >for the high res images, and that you make a high res image for each of
      >them, it is simple.

      This is the way I have it set up.

      >Simply add the additional language:
      >;Insert image tag and information into document
      >;now includes to high res images
      >^!InsertHtml <a href="hres/^%ImageFullName%"><img
      >src="^$StrLower("^%imagename%")$" width="^%ImgWidth%"
      >height="^%ImgHeight%" title="^%TITLE%" alt="^%ALT%" /></a>^p<p
      >style="text-align: center;">^%ImageName% (^%ImgWidth%x^%ImgHeight%;
      >^$GetFileSize(^%ImageFullName%)$ bytes)</p>^P^p
      >
      >Note, do not change the name for the high res, use the very same names,
      >but put them in the high res folder (named hres in my example).
      >

      I replaced my code with yours and below is the HTML output for one of the
      files and the linked file

      <a
      href="hres/C:\BU\mydocs_new\WEBPAGES\ERTs\2006\winter\december\silver_river\
      silver_rvr02.jpg"><img src="silver_rvr02.jpg" width="466" height="311"
      title="" alt="" /></a>
      <p style="text-align: center;">silver_rvr02.jpg (466x311; 55859 bytes)</p>

      What did I do wrong?

      Below is the clip with your code:
      http://mbreiding.us/clip/hres_images2HTML.txt

      Thanks for the help!

      -Mike


      [Non-text portions of this message have been removed]
    • Show all 15 messages in this topic