I made minimum changes so that the preview images are not being created in item actions events or regeneration, like this:
oc-includes/osclass/ItemActions.php:
// Create preview
// $path = $tmpName."_preview";
// $size = explode('x', osc_preview_dimensions());
// ImageResizer::fromFile($normal_path)->resizeTo($size[0], $size[1])->saveToFile($path, $extension);
.
.
// osc_copy($tmpName.'_preview', $folder.$resourceId.'_preview.'.$extension);
.
.
// @unlink($tmpName."_preview");
/oc-admin/controller/settings/media.php
// Create preview
// $path = osc_base_path().$resource['s_path'].$resource['pk_i_id'].'_preview.'.$resource['s_extension'];
// $size = explode('x', osc_preview_dimensions());
// ImageResizer::fromFile($path_normal)->resizeTo($size[0], $size[1])->saveToFile($path);
This should do it, or I must comment out also
oc-includes/osclass/utils.php
//@unlink(osc_base_path() . $resource['s_path'] .$resource['pk_i_id']."_preview.".$resource['s_extension']);
?
I'm not interested in changing looks in admin. I'm only interested on preventing preview from being generated by user or admin (even if the dimensions etc remain in the db)