By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 595
Collapse All | Expand All

(-)digikam-0.9.6.old/digikam/kioslave/digikamthumbnail.cpp (-2 / +2 lines)
Lines 370-376 Link Here
370
    unsigned char buf[PNG_BYTES_TO_CHECK];
370
    unsigned char buf[PNG_BYTES_TO_CHECK];
371
    fread(buf, 1, PNG_BYTES_TO_CHECK, f);
371
    fread(buf, 1, PNG_BYTES_TO_CHECK, f);
372
    if (!png_check_sig(buf, PNG_BYTES_TO_CHECK))
372
    if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK))
373
    {
373
    {
374
        fclose(f);
374
        fclose(f);
375
        return qimage;
375
        return qimage;
Lines 465-471 Link Here
465
    {
465
    {
466
        png_set_gray_to_rgb(png_ptr);
466
        png_set_gray_to_rgb(png_ptr);
467
        if (png_get_bit_depth(png_ptr, info_ptr) < 8)
467
        if (png_get_bit_depth(png_ptr, info_ptr) < 8)
468
            png_set_gray_1_2_4_to_8(png_ptr);
468
            png_set_expand_gray_1_2_4_to_8(png_ptr);
469
    }
469
    }
470
    int sizeOfUint = sizeof(unsigned int);
470
    int sizeOfUint = sizeof(unsigned int);
(-)digikam-0.9.6.old/digikam/libs/dimg/loaders/pngloader.cpp (-2 / +2 lines)
Lines 88-94 Link Here
88
    unsigned char buf[PNG_BYTES_TO_CHECK];
88
    unsigned char buf[PNG_BYTES_TO_CHECK];
89
    fread(buf, 1, PNG_BYTES_TO_CHECK, f);
89
    fread(buf, 1, PNG_BYTES_TO_CHECK, f);
90
    if (!png_check_sig(buf, PNG_BYTES_TO_CHECK))
90
    if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK))
91
    {
91
    {
92
        DDebug() << k_funcinfo << "Not a PNG image file." << endl;
92
        DDebug() << k_funcinfo << "Not a PNG image file." << endl;
93
        fclose(f);
93
        fclose(f);
Lines 252-258 Link Here
252
#ifdef ENABLE_DEBUG_MESSAGES
252
#ifdef ENABLE_DEBUG_MESSAGES
253
                DDebug() << "PNG in PNG_COLOR_TYPE_GRAY" << endl;
253
                DDebug() << "PNG in PNG_COLOR_TYPE_GRAY" << endl;
254
#endif
254
#endif
255
                png_set_gray_1_2_4_to_8(png_ptr);
255
                png_set_expand_gray_1_2_4_to_8(png_ptr);
256
                png_set_gray_to_rgb(png_ptr);
256
                png_set_gray_to_rgb(png_ptr);
257
                if (QImage::systemByteOrder() == QImage::LittleEndian)       // Intel
257
                if (QImage::systemByteOrder() == QImage::LittleEndian)       // Intel
(-)digikam-0.9.6.old/digikam/libs/greycstoration/CImg.h (-1 / +1 lines)
Lines 29449-29455 Link Here
29449
        new_bit_depth = 8;
29449
        new_bit_depth = 8;
29450
      }
29450
      }
29451
      if (new_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8){
29451
      if (new_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8){
29452
        png_set_gray_1_2_4_to_8(png_ptr);
29452
        png_set_expand_gray_1_2_4_to_8(png_ptr);
29453
        new_bit_depth = 8;
29453
        new_bit_depth = 8;
29454
      }
29454
      }
29455
      if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))
29455
      if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))

Return to bug 595