finbrook dos2unix

This commit is contained in:
John Alanbrook 2022-11-09 20:16:21 +00:00
parent de3c08baa7
commit 89c5ea41f4

View file

@ -190,6 +190,7 @@ function sub_ext($src, $ext) {
*/
function gen_images($src, $opts = "", $lossy=0) {
$ext = substr($src, strrpos($src, '.')+1);
$psrc = ltrim($src, '/');
if ($lossy || in_array($ext, ["jpg", "jpeg"])) {
$je = ltrim(p_img($src, $opts, "jpg"), '/');