Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Today 02:45:58

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,249
Website Mastodon

Output custom thumbs at the correct size

[split from automatic thumbnails topic]
none of these two options output the correct size image:
I have then in a TXP Form:

<txp:thumbnail id="16" class="portfolio__nav__img" />  

The thumbnail sizes on the Images panel is at 324×200 , but the image output is large … but if I right click to show image in a new window it is the proper size.

This also fails to render a small 324×200 image:

<img src="../images/16t.png" width="324" height="200" alt="nav" class="portfolio__nav__img">

but if I enter this html

<a href="https://example.ca/portfolio/bikes_wheels" class="portfolio__nav__item grid__item one-half medium--one-half wide--one-third is-active">
	<img src="https://example.ca/assets/portfolio/nav-bici.png" width="324" height="200" alt="nav-solutions" class="portfolio__nav__img">
		<h4 class="portfolio__nav__title">BikeHistory</h4>
	<div class="portfolio__nav__role">Website Design</div>
</a><!-- 1 -->

the image is output at the right size of 324×200

Last edited by bici (Today 03:15:27)


…. texted postive

Offline

#2 Today 20:26:32

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,377
Website GitHub

Re: Output custom thumbs at the correct size

Ooops, rookie mistake, it didn’t split at the post I selected, it split only the post I selected. Apologies. Discussion continues…


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB