Skip to content

Conversation

@javiereguiluz
Copy link
Member

Q A
Doc fix? no
New docs? yes
Applies to master (3.1+)
Fixed tickets symfony/symfony#17458

.. versionadded:: 3.1
The ``detectCorrupted`` option was introduced in Symfony 3.1.

**type**: ``Boolean`` **default**: ``false``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

boolean


If this option is true, the image contents are validated to ensure that the
image is not corrupted. This validation is done with PHP's ``imagecreatefromstring()``
function, which requires the PHP GD extension to be enabled.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we link to the GD Extension?

@javiereguiluz
Copy link
Member Author

Thanks for the review! I've done all the changes. This is now ready to be merged. Thanks!

@xabbuh
Copy link
Member

xabbuh commented May 3, 2016

👍

@wouterj
Copy link
Member

wouterj commented May 5, 2016

👍 Thanks!


**type**: ``string`` **default**: ``The image file is corrupted.``

The error message when the `detectCorrupted`_ option is enabled and the image
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was to unsure to commit this, but shouldn't we use if here instead of when?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants