Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter pete-sch

    (@pete-sch)

    As I can see, you use the “wp_generate_attachment_metadata” function.

    I tweaked my server to get a disk quote error again. There are the contents of the variable $metadata after running
    $metadata = wp_generate_attachment_metadata( $image->ID, $fullsizepath ); in ajax_process_image().

    Resize failed:

    Array
    (
        [width] => 600
        [height] => 398
        [hwstring_small] => height='84' width='128'
        [file] => 2010/03/portrait.gif
        [image_meta] => Array
            (
                [aperture] => 0
                [credit] =>
                [camera] =>
                [caption] =>
                [created_timestamp] => 0
                [copyright] =>
                [focal_length] => 0
                [iso] => 0
                [shutter_speed] => 0
                [title] =>
            )
    
    )

    Resize succeeded:

    Array
    (
        [width] => 600
        [height] => 398
        [hwstring_small] => height='84' width='128'
        [file] => 2010/03/portrait.gif
        [sizes] => Array
            (
                [thumbnail] => Array
                    (
                        [file] => portrait-150x150.gif
                        [width] => 150
                        [height] => 150
                    )
    
                [medium] => Array
                    (
                        [file] => portrait-300x199.gif
                        [width] => 300
                        [height] => 199
                    )
    
                [post-thumbnail] => Array
                    (
                        [file] => portrait-267x180.gif
                        [width] => 267
                        [height] => 180
                    )
    
                [S] => Array
                    (
                        [file] => portrait-60x60.gif
                        [width] => 60
                        [height] => 60
                    )
    
                [M] => Array
                    (
                        [file] => portrait-180x180.gif
                        [width] => 180
                        [height] => 180
                    )
    
                [F] => Array
                    (
                        [file] => portrait-580x220.gif
                        [width] => 580
                        [height] => 220
                    )
    
            )
    
        [image_meta] => Array
            (
                [aperture] => 0
                [credit] =>
                [camera] =>
                [caption] =>
                [created_timestamp] => 0
                [copyright] =>
                [focal_length] => 0
                [iso] => 0
                [shutter_speed] => 0
                [title] =>
            )
    
    )

    pete-sch

    (@pete-sch)

    Bug is still present in the latest version.

    Plugin version 2.0.3
    WordPress version 3.0.1

    Reproduction: Install and activate the plugin, set up some types and LOG OUT.

    $wp_roles global variable is available only for the logged-on user.

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