About this topic

  • Posted by mdh218 1 year ago. There are 12 posts. The latest reply is from byron.
  • This topic is not resolved

No tags yet.

  1. Not sure what I'm doing when I upload portrait oriented photos, but some get rotated to landscape oriented but some don't. I think I've narrowed it down to the actual image pixel size.

    version: 0.8.00

    gallery image settings:

    mini: 125x125 crop to exact
    thumbnail: 125x125 crop to exact
    medium: 320x160 crop to exact
    large: 640x480 not cropped

    i've tried every variant of cropped and not cropped. if the portrait image as a width of 640 or less; it doesn't rotate the image. if the portrait has a width larger then 640 it rotates and makes it 640x480.

    files i'm loading, pixel size are:

    landscape: 3456 × 2592

    - creates a 125 x 125 thumbnail and a lightbox image of 640x480. just what i want what one would expect

    portrait: 2592 × 3456

    - creates a 125 x 125 thumbnail ROTATED and a lightbox image of 640x480 rotated. NOT what i want.

    i assume it is the settings of all the gallery image settings and not sure how to fix.

    thanks!

  2. Hi mdh218,

    That is bizarre. There is nothing in PhotoSmash that would rotate in the images on its own. Can you try uploading one of errant images to the Demo gallery on this site (you might need to resize it down since I've got the setting so that they reject images over 500Kb)? And could you email me the original so I can play with it?

    PhotoSmash uses the standard WordPress image upload functions, so it is possible that something changed in WP 3.0 that I am not setting in the PhotoSmash code, or that you've got a plugin that's trying to determined whether it should be landscape or portait.

    Cheers,
    Byron

  3. Thanks for you response. I'm on WP 2.9.2 and not using any other plugins on my site that manipulate photos. I was going to post in the demo gallery, but if I reduce the file size to less then 500Kb, that width/height of said photo will be small enough then to work in my gallery. I'm trying to have to avoid resizing all my photos; and to be quite honest, if i have to do that work (hundreds to thousands in a gallery), I might just as well ftp them up and do a page dump of the directory. hahaha.

    But you answered part of the problem, that PhotoSmash doesn't rotate anything. Let me try a few more things then before I shoot you an email of a photo example.

  4. Hey mdh218,

    No need to reduce file size on your site if you've got the allocated memory to handle the risizing....I was just wanting you to reduce the size of one of the ones that has problems so you could upload it to the Demo Gallery on this site so I could see if I was experiencing the same issues. Here.

    NO problems.

    BB

  5. Right, I understand. Maybe it wasn't clear. If I were to resize it for your demo site; it will work just fine and stay in portrait orientation. It works on my site too that way. I'm trying to avoid having to do that.

    Example:

    portrait: 2592 × 3456 (3.4Mb)

    resize to: 480 x 640 (130Kb)

    That resized photo will stay portrait on your demo site AND my site. I want the original, when WP/PhotoSmash uploads the photo, to stay portrait. It is taking that larger file (size and pixels), rotating it and making it 640 x 480. It has to be with the Large setting in PhotoSmash and the media Large size in WP doing something to it.

  6. To add; I can't even get the photo, the original, to stay in portrait if i set large to zeros (0) and no crop. Thumbnail stays at 125x125 but rotated. the large version is large, but rotated so it comes out at 3456 x 2592 (rotated the portrait to landscape). So I know setting large to zeros (0) and not crop is changing what gets uploaded. I just can't find "who" is rotating it.

  7. Ah...so, if you take the image with the camera turned on its side to get a "portrait" framing, the image file is most likely still in landscape, with the picture laying on its side. In the camera, it probably shows you the image in portrait mode because the camera is smart enough to know to turn it right side up. But you would probably have to use software to get the image rotated properly. Landscape images should be just fine.

    Forgive me if you know all that and that's not the problem, but it's the only thing I can think of at this point.

    Byorn

  8. I am getting the same image rotation issue when uploading images straight from a camera. Opening the image file in photoshop and then saving as a jpeg seems to cure it. Is it the exif data that's causing the unwanted image rotation then? Also, I noticed that I can correct the image rotation in the WP media library, but the correction does not cascade into the gallery. I wonder why.

  9. Hi samskara,

    Do you have another camera to try this out on? Photosmash uses the WP functions for the upload and resizing. It sounds like something isn't coming through in the exif from your camera. Because photosmash and WP can have different image sizes, the may not always share the same files. I also don't know if WP creates new files with new names when it edits or rotates images.

    Not sure what else you can try, but it might be the camera...one way to test would be to see if you have the same thing.

    BB

  10. Hi byron,

    The way I get the photo to load the right way is to open it in Photoshop and save it as a jpeg, which removes the exif data. However, I have multiple users uploading from various camera sources. And I don't want to ask the users to perform this modification, as this seems non-user friendly.

    I can fix the incorrectly rotated image in the WP media library admin screen by clicking edit and rotating it there, but the change does not cascade to the Photosmash gallery. How can I regenerate all of the custom sizes I have set up in my Photosmash gallery after I have rotated the image in the WP media library?

    If there is no way to do this through the WP admin interface, I may be forced to grab the pictures files manually from the server to my local machine, rotate them, and overwrite them to the server. I'm sure this will work, but I will be handing this project over to the site owner in six months and I don't think it is a viable solution for someone who is not a super-user (so to speak).

    So I think the meat of my questioning here is: "How can I regenerate all of the custom sizes I have set up in my Photosmash gallery after I have rotated the image in the WP media library?"

    P.S.: By the way, here is the site at which I have implemented your awesome plugin... http://wp.themonkeyshow.ca/gallery/

  11. Hi Sam,

    Glad you like the plugin!

    Ok, so there isn't a 100% straight forward way to do this because PhotoSmash doesn't regenerate images that are already the right size.

    What you could try is:

    1) Have a dummy gallery where people upload the images to and set all the Image Sizes for that gallery to a dummy size except the big one (you might even try making all the sizes the same as the big one)...make the big one the same as the big one in your WP Media settings (that may be 0 x 0 for full size).

    So, people will upload to that gallery. The goal is that when images are uploaded, the right sizes aren't created, so PhotoSmash will create them at the right time

    2) Create the real gallery (you probably already have it created and set like you want it), with right sizes set in Gallery Settings / Images

    3) Now when people upload, perform your rotation if needed

    4) In Photo Manager, edit the dummy gallery where the uploaded image is. Click Copy/Move Images

    5) Click on the images you want to move...and select the correct destination gallery and do a Move

    If that doesn't automatically resize the image as it moves it, then try doing the Resize in Photo Manager once it's in the good gallery.

    Hope that helps,
    Byron

  12. Sam,

    BTW, LOVE what you've done with the Gallery!

    BB

RSS feed for this topic