I wanted the photos hosted on my forum are automatically resized and differently depending on the orientation (horizontal or vertical)
for this, I found this on the forum
includes/classes/class.upload.php
and I slightly modified like this
it works very well
for this, I found this on the forum
includes/classes/class.upload.php
Code:
// Resize?
$info = get_info($this->working);
if($info['width']>800) {
$this->resize_width = 800;
}
and I slightly modified like this
Code:
// Resize?
$info = get_info($this->working);
if($info['width']>800) {
$this->resize_width = 800;
if($info['height']>$info['width'])
$this->resize_width = 600;
}
it works very well