Hi,

I've imported my ubb classic board, and implemented some new skins by just adding files, images, greamlins etc to the specific folders. Also overwriting any present images (like I was used to in ubb classic wink ). Now I notice some behaviour in ubb threads, that saves the image size in the database. Although this is a very cool feature, I now have an inconsistent DB not representating the reality.

I am looking for an easy way to fix this. Actually a Control panel function that is called "Recalculate Image Sizes in dabatabase" would be a very cool feature. Is there any script / resource or function I can use?

Sirdude pointed me in some code that could fix the avatar sizing issue that still is present in 7.2 that looks a little like this:
PHP Code
if (!picheight) && (!picwidth) { 
$wh = getimagesize("http://url/to/avatar.jpg"); 
if ($wh[0] > $boardmaxwidth) then { limit width; } 
if ($wh[1] > $boardmaxheight) then { limit height; } else 
{ we have a width and height here, so it is good; }