sewpafly / post-thumbnail-editor

Wordpress Plugin to manually edit post thumbnails
http://wordpress.org/extend/plugins/post-thumbnail-editor/
32 stars 18 forks source link

The saved thumbnails images are not show in multimedia manager #104

Closed ignaciocarre closed 10 years ago

ignaciocarre commented 10 years ago

Hi! after cropping the images and press the save icon, (no errors in console) the images are not shown in wordpress multimedia manager, so can't use them.

Versión: 2.4.1

here is the error log

[DEPURACIÓN][2014-09-17T17:39:52+00:00][ PTE-VERSION: 2.4.1
USER-AGENT:  Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
WORDPRESS:   4.0 ]
[DEPURACIÓN][2014-09-17T17:40:00+00:00][ PARAMETERS: Array
(
    [action] => pte_ajax
    [id] => 16
    [pte-action] => get-thumbnail-info
) ]
[DEPURACIÓN][2014-09-17T17:40:22+00:00][ PARAMETERS: Array
(
    [action] => pte_ajax
    [h] => 537.5231143552312
    [id] => 16
    [pte-action] => resize-images
    [pte-sizes] => Array
        (
            [0] => unite-featured
        )

    [save] => true
    [w] => 956.418699186992
    [x] => 0
    [y] => 216.47688564476874
) ]
[DEPURACIÓN][2014-09-17T17:40:22+00:00][ BASE FILE DIMENSIONS/INFO: Array
(
    [0] => 1100
    [1] => 754
    [2] => 2
    [3] => width="1100" height="754"
    [bits] => 8
    [channels] => 3
    [mime] => image/jpeg
) ]
[DEPURACIÓN][2014-09-17T17:40:22+00:00][ GETwidthheightCROPPED ]
[DEPURACIÓN][2014-09-17T17:40:22+00:00][ WIDTHxHEIGHT: 730 x 410 ]
[DEPURACIÓN][2014-09-17T17:40:22+00:00][ EDITOR: GD ]
[DEPURACIÓN][2014-09-17T17:40:22+00:00][ COMPRESSION: 90 ]
[DEPURACIÓN][2014-09-17T17:40:22+00:00][ COMPRESSION: 90 ]
[DEPURACIÓN][2014-09-17T17:40:22+00:00][ CONFIRM: ]
[DEPURACIÓN][2014-09-17T17:40:22+00:00][ Array
(
    [action] => pte_ajax
    [h] => 537.5231143552312
    [id] => 16
    [pte-action] => resize-images
    [pte-sizes] => Array
        (
            [0] => unite-featured
        )

    [save] => true
    [w] => 956.418699186992
    [x] => 0
    [y] => 216.47688564476874
    [pte-confirm] => Array
        (
            [unite-featured] => 100_7850-730x410.jpg
        )

) ]
[DEPURACIÓN][2014-09-17T17:40:22+00:00][ pte_get_all_alternate_size_information returned: Array
(
    [unite-featured] => Array
        (
            [width] => 730
            [height] => 410
            [crop] => 1
            [current] => Array
                (
                    [file] => 100_7850-730x410.jpg
                    [width] => 730
                    [height] => 410
                    [path] => 2014/09/100_7850-730x410.jpg
                    [url] => http://cantrevealtheurlsorry.com/wp-content/uploads/2014/09/100_7850-730x410.jpg
                )

        )

) ]
[DEPURACIÓN][2014-09-17T17:40:22+00:00][ Deleting old thumbnail: /cantrevealtheurlsorry.com/wp-content/uploads/2014/09/100_7850-730x410.jpg ]
[DEPURACIÓN][2014-09-17T17:40:22+00:00][ Moving '/cantrevealtheurlsorry.com/wp-content/uploads/ptetmp/16/100_7850-730x410.jpg' to '/cantrevealtheurlsorry.com/wp-content/uploads/2014/09/100_7850-730x410.jpg' ]
[DEPURACIÓN][2014-09-17T17:40:22+00:00][ Updating 'unite-featured' metadata: Array
(
    [file] => 100_7850-730x410.jpg
    [width] => 730
    [height] => 410

In the db table _wppostmeta no data is store

sewpafly commented 10 years ago

On the view tab does it show the correct crop?

ignaciocarre commented 10 years ago

Sorry.. what do you mean with "view tab"?.. the thumbnails shouldn't be elegibles in multimedia manager?

screenshot_22

sewpafly commented 10 years ago

Sorry, I should have explained myself better. You can view the current condition of all the thumbnails for an image in the editor. This makes it easy to see if any of the sizes are cropped incorrectly.

Here is a quick screenshot I grabbed.

pte_view

ignaciocarre commented 10 years ago

Yes! I see the images there, i did a custom crop, etc.. but after that?? how I use them in a carousel for example??

sewpafly commented 10 years ago

That depends on your theme or the plugin that creates the carousel. They have to use the same post-thumbnail that you edited. (See http://codex.wordpress.org/Post_Thumbnails for more in depth information). Typically when the designer wants to use a post-thumbnail they will use code like this:

<img src="<?php wp_get_attachment_image_src($id, 'thumbnail-name')['url'];?>">

My workflow when I'm using a new theme is to either ask the designer which post-thumbnail they are using, or try looking through their code to figure it out myself. If you are using a free theme, I could tell you which thumbnails you need to modify.

ignaciocarre commented 10 years ago

WOOOOW!! now i see.. perfect. Thank you very much!