Class Picture1
Located at easycore/Ehex.php
public static
|
|
public static
|
|
public
mixed
|
#
compressAndUploadPicture_asJpeg( $source_url, $destination_url, $quality = 60 )
The higher the number, the better the quality, but unfortunately the larger the size. You also can resize images with functions like imagecopyresampled and imagecopyresized. |
public static
boolean
|
#
compressAndUploadPicture( $file_path, null $destination = null, integer $quality = 60, integer $pngQuality = 9 )
The quality works only for JPG�s images. But if you want to change the file to PNG�s, you have to change manually via code. GIF doesn't affect the quality Default quality for PNG: 9 ( 0 - no compression, 9 - max compression ) Create a new instance of a class This function will return only the name of new image compressed with your respective extension |
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
mixed
|