Duplicate Attachment data incorrect in table after image resize

AndyB

Well-known member
When an image is uploaded as an attachment, if it is resized to meet the forums "Maximum Attachment Image Dimensions" settings, the original information about the image before resizing, such as the size, width and height are saved in xf_attachment_data table, not the actual resized information.

It would be nice if the resized image data was saved in the attachment_data table. This would include:

file_size
file_hash
width
height

Tested on XF v1.2.3.
 
Top Bottom