|
|
| 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, Satya_Nadella_talking.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_talking.jpg|300|300|Satya Nadella speaking|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_portrait.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_speaking.jpg|300|300|Elon Musk|filters:format(webp)}}</pre>
| |
| | |
| == Available Images ==
| |
| | |
| '''Satya Nadella (4 photos):'''
| |
| * Satya_Nadella.jpg - Main photo
| |
| * Satya_Nadella_headshot.jpg - Professional headshot
| |
| * Satya_Nadella_talking.jpg - Speaking/presenting
| |
| * Satya_Nadella_smiling.jpg - Casual/smiling
| |
| * Satya_Nadella_with_Gates_Ballmer.jpg - With Bill Gates and Steve Ballmer
| |
| | |
| '''Mary Barra (4 photos):'''
| |
| * Mary_Barra.jpg - Main photo
| |
| * Mary_Barra_portrait.jpg - Official portrait
| |
| * Mary_Barra_CEO.jpg - CEO professional
| |
| * Mary_Barra_official.jpg - 2014 official
| |
| * Mary_Barra_facility.jpg - At GM facility
| |
| | |
| '''Tim Cook (3 photos):'''
| |
| * Tim_Cook.jpg - Main photo
| |
| * Tim_Cook_portrait.jpg - 2017 portrait
| |
| * Tim_Cook_2009.jpg - 2009 photo
| |
| | |
| '''Elon Musk (3 photos):'''
| |
| * Elon_Musk.jpg - Main photo
| |
| * Elon_Musk_portrait.jpg - Royal Society
| |
| * Elon_Musk_speaking.jpg - Speaking 2022
| |
| | |
| '''Sundar Pichai (2 photos):'''
| |
| * Sundar_Pichai.jpg - Main photo
| |
| * Sundar_Pichai_2023.jpg - 2023 photo
| |
| | |
| '''Andy Jassy:'''
| |
| * Andy_Jassy.jpg - Main photo
| |
| | |
| '''And 20+ more CEO photos available!'''
| |
| | |
| == 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
| |
| * ✓ nginx caching for ultra-fast delivery
| |
| | |
| == Category ==
| |
| [[Category:CEO.wiki Templates]]
| |
|
| |
|
| </noinclude><includeonly><img src="https://ceo.wiki/thumbor/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>