Started EFIX-stripping
This commit is contained in:
parent
8373023f1c
commit
7f820c08fc
12
lib.php
12
lib.php
|
@ -106,6 +106,18 @@ function get_cwd($url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sanitize_jpg($path)
|
||||||
|
{
|
||||||
|
$image = new Imagick($path);
|
||||||
|
|
||||||
|
$profiles = $image->getImageProfiles("icc", true);
|
||||||
|
|
||||||
|
$image->Imagick::stripImage();
|
||||||
|
|
||||||
|
if(!empty($profiles))
|
||||||
|
$image->profileImage("icc", $profiles['icc']);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function celebrate($dest_file, $item_type, $image_url, $image_alt, $meta_data = false)
|
function celebrate($dest_file, $item_type, $image_url, $image_alt, $meta_data = false)
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,9 +19,9 @@ $url_aliasize_die_alt = "A whimsical mask on fire.";
|
||||||
|
|
||||||
$url_aliasize_item = "mask"; // what the alias is affectionately called
|
$url_aliasize_item = "mask"; // what the alias is affectionately called
|
||||||
$url_aliasize_dir = "u/"; // where the redirects go
|
$url_aliasize_dir = "u/"; // where the redirects go
|
||||||
$url_aliasize_suffix = ".php"; // suffix to redirect links; some web-servers
|
$url_aliasize_suffix = ""; // suffix to redirect links; some web-servers
|
||||||
// only execute ".php" files, so you might
|
// only execute ".php" files, so if things
|
||||||
// wanna keep ".php" as the suffix
|
// don't work, set as ".php"
|
||||||
|
|
||||||
|
|
||||||
// vars related to file uploading
|
// vars related to file uploading
|
||||||
|
|
Ŝarĝante…
Reference in New Issue