WordPress.org

Ready to get started?Download WordPress

Forums

No thumbnails creation for images uploaded via XML-RPC (2 posts)

  1. jbd7
    Member
    Posted 1 year ago #

    Dear All,

    I am using the WordPress client for Maemo on the Nokia N900, for my blog with the Arras theme. It works quickly and neatly.

    I can attach pictures and they are correctly uploaded in the contents folder and displayed in the post. However, they are not created thumbnails, hence I cannot use it as a featured picture.

    In the media library, the field "File type:" remains empty (it should display "image/jpeg" just like the same image uploaded via the internet browser) and the picture won't be displayed.

    I noticed that clicking on "view" doesn't display the pic and the URL has "-jpg" in it (ex: http://freewheely.com/2012/09/between-x-and-y/20120830_001-jpg/). On the other hand, for a picture uploaded via the browser, it doesnt (ex: http://freewheely.com/2012/09/test-post-at-1420-from-gmail/20120630_006/)

    Would you be able to lead me to some explanations or solutions?

    Thank you,

    jb

  2. kb_unhammer
    Member
    Posted 1 year ago #

    I think this may be related: I spent some time trying to figure out why thumbnails weren't created when I upload images from Python to WordPress over xml-rpc. I was sending:
    {'name':'foo.jpg', 'bits':xmlrpclib.Binary(file.read())}
    but should also have specified the mime type:
    {'name':'foo.jpg', 'type':'image/jpeg', 'bits':xmlrpclib.Binary(file.read())}

    Without the mime type, thumbnails are not created when uploading over XML-RPC, so I guess the client is not adding or even detecting the mime type.

Topic Closed

This topic has been closed to new replies.

About this Topic