Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter wrybit

    (@wrybit)

    see the variations 🙂

    file = jpg, mime-type = png, org = png
    file = png, mime-type = png, org = png
    file = jpg, mime-type = jpg, org = png

    Why? 🙂

    Thread Starter wrybit

    (@wrybit)

    eg. a DB entry of a file which failed.
    All mixed up .. somehow.

    On the Server all files are already JPGs with a “-1” in the middle.
    eg. “typo3_new_login_screen_v5_accepted-1-515×1030.jpg”

    array (
      'width' => 1398,
      'height' => 891,
      'file' => '2014/09/typo3_new_login_screen_v5_accepted-1-1.jpg',
      'sizes' =>
      array (
        'thumbnail' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-80x80.png',
          'width' => 80,
          'height' => 80,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-80x80.png',
          'ewww_image_optimizer' => 'Could not find <span class=\'code\'>/usr/www/users/domain/wp/wp-content/uploads/2014/09/typo3_new_login_screen_v5_accepted-1-80x80.png</span>',
        ),
        'medium' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-500x318.png',
          'width' => 500,
          'height' => 318,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-500x318.png',
          'ewww_image_optimizer' => 'Could not find <span class=\'code\'>/usr/www/users/domain/wp/wp-content/uploads/2014/09/typo3_new_login_screen_v5_accepted-1-500x318.png</span>',
        ),
        'large' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-1-1030x656.jpg',
          'width' => 1030,
          'height' => 656,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-1-1030x656.png',
          'ewww_image_optimizer' => 'Reduced by 95.0% (302.4&nbsp;kB)',
        ),
        'widget' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-36x36.png',
          'width' => 36,
          'height' => 36,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-36x36.png',
          'ewww_image_optimizer' => 'Could not find <span class=\'code\'>/usr/www/users/domain/wp/wp-content/uploads/2014/09/typo3_new_login_screen_v5_accepted-1-36x36.png</span>',
        ),
        'square' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-180x180.png',
          'width' => 180,
          'height' => 180,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-180x180.png',
          'ewww_image_optimizer' => 'Could not find <span class=\'code\'>/usr/www/users/domain/wp/wp-content/uploads/2014/09/typo3_new_login_screen_v5_accepted-1-180x180.png</span>',
        ),
        'featured' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-1-1398x430.jpg',
          'width' => 1398,
          'height' => 430,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-1-1398x430.png',
          'ewww_image_optimizer' => 'Reduced by 94.0% (351.5&nbsp;kB)',
        ),
        'featured_large' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-1-1398x630.jpg',
          'width' => 1398,
          'height' => 630,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-1-1398x630.png',
          'ewww_image_optimizer' => 'Reduced by 95.5% (530.5&nbsp;kB)',
        ),
        'portfolio' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-495x400.png',
          'width' => 495,
          'height' => 400,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-495x400.png',
          'ewww_image_optimizer' => 'Could not find <span class=\'code\'>/usr/www/users/domain/wp/wp-content/uploads/2014/09/typo3_new_login_screen_v5_accepted-1-495x400.png</span>',
        ),
        'portfolio_small' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-260x185.png',
          'width' => 260,
          'height' => 185,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-260x185.png',
          'ewww_image_optimizer' => 'Could not find <span class=\'code\'>/usr/www/users/domain/wp/wp-content/uploads/2014/09/typo3_new_login_screen_v5_accepted-1-260x185.png</span>',
        ),
        'gallery' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-845x684.png',
          'width' => 845,
          'height' => 684,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-845x684.png',
          'ewww_image_optimizer' => 'Could not find <span class=\'code\'>/usr/www/users/domain/wp/wp-content/uploads/2014/09/typo3_new_login_screen_v5_accepted-1-845x684.png</span>',
        ),
        'magazine' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-710x375.png',
          'width' => 710,
          'height' => 375,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-710x375.png',
          'ewww_image_optimizer' => 'Could not find <span class=\'code\'>/usr/www/users/domain/wp/wp-content/uploads/2014/09/typo3_new_login_screen_v5_accepted-1-710x375.png</span>',
        ),
        'masonry' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-705x449.png',
          'width' => 705,
          'height' => 449,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-705x449.png',
          'ewww_image_optimizer' => 'Could not find <span class=\'code\'>/usr/www/users/domain/wp/wp-content/uploads/2014/09/typo3_new_login_screen_v5_accepted-1-705x449.png</span>',
        ),
        'entry_with_sidebar' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-1-845x321.jpg',
          'width' => 845,
          'height' => 321,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-1-845x321.png',
          'ewww_image_optimizer' => 'Reduced by 92.0% (119.5&nbsp;kB)',
        ),
        'entry_without_sidebar' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-1-1210x423.jpg',
          'width' => 1210,
          'height' => 423,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-1-1210x423.png',
          'ewww_image_optimizer' => 'Reduced by 93.4% (251.9&nbsp;kB)',
        ),
        'shop_thumbnail' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-120x120.png',
          'width' => 120,
          'height' => 120,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-120x120.png',
          'ewww_image_optimizer' => 'Could not find <span class=\'code\'>/usr/www/users/domain/wp/wp-content/uploads/2014/09/typo3_new_login_screen_v5_accepted-1-120x120.png</span>',
        ),
        'shop_catalog' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-450x450.png',
          'width' => 450,
          'height' => 450,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-450x450.png',
          'ewww_image_optimizer' => 'Could not find <span class=\'code\'>/usr/www/users/domain/wp/wp-content/uploads/2014/09/typo3_new_login_screen_v5_accepted-1-450x450.png</span>',
        ),
        'shop_single' =>
        array (
          'file' => 'typo3_new_login_screen_v5_accepted-1-450x286.png',
          'width' => 450,
          'height' => 286,
          'mime-type' => 'image/png',
          'converted' => 1,
          'orig_file' => 'typo3_new_login_screen_v5_accepted-1-450x286.png',
          'ewww_image_optimizer' => 'Could not find <span class=\'code\'>/usr/www/users/domain/wp/wp-content/uploads/2014/09/typo3_new_login_screen_v5_accepted-1-450x286.png</span>',
        ),
      ),
      'image_meta' =>
      array (
        'aperture' => 0,
        'credit' => '',
        'camera' => '',
        'caption' => '',
        'created_timestamp' => 0,
        'copyright' => '',
        'focal_length' => 0,
        'iso' => 0,
        'shutter_speed' => 0,
        'title' => '',
        'orientation' => 0,
      ),
      'ewww_image_optimizer' => 'Reduced by 95.7% (594.0&nbsp;kB)',
      'converted' => 1,
      'orig_file' => '/usr/www/users/domain/wp/wp-content/uploads/2014/09/typo3_new_login_screen_v5_accepted.png',
    )
    Thread Starter wrybit

    (@wrybit)

    optipng optimization level @ 2 (default)
    pngout optimization level @ 2 (default)

    Some PNG are “large” ~800kb (and you are right, should had been JPGs, but ..)
    But some are small ~5kb big Logos with opacity, and they fail, too.

    But not the Picture fails, but the Database!?!
    The file(s) where well converted and are laying around fine on the server.
    But the correct Info about the new Filename was not stored to the DB.
    So there must be a “check” function failing or such.
    And I would be helpful, if another check run thought, before the org. gets killed.
    Checking if all Data is fine .. Files .. WordPress Resize files AND the DB. 🙂

    BTW: The PNG to JPG sets also the wrong BG, not the set #ffffff but #000000.
    (Don’t know if this helps ..)

    So I convert the PNGs local now and re-upload them, if I have to do it anyway.
    Or is there a way to fix the database .. somehow.

    Thread Starter wrybit

    (@wrybit)

    (forgot one way ..)

    Way 4:
    – Via “Bulk Optimize” .. this is where my pain came from

    – This baby failed at about 50 files .. and WordPress can’t renew Images ..
    – Now I need to deleted the “JPG Version” from Media Lib, in 3 Langs.
    – Than delete the WordPress “pre-rendered” Temp File mess via SFTP
    – Than re-upload the Original file .. now without conversion 🙂
    – And than add it manually 3 time to the old entries …

    So .. 5 min per Action .. *50 .. 250 .. ~6h :/
    And still not knowing why it happens.
    May I ask, do you have this issue, too?

    Greez WrYBiT

    Thread Starter wrybit

    (@wrybit)

    Way 1:
    – Upload via “Media > Add new” = All PNGs fail

    Way 2:
    – Upload inside a eg. Portfolio = All PNGs fail

    Way 3:
    – Upload as PNG (with “PNG to JPG” turned of) and than via Media Lib “PNG to JPG” = works and works not
    .. just testet 10 equal (copyed 10 times same file) files. 4 Failed, 6 are just fine.

    I don’t know why .. :/

    My Setup:
    – WordPress 4.0.1
    – EWWW 2.1 – Plugin Status: All Clear
    – WPML Media 2.1.7

    Greez WrYBiT

    Thread Starter wrybit

    (@wrybit)

    Hi,

    I’ve just found out, when I use “Media > Add new” and Upload a PNG, it directly creates the issue. As “Convert PNG to JPG” is on, it seems like it douse this directly after upload and directly fails to write the new GUID (and rest) to the Database. To me, easy to reproduce and at least at my environment, an unavoidable bug. ;( I have to turn of PNG to JPG, to get it work just right.

    Could you reproduce this issue, too?

    Greez WrYBiT

    Thread Starter wrybit

    (@wrybit)

    Wow. Quick response!

    Error means, Image is missing 🙂 My fault.

    File:
    – old – filenameXYZ.png
    – new – filenameXYZ-1.jpg
    … and all the pre-rendered rubbish from wordpress

    Database:
    – wp_ewwwio_images .. all ok = new filenames
    – wp_postmeta .. fail = still old path and image types
    – wp_posts .. fail = still old guid

    Backend:
    – Media Lib – (Img missing as Icon) and Text: Could not retrieve file path.

    Frontend:
    – Images is missing .. ok 🙂

    What to do now?
    Why did this happen?
    How to avoid in the future?

    Greez WrYBiT

Viewing 7 replies - 1 through 7 (of 7 total)