-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBX-354: Used thumbnail strategy for thumbnail generation #101
Conversation
2124a4c
to
acf1dc9
Compare
'uri' => $thumbnail->resource, | ||
'width' => $thumbnail->width, | ||
'height' => $thumbnail->height, | ||
'mimeType' => $thumbnail->mimeType, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing alternativeText
in this array might cause issues. Is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
intentional
yes. Our thumbnail object (\eZ\Publish\API\Repository\Values\Content\Thumbnail) does not have alternative text atm, it would have to be implemented for every \eZ\Publish\SPI\Repository\Strategy\ContentThumbnail\Field\ThumbnailStrategy
we have.
On the other hand, you maybe right and till it will happen maybe we should just put empty string there.
$thumbnail = $this->thumbnailStrategy->getThumbnail( | ||
$content->getContentType(), | ||
$content->getFields(), | ||
$content->getVersionInfo() | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm I've got feeling that try ... catch
statement should stay here (with proper error logging)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I see we are not catchin it inside \eZ\Publish\Core\Repository\Mapper\ContentDomainMapper::buildContentDomainObject
and we did not had problems with it till now as exceptions are catched (without login tho) inside specific strategies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA approved on Ibexa Exp 3.2.6 & 3.2.7-dev with patch & diff.
merged up |
https://issues.ibexa.co/browse/IBX-354
frontend part adjustments:
ezsystems/ezplatform-admin-ui#1756