Homec4science

WebJournal: fix image dimension retrieval

Authored by Jerome Caffaro <jerome.caffaro@cern.ch> on Sep 30 2013, 09:27.

Description

WebJournal: fix image dimension retrieval

  • When trying to retrieve the dimension of an image (to keep the correct ratio when explicitely setting width/height), consider that the fetched image might not be reachable and could be returned as an HTML (error message, login page, etc.) Try to analyze the image only when the content-type indicates an image.

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Nov 27 2013, 16:00
Parents
R3600:78cc1b1aca87: WebJournal: sample Twitter Card markup
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:fd732ad90e60: WebJournal: fix image dimension retrieval (authored by Jerome Caffaro <jerome.caffaro@cern.ch>).Nov 27 2013, 16:00