diff --git a/tetras_extraction/script/cropImages.sh b/tetras_extraction/script/cropImages.sh
index a35e009f67be1f0a2f8d583bee863c36c4cb55cd..409fe0d83be89db051b72d5b1849d83ef6ac868c 100644
--- a/tetras_extraction/script/cropImages.sh
+++ b/tetras_extraction/script/cropImages.sh
@@ -19,9 +19,9 @@ fi
 find "$DIRECTORY" -type f | while read -r filepath; do
   # Check if the file is an image
   file_type=$(file --mime-type -b "$filepath")
-  if [[ $file_type == image/* ]]; then
-    # Apply the magick convert command with -trim option
-    magick convert "$filepath" -trim "$filepath"
+  if [[ $file_type == image/* ]] || [[ "$filepath" == *.gif ]]; then
+    # Apply the magick convert command with -trim and -fuzz options
+    magick convert "$filepath" -fuzz 10% -trim +repage "$filepath"
     echo "Processed: $filepath"
   else
     echo "Skipped (not an image): $filepath"