Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Documented the detectCorrupted and corruptedMessage options#6433

Closed
javiereguiluz wants to merge 3 commits into
symfony:masterfrom
javiereguiluz:corrupt_image
Closed

Documented the detectCorrupted and corruptedMessage options#6433
javiereguiluz wants to merge 3 commits into
symfony:masterfrom
javiereguiluz:corrupt_image

Conversation

@javiereguiluz
Copy link
Copy Markdown
Member

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

Comment thread reference/constraints/Image.rst Outdated
.. versionadded:: 3.1
The ``detectCorrupted`` option was introduced in Symfony 3.1.

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

Choose a reason for hiding this comment

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

boolean

Comment thread reference/constraints/Image.rst Outdated

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
Copy Markdown
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
Copy Markdown
Member Author

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

@xabbuh
Copy link
Copy Markdown
Member

xabbuh commented May 3, 2016

👍

@wouterj
Copy link
Copy Markdown
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
Copy Markdown
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