finbrook dos2unix
This commit is contained in:
parent
de3c08baa7
commit
89c5ea41f4
|
@ -190,6 +190,7 @@ function sub_ext($src, $ext) {
|
||||||
*/
|
*/
|
||||||
function gen_images($src, $opts = "", $lossy=0) {
|
function gen_images($src, $opts = "", $lossy=0) {
|
||||||
$ext = substr($src, strrpos($src, '.')+1);
|
$ext = substr($src, strrpos($src, '.')+1);
|
||||||
|
$psrc = ltrim($src, '/');
|
||||||
|
|
||||||
if ($lossy || in_array($ext, ["jpg", "jpeg"])) {
|
if ($lossy || in_array($ext, ["jpg", "jpeg"])) {
|
||||||
$je = ltrim(p_img($src, $opts, "jpg"), '/');
|
$je = ltrim(p_img($src, $opts, "jpg"), '/');
|
||||||
|
|
Loading…
Reference in a new issue