Opened 11 years ago

Closed 11 years ago

#6795 closed defect (wontfix)

Images drawn differently in Firefox and IE7

Reported by: guest Owned by: Eugene Lazutkin
Priority: high Milestone: future
Component: DojoX GFX Version: 1.1.0
Keywords: createImage browser difference IE7 Firefox Cc:
Blocked By: Blocking:

Description

I have two adjacent divs of size 350 x 350. In one, I draw a 256 x 256 image, and it is automatically stretched to fill the 350 x 350 box in both IE7 and Firefox 2.0.0.14.

var img = iSurface2.createImage({width: 350, height: 350, src: fileName});

However, in the second div, I draw an image with is 256(x) x 34(y).

In Firefox, it is drawn as 350 by about 34, but in IE7, it is stretched vertically to fill the box: 350 x 350. Both are JPEG images.

Attachments (2)

image19.jpg (7.2 KB) - added by guest 11 years ago.
brain images
image18.jpg (1.8 KB) - added by guest 11 years ago.
vertical slice of brain image

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by guest

Attachment: image19.jpg added

brain images

Changed 11 years ago by guest

Attachment: image18.jpg added

vertical slice of brain image

comment:1 Changed 11 years ago by bill

Component: GeneralDojoX GFX
Owner: changed from anonymous to Eugene Lazutkin

Looks like this is about gfx.

comment:2 Changed 11 years ago by bill

Milestone: tbd

mark all (open) tickets w/blank milestones to be "tbd"; their milestones need to be set to a version number or to "future"

comment:3 Changed 11 years ago by Eugene Lazutkin

Milestone: tbdfuture

Moving all open ticketd to the future.

comment:4 Changed 11 years ago by Eugene Lazutkin

Resolution: wontfix
Status: newclosed

Don't use the image size to stretch, scale, or otherwise a geometry of the image. Set the size to be equal the real pixel size, and use transformations to transform the image.

I know it is a pain to specify the size, but unfortunately there is no other way to do it in the compatible fashion.

Note: See TracTickets for help on using tickets.