<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>515208</bug_id>
          
          <creation_ts>2026-01-28 15:20:46 +0000</creation_ts>
          <short_desc>Advanced Search filter for specific EXIF Orientation values (Flipped/Rotated)</short_desc>
          <delta_ts>2026-02-17 19:18:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>digikam</product>
          <component>Searches-Advanced</component>
          <version>8.8.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="1234destiny1234">1234destiny1234</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
    
    <cc>metzpinguin</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>9.0.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2489352</commentid>
    <comment_count>0</comment_count>
    <who name="1234destiny1234">1234destiny1234</who>
    <bug_when>2026-01-28 15:20:46 +0000</bug_when>
    <thetext>I’m currently cleaning up a massive library and I’ve run into a tedious issue. I have hundreds of photos that are either rotated 90 degrees or flipped (wrong orientation),

I’m trying to isolate a specific set of images in my library where the Exif Orientation tag is set to anything other than &quot;Normal&quot; (e.g., flipped horizontally, rotated 180, etc.).

i have already used the advanced search option and tried to search using the exif orientation ( selected all except &quot; normal&quot; ) but the results are not correct.

I know digiKam can Auto-rotate/flip using Exif information, but before I apply any batch fixes, I want to search and review them first. 

Advanced Search: Is there a field in the digiKam Advanced Search Tool that lets you filter by the numeric Exif orientation value (like 2-8)?

Flipped Images: My main concern is images that are mirrored/flipped. Is there a way to filter for those specific tags specifically?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2489357</commentid>
    <comment_count>1</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-01-28 15:48:50 +0000</bug_when>
    <thetext>This search criterion already exists; look in the Photo Information section under Exif alignment.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2489358</commentid>
    <comment_count>2</comment_count>
    <who name="1234destiny1234">1234destiny1234</who>
    <bug_when>2026-01-28 15:51:35 +0000</bug_when>
    <thetext>(In reply to Maik Qualmann from comment #1)
&gt; This search criterion already exists; look in the Photo Information section
&gt; under Exif alignment.
&gt; 
&gt; Maik

Yes i have tried this feature , but it does not show the flipped or wrongly orientated pictures that i have in the database.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2489359</commentid>
    <comment_count>3</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-01-28 15:52:48 +0000</bug_when>
    <thetext>I cannot detect any faulty alignment search in a short test.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2489363</commentid>
    <comment_count>4</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-01-28 16:04:27 +0000</bug_when>
    <thetext>The SQL debug output is definitely correct. Perhaps the orientations flag wasn&apos;t correctly captured during the initial scan for some reason. I would re-read all the metadata from the images.

Maik</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2489367</commentid>
    <comment_count>5</comment_count>
    <who name="1234destiny1234">1234destiny1234</who>
    <bug_when>2026-01-28 16:23:58 +0000</bug_when>
    <thetext>(In reply to Maik Qualmann from comment #4)
&gt; The SQL debug output is definitely correct. Perhaps the orientations flag
&gt; wasn&apos;t correctly captured during the initial scan for some reason. I would
&gt; re-read all the metadata from the images.
&gt; 
&gt; Maik

Please can you advise the exact steps to search and filter all the photos which have images with correct Exif orientation tags ( top left ) but are just physically sideways on disk , since when i try to manually search and do  auto rotate using exif , its being rotated , although i am not able to search and filter these images using the advanced search option</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2495481</commentid>
    <comment_count>6</comment_count>
    <who name="Maik Qualmann">metzpinguin</who>
    <bug_when>2026-02-17 19:18:44 +0000</bug_when>
    <thetext>Whether I select all orientation flags except &quot;normal&quot; or take the opposite approach by selecting the option &quot;None of the following conditions are met&quot; in the search group header and choosing only the &quot;normal&quot; orientation flag, I always get the same number of images in my collection. The result is definitely correct when I check the orientation flags in the metadata. I&apos;m closing the bug.

Maik</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>