Blog

  • Lazy Image Layout 0.36

    September 26, 2004

    Please go to http://davidseah.com/projects/lzil for the most recent LZIL download! You may also leave comments there…this page is now locked.

    Grendizer Lazy Image Layout (LZIL) is my WordPress 1.2 plugin for formating images in my posts, using a terse syntax and automatic thumbnail sizing. It was developed to co-exist with PHP-Markdown 1.0. If you don’t have Markdown installed, you’ll need to make sure that the LZIL commands don’t have carriage returns after them.

    Gundam The way I generally access my blog is through either the WP admin interface or using Dreamweaver. I upload files using Dreamweaver, and use its code editor for managing the PHP associated with the site when that is needed. Because of this, I tend not to use the upload form of WordPress. You still need to set the upload path in your WordPress options, however…LZIL uses it to determine the base location of your images.

    Anyway, here are the important features:

    • terse syntax:
      • short: LZIL: file not found:
        /var/www/vhosts/davidseah.com/httpdocs/_wpcontent/imagename
        /span>
      • long: LZIL: file not found:
        /var/www/vhosts/davidseah.com/httpdocs/_wpcontent/imagename
        /span>
      • dest_url and “alt-title” are optional, and either can appear singly.
    • popup image support.
    • automatic thumbnail generation and caching on-the-fly.
    • can align left, right, with “no margin” option available for full-width images.
    • doesn’t use <div> tags, so will work inside of other blocks like <p>.
    • attempts to provide useful error messages back to the user

    To-Do List:

    • Add :X (no resize) option
    • Add SWF support
    • Add no border support
    • Rewriting using inline tables, so we can have captions (I think this is a proper use of tables in CSS, but tell me if I’m wrong)


    Grendizer The images below are a mixture of JPEG and GIF files.

    Agent IntrigueKorves BaseMEK's Interface


    Crixa XO ShipCrixa TitleDueltris Screen


    » Installing LZIL

    Read more
  • MDIH Separation

    September 26, 2004

    Michel Fortin was kind enough to reply regarding my post on the Markdown mailing list. He pointed out inconsistencies in the syntax I had chosen, and suggested some more forward-looking approaches.

    As a result, I was able to separate my code from Markdown, so it’s now “quicky and independent”, just right for my own website. A pretty instructional journey.

    (more…)

    Read more
  • Markdown Image Hack 0.3 Tests

    September 26, 2004

    nyahSome Updates:

    • Added GIF and PNG support. The thumbnails are still saved as JPG though.
    • Restructured code so MDH_DoImages_reference_callback actually calls MDH_DoImages_callback, instead of duplicating all the image reference code
    • Cached images are now store in a wp-content/imgcache directory
    • Added clear:both code: !@---

    See some more examples

    Read more
  • My Favorite Software, Part I

    September 26, 2004

    LAST UPDATED: September 26, 2004

    I’m picky about the tools I have installed on my computer. Every once in a while, I flip out and look to see if there’s something better out there than what I’m using. I’m fairly happy with what I’m using now, so here’s what I’m using right now on my Windows XP box.

    (more…)

    Read more
  • Updated Markdown Image Hack 0.2

    September 24, 2004

    I’ve made some improvements: better syntax, image popup code, embedded CSS styles, and it now can use [id] references. Code is still ugly though, and still in the Markdown source :-)

    Check it out.

    Read more