- Forum||Hilfe & Support
- /
- KISS Support Forum
- /
- Software Forum
- /
- KISS Advertiser
- /
- Image resize function
Image resize function
- siasolutions
- Autor
- Offline
- Senior Boarder
- Beiträge: 26
- Dank erhalten: 0
Thank you very much ...
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- DocChicago
- Offline
- KISS Programmer-in-Chief
The image resizing on upload is done in the file imgselector.php and in the class.upload.php
In the class.upload.php you will find a function
function imgResize($filename, $source_dir, $dest_width, $duplicate = false)
Search for the
$upload->uploadFile($image_abs, \'original\', 50, $size);
$image_abs is the absolute image directory,
\'original\' means that the file will not be encrypted during upload,
50 means that a filename longer than 50 chars will be truncated,
$size is read from the KISS Advertiser max image width configuration setting.
Ob ein Glas halb voll oder halb leer ist, ist mir egal. Hauptsache meine Zähne passen rein.
No matter whether a glass is half full or half empty - as long as my teeth fit in.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- siasolutions
- Autor
- Offline
- Senior Boarder
- Beiträge: 26
- Dank erhalten: 0
Greetings...
So, what happens is that the jpg images does not get resized, instead they are saved on server in their original size, instead png images get resized, but there is a notable lost in quality.
Please find an attached image I downloaded from the server.
Can you please indicate me how to silve this, or at least the location of the \"image manipulation\" function/file? (So I won\'t got lost in the code).
For the moment it seems that the problem is in the function, maybe I have an outdated library ... or there is indedd some issue in the function.
Thank you very much for your kind answer.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- siasolutions
- Autor
- Offline
- Senior Boarder
- Beiträge: 26
- Dank erhalten: 0
Hi,
I had run a short script to check if the GD library is working propperly. Here is the output:
It seems that this is all right. Any other suggestions?
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- siasolutions
- Autor
- Offline
- Senior Boarder
- Beiträge: 26
- Dank erhalten: 0
I had installed on my server the PHP5-gd library module v. 5.2.6, so it should work.
I will check the PHP and apache configuration.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- DocChicago
- Offline
- KISS Programmer-in-Chief
The image width resize function works only with jpg, jpeg and png files and requires the GD2 library to be installed on the server.
Ob ein Glas halb voll oder halb leer ist, ist mir egal. Hauptsache meine Zähne passen rein.
No matter whether a glass is half full or half empty - as long as my teeth fit in.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.