summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-04-06 22:02:46 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-04-06 22:02:46 -0400
commit1950679680ab7402fc64866f74e99bf49912a8a1 (patch)
treed78e1578d10136a656caee8beff1fe47435c963c
parent1aed81debf809c9c0d4b2f9620d98b6bf10a8bd2 (diff)
downloadpo-1950679680ab7402fc64866f74e99bf49912a8a1.tar.gz
po-1950679680ab7402fc64866f74e99bf49912a8a1.tar.bz2
po-1950679680ab7402fc64866f74e99bf49912a8a1.zip
[fix] Explicitly strip out exif data from preview pics
-rw-r--r--src/include/import.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/import.php b/src/include/import.php
index c6dd9cf..2cbc45e 100644
--- a/src/include/import.php
+++ b/src/include/import.php
@@ -680,7 +680,6 @@ function photo_import_single($database, $index, &$image_data, &$output) {
$image_data['file'][$new_index]['original_name'] = trim_filename($image_data['file'][$index]['name'] . "_jpgfromraw.jpg");
$image_data['file'][$new_index]['name_tmp'] = $image_data['jpgfromraw'];
$image_data['file'][$new_index]['type'] = "jpeg";
- $image_data['file'][$new_index]['remark'] = "";
$image_data['file'][$new_index]['master'] = $po_options['jpgfromraw_master'];
$image_data['file'][$new_index]['orientation'] = $image_data['file'][$index]['orientation_orig'];
$image_data['file'][$new_index]['remark'] = "Preview image extracted from RAW";
@@ -1182,8 +1181,8 @@ function import_generate_scaled($input_file_name, $output_file_name,
}
}
- # Ensure we strip all profiles out of the final image..
- $im_profile_b .= " +profile icm ";
+ # Ensure we strip all profiles (icm, exif, etc) out of the final image..
+ $im_profile_b .= " +profile * ";
$output .= "<li>".$strings['import_generating_'.$size_name] ." ... ";