Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2017-02-03 10:32:49

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,596
Website

Re: FTP server hit 10000 files limit in images folder...

Bloke wrote #303822:

Not heard of that (and the demo links are dead) but I like the idea of just using CSS to adjust an image’s centre point. Clever.

Here’s another demo site for focal point and accompanying article.


TXP Builders – finely-crafted code, design and txp

Offline

#14 2017-02-03 10:36:40

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: FTP server hit 10000 files limit in images folder...

From the initial discussions Bloke and I had about image handling in future, the compulsory (for image grid and also image list preview) new thumbnails would be stored in a child directory of the images directory. For user generated thumbnails we need to think about:

  • what happens to existing (pre-4.7) thumbnails. Are they moved to a child directory too (nicer) or left alone (safer)
  • if moved, what would we call this thumbnail directory? Do we allow multiple image sizes instead, effectively making thumbnails now subsets of the original image (for srcset)? Again what would these be called now?
  • should we integrate ImageMagick if available in addition to GD Graphics Library and use that in preference for generated subsets of images (because the resize and compression algorithms in GD are shite)?

Lots to think about.

Offline

#15 2017-02-03 10:39:35

kirito
Member
From: Italy
Registered: 2017-01-10
Posts: 34

Re: FTP server hit 10000 files limit in images folder...

or add the attribute type=“image-profile” to txp:image and txp:thumbnail just becomes an alias of txp:image type=“main-thumbnail-profile”.

I was thinking the same thing. After all, thumbnail is just the same image in a different size/quality. If you can just use <txp:image type=“type” /> where type is “default”, “thumbnail”, “big-thumbnail”, “illegally-heavy”, “very-very-small-thumb”… Then every type could have is own size, crop ratio, quality (if applicable).

And something like:

<txp:if_image type="thumbnail">
  <txp:image type="thumbnail" />
<txp:else />
  <p>Sorry, no thumbnail</p>
</txp:if_image>
<txp:if_article_image>
  <txp:if_image type="very-big">
    <txp:image type="very-big" />
  <txp:else />
    <txp:image />
  </txp:if_image>
</txp:if_article_image>

Wouldn’t it work?

Offline

Board footer

Powered by FluxBB