но мне нужно - функция или код - которым он сжимает изображение под эти размеры! чтоб он не сжимал а резал под заданные размеры.
Обработка изображений происходит в функции save() модели
administrator\components\com_k2\models\item.php
Для обработки используется класс upload стороннего разработчика
administrator\components\com_k2\lib\class.upload.php
В модели задаётся параметр $handle->image_resize = true;
Посмотрите другие параметры в классе upload - навскидку есть например параметр image_ratio_crop
* Set this variable to keep the original size ratio to fit within {@link image_x} x {@link image_y}
*
* The image will be resized as to fill the whole space, and excedent will be cropped
*
* Value can also be a string, one or more character from 'TBLR' (top, bottom, left and right)
* If set as a string, it determines which side of the image is kept while cropping.
* By default, the part of the image kept is in the center, i.e. it crops equally on both sides