Наконец-то сделал, чтобы ссылки на другие размеры были меньше, чем сами размеры картинки. То есть если картинки размером 1910х1080, то ссылки будут вида:
Если кому надо, то вот решение (пример), для других форматов можно так же сделать:
<?php $ahref="<a href='/components/com_joomgallery/thumb/phpThumb.php?src=/images/wallpapers/originals/" ?>
<!-- Выбор размера Широкоформатные 16:10 -->
<?php $size_1152_1610="&w=1152&h=720&zc=1&fltr[]=wmi|/components/com_joomgallery/assets/images/watermark.png|BR|100'" ?>
<?php $size_1280_1610="&w=1280&h=800&zc=1&fltr[]=wmi|/components/com_joomgallery/assets/images/watermark.png|BR|100'" ?>
<?php $size_1440_1610="&w=1440&h=900&zc=1&fltr[]=wmi|/components/com_joomgallery/assets/images/watermark.png|BR|100'" ?>
<?php $size_1680_1610="&w=1680&h=1050&zc=1&fltr[]=wmi|/components/com_joomgallery/assets/images/watermark.png|BR|100'" ?>
<?php $size_1920_1610="&w=1920&h=1200&zc=1&fltr[]=wmi|/components/com_joomgallery/assets/images/watermark.png|BR|100'" ?>
<?php $size_2560_1610="&w=2560&h=720&zc=1&fltr[]=wmi|/components/com_joomgallery/assets/images/watermark.png|BR|100'" ?>
<?php echo 'Широкоформатные 16:10'?> <br />
<?php
if ($this->image->orig_width <= 1151)
{ echo "Нет подходящего размера";
}
?>
<?php
if ($this->image->orig_width >= 1152 && $this->image->orig_width <= 1279)
{ echo $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1152_1610, "target='_blank'>1152x720 px</a>", "<br>";
}
?>
<?php
if ($this->image->orig_width >= 1280 && $this->image->orig_width <= 1439)
{ echo $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1152_1610, "target='_blank'>1152x720 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1280_1610, "target='_blank'>1280x800 px</a>";
}
?>
<?php
if ($this->image->orig_width >= 1440 && $this->image->orig_width <= 1679)
{ echo $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1152_1610, "target='_blank'>1152x720 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1280_1610, "target='_blank'>1280x800 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1440_1610, "target='_blank'>1440x900 px</a>";
}
?>
<?php
if ($this->image->orig_width >= 1680 && $this->image->orig_width <= 1919)
{ echo $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1152_1610, "target='_blank'>1152x720 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1280_1610, "target='_blank'>1280x800 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1440_1610, "target='_blank'>1440x900 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1680_1610, "target='_blank'>1680x1050 px</a>", "<br>";
}
?>
<?php
if ($this->image->orig_width >= 1920 && $this->image->orig_width <= 2559)
{ echo $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1152_1610, "target='_blank'>1152x720 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1280_1610, "target='_blank'>1280x800 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1440_1610, "target='_blank'>1440x900 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1680_1610, "target='_blank'>1680x1050 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1920_1610, "target='_blank'>1920x1200 px</a>", "<br>";
}
?>
<?php
if ($this->image->orig_width >= 2560 && $this->image->orig_width <= 10000)
{ echo $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1152_1610, "target='_blank'>1152x720 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1280_1610, "target='_blank'>1280x800 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1440_1610, "target='_blank'>1440x900 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1680_1610, "target='_blank'>1680x1050 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_1920_1610, "target='_blank'>1920x1200 px</a>", "<br>", $ahref, $catpath = JoomHelper::getCatPath($this->image->catid), $this->image->imgfilename, $size_2560_1610, "target='_blank'>2560x1600 px</a>", "<br>";
}
?>
<!-- Выбор размера Широкоформатные 16:10 -->