Hello.
I have a question which i described in another Topic, but I will make a new one to make it separate.
When user is uploading the photo which res is bigger than the setup. The file is cut to the limit. It means that when I upload file for example 3000x2000pix and the limit is 1920x1920. The smaller size is resized to 1920 and then the file is cut to the sqare.
Why the error is not working?
I checked the php code for file fileupload.php
I don't know php at all but there is a section which is checking the size, but I didn't find any code for the file resize and cut.
Another question is the function "get"
In this line: $maxResWidth = $params->get( 'upload_maxres_width', 3072 );
the 3072 is the default value?
maybe this get is not working well and setting the maxres here will work?
best regards
g.
ulpoad file truncate
-
glatocha
- Phoca Newbie

- Posts: 4
- Joined: 17 Dec 2009, 12:10
Re: ulpoad file truncate
where is the file with actual global parameters in config.xml I can see only the default value, but I want to check if the settings is correctly setup.
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: ulpoad file truncate
Hi, while uploading there is no cropping.
Cropping only happens if the thumbnails are created not while upload (in admin). In front the upload and thumbnail creating is made in one, but original image is not modified...
Only if you will use Java upload and you set it in parameters...
See this to find the parameters:
https://www.phoca.cz/documents/16-joomla ... -in-joomla
Jan
Cropping only happens if the thumbnails are created not while upload (in admin). In front the upload and thumbnail creating is made in one, but original image is not modified...
Only if you will use Java upload and you set it in parameters...
See this to find the parameters:
https://www.phoca.cz/documents/16-joomla ... -in-joomla
Jan
If you find Phoca extensions useful, please support the project