Wrong permissions on scaled image

  • Unknown's avatar

    I noticed when I scale an image, the permissions aren’t correct. I’m running the latest WP on my own unix server. The server is running Apache with PHP and mod_suphp so that everything runs with my user permissions as opposed to the server permissions. Everything works great, except when I try to scale an image. A step by step process goes like this (I made sure to do this with no plugins or 3rd party themes loaded):

    Click on Image Library -> Add New
    Drag and drop my image into the upload box and wait for it to upload, then crunch.
    When the page refreshes, I see the image details where I can add a title and so forth.
    Looking at the physical files created, I see this:[code]-rw-r--r-- 1 kirash kirash 11418 Jan 14 03:01 Pixel-Controller-Board-150x150.jpg
    -rw-r--r-- 1 kirash kirash 25094 Jan 14 03:01 Pixel-Controller-Board-300x176.jpg
    -rw-r--r-- 1 kirash kirash 142239 Jan 14 03:01 Pixel-Controller-Board.jpg[/code]
    So far, so good. I can include that image in a post and get it to show up at full size.

    However, after this is where the problem manifests itself.
    Right below the image is an Edit button. Click on that.
    On the new page, at the top of the right column is the Scale option. Click that.
    Now I enter a new proportional size and hit scale.
    The new image gets created and new thumbnails generated.
    Now, looking at the physical files, I see this:[code]-rw-r--r-- 1 kirash kirash 12240 Jan 14 03:02 Pixel-Controller-Board-e1326535325563-150x150.jpg
    -rw-r--r-- 1 kirash kirash 39012 Jan 14 03:02 Pixel-Controller-Board-e1326535325563-300x300.jpg
    -rw------- 1 kirash kirash 57164 Jan 14 03:02 Pixel-Controller-Board-e1326535325563.jpg[/code]
    Notice the last file missing the group and system +r flag. The thumbnails are fine, but the newly generated scaled image isn’t.

    While I can include that new image in a post, it won’t be able to get loaded in a browser because of the missing read flag. I have to log in to my server and manually fix the permissions for it to work again.

    Any suggestions as to where I need to start looking for this bug?

  • Unknown's avatar

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • Unknown's avatar

    The site you are asking about does not seem to be hosted on WordPress.COM so you need to make friends over at WordPress.ORG the keepers of the software you are using.

    https://en.forums.wordpress.com/topic/7-things-to-know-before-posting-in-wordpresscom-forums?replies=1

    This site is for support of sites hosted on WordPress.COM. You should address your questions to WordPress.ORG the keepers of the software you are using: http://wordpress.org/support/

    For more on the difference: http://support.wordpress.com/com-vs-org/

  • Unknown's avatar

    Aha. Thanks for the pointer.

  • Unknown's avatar
  • The topic ‘Wrong permissions on scaled image’ is closed to new replies.