|
|
| (One intermediate revision by one other user not shown) |
| Line 1: |
Line 1: |
| <noinclude> | | <noinclude> |
| = Template:Thumbor =
| | '''This template has been deprecated.''' |
|
| |
|
| Easy-to-use template for displaying images via thumbor image processing service.
| | The Thumbor image service is not available on CEO.wiki. Please use standard MediaWiki image syntax instead: |
|
| |
|
| == Usage ==
| |
| <pre> | | <pre> |
| {{Thumbor|image-filename|width|height|alt-text|filters}}
| | [[File:Filename.jpg|300px|thumb|Caption]] |
| </pre> | | </pre> |
|
| |
|
| == Parameters ==
| | Or for images from Wikimedia Commons, the site already has InstantCommons enabled, so you can directly use: |
| # '''image-filename''' (required) - Image filename (e.g., Tim_Cook.jpg, Bernard_Arnault.jpg)
| |
| # '''width''' (required) - Width in pixels (e.g., 300)
| |
| # '''height''' (optional) - Height in pixels (default: same as width for square)
| |
| # '''alt-text''' (optional) - Alt text for accessibility
| |
| # '''filters''' (optional) - thumbor filters: smart, quality(90), sharpen(1,0.5,true), format(webp), etc.
| |
|
| |
|
| == Examples ==
| | <pre> |
| | [[File:Image_from_Commons.jpg|300px|thumb|Caption]] |
| | </pre> |
|
| |
|
| '''Basic 300x300 resize:'''
| | For photo galleries, use: |
| <pre>{{Thumbor|Tim_Cook.jpg|300|300|Tim Cook}}</pre>
| |
|
| |
|
| '''Smart crop (AI face detection):'''
| | <pre> |
| <pre>{{Thumbor|Satya_Nadella.jpg|300|300|Satya Nadella|smart}}</pre> | | <gallery mode="packed" heights="200px"> |
| | | File:Image1.jpg|Caption 1 |
| '''High quality with filters:'''
| | File:Image2.jpg|Caption 2 |
| <pre>{{Thumbor|Mary_Barra.jpg|400|400|Mary Barra|smart/filters:quality(95):sharpen(1,0.5,true)}}</pre>
| | </gallery> |
| | | </pre> |
| '''WebP format (30% smaller):'''
| |
| <pre>{{Thumbor|Elon_Musk.jpg|300|300|Elon Musk|filters:format(webp)}}</pre>
| |
| | |
| == Available Images ==
| |
| | |
| '''CEO Photos (ceo-photos/):'''
| |
| Tim_Cook.jpg, Satya_Nadella.jpg, Mary_Barra.jpg, Andy_Jassy.jpg, Sundar_Pichai.jpg, Elon_Musk.jpg, Bernard_Arnault.jpg, Jensen_Huang.jpg, Lisa_Su.jpg, Jamie_Dimon.jpg, Pat_Gelsinger.jpg, Safra_Catz.jpg, Mark_Zuckerberg.jpg, Arvind_Krishna.jpg, Doug_McMillon.jpg, Shantanu_Narayen.jpg, and more...
| |
| | |
| '''Company Logos (logos/):'''
| |
| Microsoft_logo.png, Apple_logo.png, Amazon_logo.png, Google_logo.png, Tesla_logo.png, LVMH_logo.png, and more...
| |
| | |
| == Features ==
| |
| * ✓ Smart cropping with AI face detection
| |
| * ✓ Automatic WebP conversion for smaller files
| |
| * ✓ Quality control (1-100)
| |
| * ✓ Sharpening, brightness, contrast filters
| |
| * ✓ 30-day caching for fast loading
| |
| * ✓ Progressive JPEG for better user experience
| |
| | |
| == Category ==
| |
| [[Category:CEO.wiki Templates]]
| |
|
| |
|
| </noinclude><includeonly><img src="http://localhost:8888/unsafe/{{#if:{{{3|}}}|{{{2}}}x{{{3}}}|{{{2}}}x{{{2}}}}}{{#if:{{{5|}}}|/{{{5}}}|}}/ceo-photos/{{{1}}}" alt="{{#if:{{{4|}}}|{{{4}}}|{{{1}}}}}" style="max-width:{{{2}}}px;height:auto;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,0.1);" loading="lazy" /></includeonly> | | [[Category:Deprecated templates]] |
| | </noinclude><includeonly><!-- Thumbor template deprecated - use [[File:]] syntax instead --></includeonly> |
This template has been deprecated.
The Thumbor image service is not available on CEO.wiki. Please use standard MediaWiki image syntax instead:
[[File:Filename.jpg|300px|thumb|Caption]]
Or for images from Wikimedia Commons, the site already has InstantCommons enabled, so you can directly use:
[[File:Image_from_Commons.jpg|300px|thumb|Caption]]
For photo galleries, use:
<gallery mode="packed" heights="200px">
File:Image1.jpg|Caption 1
File:Image2.jpg|Caption 2
</gallery>