Safe to use script to resize attachment images?

Coop1979

Well-known member
I just made some changes to our settings so that attachments are limited to the Facebook standard size of 960x720, but prior to today I was only restricting images based on file size (a very generous file size, also).

I'd like to run a script on my attachment folder to resize existing images to fall within the new 960x720 guideline. Will that cause any issues with XenForo since it will be changing the dimensions and likely the file size of the images?
 
You can safely resize the attachments directly in the attachments folder. The only discrepancy will be the xf_attachment_data table will have values for width and height of the attachment which are no longer accurate, but it doesn't make any difference. You could always write a script to update the xf_attachment_data table if you wish.
 
Top Bottom