Blog Sections Open

Replacing directResize with a Simpler Image Preview Flow

Image preview workflows often grow too clever for their own good. The original discussion here looked for a cleaner alternative to directResize when all the project really needed was a small preview image and a link to t

Image preview workflows often grow too clever for their own good. The original discussion here looked for a cleaner alternative to directResize when all the project really needed was a small preview image and a link to the original file.

Simple Target Markup

<a href="assets/images/our_original_image_name.jpg" class="fancybox">
    <img src="assets/images/previews/our_original_image_name.jpg" class="preview" />
</a>

Why This Helps

  • preview generation becomes predictable
  • frontend markup stays lightweight
  • editors still get the original asset when needed

If the site only needs reliable thumbnails and a lightbox link, a small dedicated preview helper is often easier to maintain than a more aggressive resize pipeline.

Newer post

Building Resource Links Correctly in EvoGallery Templates

How to render gallery items so they link back to the correct resource instead of only exposing the raw image path.

Older post

Using TinyMCE Inside a Textarea TV Safely

How to approach textarea TVs enhanced with TinyMCE without making the editor experience fragile or inconsistent.