Ticket #2406 (new defect)

Opened 8 years ago

Error while resizing some TIFF images

Reported by: gracinet Owned by: gracinet
Priority: P2 Milestone: CPS 3.5.7
Component: CPSUtil Version: 3.5.2
Severity: normal Keywords: tiff tif image
Cc:

Description

Here it is :

  Module Products.CPSCore.ProxyBase, line 964, in index_html
  Module Products.CPSCore.ProxyBase, line 1004, in getImage
  Module Products.CPSCore.ProxyBase, line 980, in targetGeometry
  Module Products.CPSUtil.image, line 181, in resized_geometry
  Module Products.CPSUtil.image, line 101, in _geometry_from_largest
  Module Products.CPSUtil.image, line 93, in _proportional_dim
TypeError: can't multiply sequence by non-int

It happens only for Zope Image objects, and the reason is that Zope parses width and height improperly. We need to check that the Zope value is correct before using it

Note: See TracTickets for help on using tickets.