Skip to content

add '@' size limit modifier to vipsthumbnail#5084

Merged
jcupitt merged 2 commits into
masterfrom
vipsthumbnail-add-size-limit
Jun 14, 2026
Merged

add '@' size limit modifier to vipsthumbnail#5084
jcupitt merged 2 commits into
masterfrom
vipsthumbnail-add-size-limit

Conversation

@jcupitt

@jcupitt jcupitt commented Jun 13, 2026

Copy link
Copy Markdown
Member

So eg.:

$ vipsthumbnail k2.jpg --size 10000@
$ vipsheader tn_k2.jpg
tn_k2.jpg: 83x118 uchar, 3 bands, srgb, jpegload

83 * 118 is 9794, so just less than 10,000.o

The syntax comes from imagemagick:

https://imagemagick.org/command-line-processing/#geometry

See #5082

Thanks @clairem-sl for the suggestion

So eg.:

	$ vipsthumbnail k2.jpg --size 10000@
	$ vipsheader tn_k2.jpg
	tn_k2.jpg: 83x118 uchar, 3 bands, srgb, jpegload

83 * 118 is 9794, so just less than 10,000.o

The syntax comes from imagemagick:

https://imagemagick.org/command-line-processing/#geometry

See #5082
@clairem-sl

clairem-sl commented Jun 14, 2026

Copy link
Copy Markdown

This would be perfectly suitable for my use case!
Hoping this gets merged 😍

@jcupitt jcupitt merged commit e68f5ef into master Jun 14, 2026
16 checks passed
@jcupitt jcupitt deleted the vipsthumbnail-add-size-limit branch June 14, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants