1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Safe to use script to resize attachment images?

Discussion in 'XenForo Questions and Support' started by Coop1979, May 8, 2013.

  1. Coop1979

    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?
  2. AndyB

    AndyB Well-Known Member

    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.

Share This Page