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

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

Expand Messages
  • Mike Breiding
    ... Yes, I can do that with the batch re-naming utility in ImageViewer. -Mike www.EpicRoadTrips.us [Non-text portions of this message have been removed]
    Message 1 of 15 , Jan 15, 2007
    • 0 Attachment
      At 12:31 PM 1/15/2007 , you wrote:
      >Mike Breiding wrote:
      > >>
      > >> Instead of silver_rvrhrez01.jpg you'd need silver_rvr01_hrez.jpg
      > >>
      > >> for naming method/way for the hi rez images.
      > >>
      > >> But in so doing, you could do just as above (create a hirez variable
      > and then
      > >> modify that variable so that it then *becomes* the hi rez variable.
      > >>
      > > Thanks, Alan. I will give this a try.
      > > -Mike
      >
      >Exactly where I was heading with my off-list email. Even better
      >pre-pend it:
      >hrez_silver_rvr01.jpg
      >
      >If you are using ezthumbnails you can easily do that when making the
      >high res and the thumbnail.

      Yes, I can do that with the batch re-naming utility in ImageViewer.
      -Mike

      www.EpicRoadTrips.us







      [Non-text portions of this message have been removed]
    • Don - HtmlFixIt.com
      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
      Message 2 of 15 , Jan 15, 2007
      • 0 Attachment
        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. 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).
      • Mike Breiding
        ... This is the way I have it set up. ... I replaced my code with yours and below is the HTML output for one of the files and the linked file
        Message 3 of 15 , 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]
        • Mike Breiding
          At 03:38 PM 1/15/2007 , you wrote: See additional note at bottom. ... This is the way I have it set up. ... I replaced my code with yours and below is the HTML
          Message 4 of 15 , Jan 16, 2007
          • 0 Attachment
            At 03:38 PM 1/15/2007 , you wrote:

            See additional note at bottom.

            >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>

            ====
            I forgot to mention, the link to hirez needs to be relative such as:

            <a href="hirez/silver_rvrhrez02.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>

            -mb





            [Non-text portions of this message have been removed]
          • Don - HtmlFixIt.com
            I grabbed the wrong variable apparently. It appears I included the path by mistake. Use this instead: ;Insert image tag and information into document ;now
            Message 5 of 15 , Jan 17, 2007
            • 0 Attachment
              I grabbed the wrong variable apparently. It appears I included the path
              by mistake.
              Use this instead:
              ;Insert image tag and information into document
              ;now includes to high res images
              ^!InsertHtml <a href="hres/^$StrLower("^%imagename%")$"><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

              The change is just using this:
              ^$StrLower("^%imagename%")$
              in the ahref.
            • Don - HtmlFixIt.com
              ... also the hres/... part of that ahref should match what you actually name your subdirectory containing the hi resolution photos. I said hres, but you
              Message 6 of 15 , Jan 17, 2007
              • 0 Attachment
                Don - HtmlFixIt.com wrote:
                > I grabbed the wrong variable apparently. It appears I included the path
                > by mistake.
                > Use this instead:
                > ;Insert image tag and information into document
                > ;now includes to high res images
                > ^!InsertHtml <a href="hres/^$StrLower("^%imagename%")$"><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
                >
                > The change is just using this:
                > ^$StrLower("^%imagename%")$
                > in the ahref.

                also the "hres/..." part of that ahref should match what you actually
                name your subdirectory containing the hi resolution photos. I said
                hres, but you said hrez. It really doesn't matter as long as you are
                consistent and it matches the code.
              • Mike Breiding
                AWESOME! What a time saver this will be. Thanks so much. -Mike ===================== ... ~~ [Non-text portions of this message have been removed]
                Message 7 of 15 , Jan 17, 2007
                • 0 Attachment
                  AWESOME!
                  What a time saver this will be.
                  Thanks so much.
                  -Mike
                  =====================
                  At 10:59 AM 1/17/2007 , you wrote:
                  >Don - HtmlFixIt.com wrote:
                  > > I grabbed the wrong variable apparently. It appears I included the path
                  > > by mistake.
                  > > Use this instead:
                  > > ;Insert image tag and information into document
                  > > ;now includes to high res images
                  > > ^!InsertHtml <a href="hres/^$StrLower("^%imagename%")$"><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
                  > >
                  > > The change is just using this:
                  > > ^$StrLower("^%imagename%")$
                  > > in the ahref.
                  >
                  >also the "hres/..." part of that ahref should match what you actually
                  >name your subdirectory containing the hi resolution photos. I said
                  >hres, but you said hrez. It really doesn't matter as long as you are
                  >consistent and it matches the code.



                  ~~



                  [Non-text portions of this message have been removed]
                Your message has been successfully submitted and would be delivered to recipients shortly.