Re: resize error

See all posts Reply

Re: resize error new!
by İhsan, 4 years ago
php-7.3 image sizing doesn't work
Pardus-19.2 systemReply
Re: resize error new!
by colin, 4 years ago
Please copy here the log produced by the class, and any error you may have.Reply
Re: resize error new!
by İhsan, 4 years ago
where is the log produced by class.upload classReply
Re: resize error new!
by colin, 4 years ago
Re: resize error log file new!
by ihsan, 4 years ago
system information
- class version : 0.32
- operating system : Linux
- PHP version : 7.3.14-1~deb10u1
- GD version : 2.2.5
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- upload_max_filesize : 20M (20971520 bytes)
- language : tr_TR
source is an uploaded file
- upload OK
- file name OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
MAGIC path will not be used
MIME type detected as image/jpeg; charset=binary by Fileinfo PECL extension
- MIME validated as image/jpeg;
source variables
- You can use all these before calling process()
file_src_name : girl-7.jpg
file_src_name_body : girl-7
file_src_name_ext : jpg
file_src_pathname : /tmp/phpSQ2YyN
file_src_mime : image/jpeg;
file_src_size : 27753 (max= 20971520)
file_src_error : 0
process file to ../yemek/
- file size OK
- file mime OK : image/jpeg;
- file name safe format
- destination variables
file_dst_path : ../yemek/
file_dst_name_body : girl-7
file_dst_name_ext : jpg
- no auto_rename if same filename exists
- destination file details
file_dst_name : girl-7.jpg
file_dst_pathname : ../yemek/girl-7.jpg
- no overwrite checking
- no image processing wanted
- process OK
process file to ../yemek/kck/
- file size OK
- file mime OK : image/jpeg;
- file name safe format
- destination variables
file_dst_path : ../yemek/kck/
file_dst_name_body : girl-7
file_dst_name_ext : jpg
- no auto_rename if same filename exists
- destination file details
file_dst_name : girl-7.jpg
file_dst_pathname : ../yemek/kck/girl-7.jpg
- no overwrite checking
- no image processing wanted
- process OK
cleanup
- delete temp file /tmp/phpSQ2YyNReply
Re: resize error log file new!
by colin, 4 years ago
There is something strange... Basically, the MIME is detected, and validated as image/jpeg; (note the semi-colon at the end). But because it has the semi-colon at the end, it is not recognized as an image MIME type, thus disabling image processing.

But the regex shouldn't return the semi-colon, see https://regex101.com/r/omnTR3/1

I also see that you are not using the latest version of the class. Please try again with the latest release, or the master branch.Reply
Re: resize error new!
by ihsan, 3 years, 12 months ago
web hosting also works.
It doesn't work on localhost.
Uploading the image to its folder.
But it does not apply scaling and water marker.
php-7.0 -> I upgraded php7.3.
It did not work after upgrading.
php-7.0 was working normally.Reply
Re: resize error new!
by colin, 3 years, 12 months ago
Are you using the last version of the class, from master? Can you copy again the log with the last version?Reply
Re: resize error new!
by ihsan, 3 years, 12 months ago
Version 0.32Reply
Re: resize error new!
by colin, 3 years, 12 months ago
This is not the latest version on GithubReply
Re: resize error new!
by ihsan, 3 years, 12 months ago
Thanks
I installed the latest version
$ upload = new \ Verot \ Upload \ Upload ($ _ FILES ['picture']);
In this way, he worked in resize and watermark.Reply
delete old picture new!
by ihsan, 3 years, 12 months ago
delete old picture when uploading picture
upload on old picture
how to doReply
Re: delete old picture new!
by Colin, 3 years, 12 months ago
This has to be done outside of the class, or by using file_auto_rename and/or file_overwriteReply