Recent Changes - Search:

add Test page

hide Test

Test


hide Topics

Topics

show Changed

Changed

Visitor's book Site map pmwiki-2.3.37

Dimensions

MessagesReplacement version 2024-09-16new

Fix thumb image size to a maximum dimension

Requirement
To set the maximum dimension of a thumbnail to a set size, so for a landscape image set the width, and for a portrait image set the height.
ImageSize:350

px, width, height

With captions

>>rfloat<<
(:thumb width={$:ImageSize} 14750001.jpg titlefmt="Coast north of Makara Estuary, Owhariu Bay{$:PhotosTitle}?n?x_kwtitle" captionfmt="width={$:ImageSize}?n?x_kwcaption" :)
>>lfloat<<
(:thumb height={$:ImageSize} 14750002.jpg titlefmt="Tongue Point, Raukawa/Cook Strait, and Te Waipounamu/South Island{$:PhotosTitle}?n?x_kwtitle" captionfmt="height={$:ImageSize}?n?x_kwcaption" :)
>><<

>>lfloat<<
(:thumb px={$:ImageSize} 14750003.jpg titlefmt="Outlook Hill, 537 m, Terawhiti Station{$:PhotosTitle?n?x_kwtitle}" captionfmt="px={$:ImageSize}?n?x_kwcaption" :)
>>rfloat<<
(:thumb px={$:ImageSize} 14750004.jpg titlefmt="Meterological Radar, Outlook Hill{$:PhotosTitle?n?x_kwtitle}" captionfmt="px={$:ImageSize}?n?x_kwcaption" :)
>><<
(:comment These is no such thing as a height parameter, but we'll try it anyway :)
(:thumb height={$:ImageSize} 14750005.jpg titlefmt="Old rimu, Warrens Bush, South Makara{$:PhotosTitle?n?x_kwtitle}" captionfmt="height={$:ImageSize}?n?x_kwcaption" :)
Coast north of Makara Estuary, Owhariu Bay, photograph by Barbara Mitcalfe
14750001
; '2024 Nov 21 22:09'
Original size: 1,570 x 1,024; 1,029 kB
14750001.jpg
width=350
14750001
Tongue Point, Raukawa/Cook Strait, and Te Waipounamu/South Island, photograph by Barbara Mitcalfe
14750002
; '2024 Nov 21 22:09'
Original size: 1,024 x 1,568; 916 kB
14750002.jpg
height=350
14750002
Outlook Hill, 537 m, Terawhiti Station{$:PhotosTitle
14750003
; '2024 Nov 21 22:09'
Original size: 1,570 x 1,024; 928 kB
14750003.jpg}
px=350
14750003
Meterological Radar, Outlook Hill{$:PhotosTitle
14750004
; '2024 Nov 21 22:09'
Original size: 1,024 x 1,568; 1,093 kB
14750004.jpg}
px=350
14750004
Old rimu, Warrens Bush, South Makara{$:PhotosTitle
14750005
; '2024 Nov 21 22:09'
Original size: 1,024 x 1,568; 843 kB
14750005.jpg}
height=350
14750005

Without captions

>>rfloat<<
(:thumb width={$:ImageSize} 14750001.jpg captionfmt="?x_kwcaption" titlefmt="Coast north of Makara Estuary, Owhariu Bay{$:PhotosTitle}?n?x_kwtitle" :)
>>lfloat<<
(:thumb height={$:ImageSize} 14750002.jpg captionfmt="?x_kwcaption" titlefmt="Tongue Point, Raukawa/Cook Strait, and Te Waipounamu/South Island{$:PhotosTitle}?n?x_kwtitle" :)
>><<

>>lfloat<<
(:thumb px={$:ImageSize} 14750003.jpg captionfmt="?x_kwcaption" titlefmt="Outlook Hill, 537 m, Terawhiti Station{$:PhotosTitle}?n?x_kwtitle" :)
>>rfloat<<
(:thumb px={$:ImageSize} 14750004.jpg captionfmt="?x_kwcaption" titlefmt="Meterological Radar, Outlook Hill{$:PhotosTitle}?n?x_kwtitle" :)
>><<
(:thumb height={$:ImageSize} 14750005.jpg captionfmt="?x_kwcaption" titlefmt="Old rimu, Warrens Bush, South Makara{$:PhotosTitle}?n?x_kwtitle"  :)
Coast north of Makara Estuary, Owhariu Bay, photograph by Barbara Mitcalfe
14750001
; '2024 Nov 21 22:09'
Original size: 1,570 x 1,024; 1,029 kB
14750001.jpg
14750001
Tongue Point, Raukawa/Cook Strait, and Te Waipounamu/South Island, photograph by Barbara Mitcalfe
14750002
; '2024 Nov 21 22:09'
Original size: 1,024 x 1,568; 916 kB
14750002.jpg
14750002
Outlook Hill, 537 m, Terawhiti Station, photograph by Barbara Mitcalfe
14750003
; '2024 Nov 21 22:09'
Original size: 1,570 x 1,024; 928 kB
14750003.jpg
14750003
Meterological Radar, Outlook Hill, photograph by Barbara Mitcalfe
14750004
; '2024 Nov 21 22:09'
Original size: 1,024 x 1,568; 1,093 kB
14750004.jpg
14750004
Old rimu, Warrens Bush, South Makara, photograph by Barbara Mitcalfe
14750005
; '2024 Nov 21 22:09'
Original size: 1,024 x 1,568; 843 kB
14750005.jpg
14750005

Caption or Captionfmt?

caption= is the table caption, usually on top of the table, captionfmt= formats the repeated captions of each thumbnail (like titlefmt= formats the repeated tooltip title). captionfmt= was designed to be easier/shorter to use for a single (:thumb:), than the alternative (:thumbgallery:)file.jpg|captionfmt...(:thumbgalleryend:) --Petko (:20080706T215852Z:)

Caption

(:thumb width={$:ImageSize} 14750001.jpg titlefmt="?x_kwtitle" caption="Coast north of Makara Estuary,?nOwhariu Bay{$:PhotosTitle}?n?x_kwcaption" :)

(:thumblist height={$:ImageSize} name="14750002.jpg" titlefmt="?x_kwtitle" caption="Tongue Point, Raukawa/Cook Strait,?nand Te Waipounamu/South Island{$:PhotosTitle}?n?x_kwcaption" :)

(:thumblist cols=1 height={$:ImageSize} name="14750005.jpg" titlefmt="?x_kwtitle" caption="Old rimu, Warrens Bush,?nSouth Makara{$:PhotosTitle}?n?x_kwcaption"  :)
14750001
; '2024 Nov 21 22:09'
Original size: 1,570 x 1,024; 1,029 kB
14750001.jpg
14750002
; '2024 Nov 21 22:09'
Original size: 1,024 x 1,568; 916 kB
14750002.jpg
Old rimu, Warrens Bush,?nSouth Makara, photograph by Barbara Mitcalfe?n?x_kwcaption
14750005
; '2024 Nov 21 22:09'
Original size: 1,024 x 1,568; 843 kB
14750005.jpg

Captionfmt

(:thumb width={$:ImageSize} 14750001.jpg titlefmt="?x_kwtitle" captionfmt="Coast north of Makara Estuary,?nOwhariu Bay{$:PhotosTitle}?n?x_kwcaption" :)

(:thumblist height={$:ImageSize} name="14750002.jpg" titlefmt="?x_kwtitle" captionfmt="Tongue Point, Raukawa/Cook Strait,?nand Te Waipounamu/South Island{$:PhotosTitle}?n?x_kwcaption" :)

(:thumblist cols=1 height={$:ImageSize} name="14750005.jpg" titlefmt="?x_kwtitle" captionfmt="Old rimu, Warrens Bush,?nSouth Makara{$:PhotosTitle}?n?x_kwcaption"  :)
14750001
; '2024 Nov 21 22:09'
Original size: 1,570 x 1,024; 1,029 kB
14750001.jpg
Coast north of Makara Estuary,
Owhariu Bay, photograph by Barbara Mitcalfe
14750001
14750002
; '2024 Nov 21 22:09'
Original size: 1,024 x 1,568; 916 kB
14750002.jpg
Tongue Point, Raukawa/Cook Strait,
and Te Waipounamu/South Island, photograph by Barbara Mitcalfe
14750002
14750005
; '2024 Nov 21 22:09'
Original size: 1,024 x 1,568; 843 kB
14750005.jpg
Old rimu, Warrens Bush,
South Makara, photograph by Barbara Mitcalfe
14750005

tahi Page last modified on 2024 Apr 20 19:48

Edit - History - Recent Changes - WikiHelp - Search - email page as link -> mailto:?Subject="KiwiWiki: Dimensions"&Body=