<?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>319294</bug_id>
          
          <creation_ts>2013-05-04 00:12:22 +0000</creation_ts>
          <short_desc>Thumbnails disappear when stretching Thumbnail column in Table view [patch]</short_desc>
          <delta_ts>2017-07-14 04:29:09 +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>Thumbs-Image</component>
          <version>3.2.0</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="nurupo">nurupobugskde</reporter>
          <assigned_to name="Digikam Developers">digikam-bugs-null</assigned_to>
          <cc>caulier.gilles</cc>
    
    <cc>nurupobugskde</cc>
          
          <cf_commitlink>http://commits.kde.org/digikam/885ccad530ba0ed23421f774a06a0f65c6d27fab</cf_commitlink>
          <cf_versionfixedin>3.2.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1366133</commentid>
    <comment_count>0</comment_count>
    <who name="nurupo">nurupobugskde</who>
    <bug_when>2013-05-04 00:12:22 +0000</bug_when>
    <thetext>When stretching Thumbnail column in Table view with thumbnails set to 256, thumbnails will disappear and digiKam would complain &quot;digikam(27871)/digikam (core): ThumbnailLoadThread::load: Thumbnail size  337  is larger than  256 . Refusing to load.&quot;.
It does that when columns width is greater than `ThumbnailSize::Huge` (256).
DigiKam shouldn&apos;t use the column&apos;s width as an thumbnails&apos; width and pass it to  `ThumbnailLoadThread::load`, since column&apos;s width is irrelevant from thumbnails&apos; width. User can set arbitrary width of the column and changing column&apos;s width doesn&apos;t resize thumbnails. 

Reproducible: Always

Steps to Reproduce:
1. Open digiKam with some images shown.
2. Switch to Table view.
3. Increase thumbnails&apos; size to 256 by using the zoom slider.
4. Stretch the Thumbnail column of the Table view.
Actual Results:  
When stretching the Thumbnail column too much (&gt;256px), thumbnails disappear.

Expected Results:  
When stretching the Thumbnail column too much (&gt;256px), thumbnails don&apos;t disappear.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1366134</commentid>
    <comment_count>1</comment_count>
      <attachid>79681</attachid>
    <who name="nurupo">nurupobugskde</who>
    <bug_when>2013-05-04 00:16:31 +0000</bug_when>
    <thetext>Created attachment 79681
patch_319294.diff

Since column&apos;s width is irrelevant to thumbnail&apos;s width, don&apos;t use it as size parameter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1366190</commentid>
    <comment_count>2</comment_count>
    <who name="Michael G. Hansen">mike</who>
    <bug_when>2013-05-04 11:24:05 +0000</bug_when>
    <thetext>Git commit 885ccad530ba0ed23421f774a06a0f65c6d27fab by Michael Georg Hansen.
Committed on 04/05/2013 at 13:22.
Pushed by mghansen into branch &apos;master&apos;.

Fix thumbnails disappearing when columns are too wide.

The idea here is that for landscape images, we adjust the height to
to be as high as the row height as long as the width can stretch enough
because the column is wider than the thumbnail size.
However, digiKam limits the thumbnail size to 256, so we also do that here.

M  +9    -1    digikam/views/tableview_column_thumbnail.cpp

http://commits.kde.org/digikam/885ccad530ba0ed23421f774a06a0f65c6d27fab</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>79681</attachid>
            <date>2013-05-04 00:16:31 +0000</date>
            <delta_ts>2013-05-04 00:16:31 +0000</delta_ts>
            <desc>patch_319294.diff</desc>
            <filename>patch_319294.diff</filename>
            <type>text/plain</type>
            <size>792</size>
            <attacher name="nurupo">nurupobugskde</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL2RpZ2lrYW0vdmlld3MvdGFibGV2aWV3X2NvbHVtbl90aHVtYm5haWwuY3Bw
IGIvZGlnaWthbS92aWV3cy90YWJsZXZpZXdfY29sdW1uX3RodW1ibmFpbC5jcHAKaW5kZXggMjEx
NzFhNC4uZjZmMTkyOSAxMDA2NDQKLS0tIGEvZGlnaWthbS92aWV3cy90YWJsZXZpZXdfY29sdW1u
X3RodW1ibmFpbC5jcHAKKysrIGIvZGlnaWthbS92aWV3cy90YWJsZXZpZXdfY29sdW1uX3RodW1i
bmFpbC5jcHAKQEAgLTEzNCw3ICsxMzQsNyBAQCBib29sIENvbHVtblRodW1ibmFpbDo6cGFpbnQo
UVBhaW50ZXIqIGNvbnN0IHBhaW50ZXIsIGNvbnN0IFFTdHlsZU9wdGlvblZpZXdJdGVtJgogCiAg
ICAgICAgIGNvbnN0IFFTdHJpbmcgcGF0aCA9IGluZm8uZmlsZVBhdGgoKTsKICAgICAgICAgUVBp
eG1hcCB0aHVtYm5haWw7Ci0gICAgICAgIGlmIChzLT50aHVtYm5haWxMb2FkVGhyZWFkLT5maW5k
KHBhdGgsIHRodW1ibmFpbCwgcU1heChzaXplLndpZHRoKCkvKiArIDIqLywgc2l6ZS5oZWlnaHQo
KS8qICsgMiovKSkpCisgICAgICAgIGlmIChzLT50aHVtYm5haWxMb2FkVGhyZWFkLT5maW5kKHBh
dGgsIHRodW1ibmFpbCwgc2l6ZS5oZWlnaHQoKSkpCiAgICAgICAgIHsKICAgICAgICAgICAgIC8v
LyBAdG9kbyBJcyBzbG90VGh1bWJuYWlsTG9hZGVkIHN0aWxsIGNhbGxlZCB3aGVuIHRoZSB0aHVt
Ym5haWwgaXMgZm91bmQgcmlnaHQgYXdheT8KICAgICAgICAgICAgIC8vLyBAdG9kbyBSZW1vdmUg
Ym9yZGVycyAtIGJ1dCB0aGV5IGFjdHVhbGx5IGxvb2sgbmljZSBpbiB0aGUgdGFibGUK
</data>

          </attachment>
      

    </bug>

</bugzilla>