Project

General

Profile

Actions

Bug #72965

closed

f:uri.image doesn't really crop the image

Added by Ian Solo almost 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2016-01-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

{f:uri.image(image: file, width: 100c, height: 100c)}
should create a 100x100px crop of the central portion of the image.
Instead it wrongly creates a 100x100px version of the whole image distorted to look square.
See attached image.


Files

FluidCrop.jpg (48.3 KB) FluidCrop.jpg Ian Solo, 2016-01-27 13:48
Actions #1

Updated by Ian Solo almost 9 years ago

Sorry, not a bug but my mistake cause I forgot that in this case the values must be wrapped with quotation marks like this: {f:uri.image(image: file, width: '100c', height: '100c')}

If the values are not wrapped with quotation marks they are converted to integer "100".
Btw, an error message could be useful.

Actions #2

Updated by Georg Ringer almost 9 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF