Author Topic: test for portrait image  (Read 1400 times)

0 Members and 2 Guests are viewing this topic.

Offline Ben321Topic starter

  • Frequent Contributor
  • **
  • Posts: 939
test for portrait image
« on: August 03, 2025, 10:36:43 pm »
Previously it seems portrait pics I took and posted here got turned to landscape by the forum upload script. I'm testing it here to see if it happens again.
 

Offline Ben321Topic starter

  • Frequent Contributor
  • **
  • Posts: 939
Re: test for portrait image
« Reply #1 on: August 03, 2025, 10:37:44 pm »
Yep. It happened again. Admin, please fix the script so attached portrait orientation photos don't get turned into landscape.
 

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 8349
  • Country: fi
    • My home page and email address
Re: test for portrait image
« Reply #2 on: August 06, 2025, 11:02:13 pm »
That's not what is happening at all.

When you take a photo, your phone or camera stores it in EXIF format, which has an orientation attribute included somewhere in the camera settings metadata.

The upload scripts convert EXIF format images to JPEG, for a number of reasons.  One is that EXIF (and TIFF and other similar formats) can contain non-visible data.  Converting to JPEG only keeps the image data, which is safer.

The recommended way to upload images is to open them in any photo editor — I use GIMP —, cropping the image to focus on the useful part of the image, and resizing it (the pixel size, not the print size) to minimize the file size.  The required size depends on the complexity of the image.  Just look at the cropped-and-scaled image at 100% to see if it looks good enough; undoing and trying another size until you're satisfied.  (Do not repeatedly resize an image; that loses information.  Always "undo", and resize the original, cropped image instead.)  Finally, save it in JPEG format.  Again, you may wish to experiment with the Quality setting; lower quality produces softer/blockier images, but higher quality increases file size.  Adjust until optimal in your opinion.

If you don't want to do any of that, and just post images off your phone for a "quick post", I'd wager that your post does not have enough thought in it to be useful to anyone other than yourself anyway, which means it should not be posted at all.  Even your "test image" is 4000×3000 pixels, way larger than is necessary, and over 2 Mbytes in size!
(If I was on my old, slow-connection phone, it'd take several seconds to load.)

Put bluntly, you're asking the admin to paper over the issues in the images you want to post.  Please, don't.

Going the extra step to make your images useful and lightweight for others shows that you care, and that your post is worth considering answering.  Not doing that indicates the opposite.  When I post a photo (I rarely do — I usually post diagrams, and those are sharper and better when saved in optimized PNG format, for which I use the "pngcrush" tool to minimize file sizes; or in vector-graphics SVG format, which I store at my own webhost for security reasons, avoiding any XSS etc. attacks via such images on eevblog.com), I take a few photos, open them all in GIMP, crop them all, then look at 200% to determine which one has best fidelity (least blurring), then resize/rescale that to optimum size, never larger than 2000 pixels in size on the longer edge, and finally save as JPEG in four or five different quality settings.  I open them all, and examine at 200%, discarding the ones that got too blurry.  I pick the image with the smallest file size left over.

It can sound like "extra work", but what it is, is consideration for others, showing that you care about others, and are not here just to leech from others to minimize any effort needed on your part.  All useful discussion is a give-and-take.

If this sounds "unfriendly", it is not intentional; this is just what I've learned works best, that I apply to my own output first before asking it from others.  You might wish to read my similar advice in the pinned Why writing style and grammar matters in posts -post in the Beginners forum; this post expands on that advice, with regard to images and photos in posts.
« Last Edit: August 06, 2025, 11:05:42 pm by Nominal Animal »
 
The following users thanked this post: voltsandjolts, helius

Offline Brumby

  • Supporter
  • ****
  • Posts: 12611
  • Country: au
Re: test for portrait image
« Reply #3 on: August 08, 2025, 06:32:22 am »
I agree with Nominal Animal - and I'm not being "unfriendly" either.

I have found that several of my photos appear in one orientation when viewed one way and appear in the other when posted - just the way you are experiencing.  In my case, I have identified a way that I can check my images before posting and apply a remedial process to ensure they are oriented correctly.  It's annoying - but that's just one of life's little irritations.

It's not something you can expect a site like this to display an image the way you want it to when it's only doing what the data in the image is telling it to do.  Even if were tried, it's likely that the "solution" will get it wrong sometimes and that could make "getting it right" even more painful.

It comes down to some of the idiosyncrasies of image data and rendering that is beneficial to understand.
Why Clippy?  --> https://www.youtube.com/watch?v=2_Dtmpe9qaQ
 

Online magic

  • Super Contributor
  • ***
  • Posts: 8066
  • Country: pl
 

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 8502
  • Country: ro
Re: test for portrait image
« Reply #5 on: August 10, 2025, 02:32:45 pm »
I don't think attached pics orientation ever worked on this forum.

From what I know, pics are stripped from their metadata, and reconverted before storing them into the forum's database.  This helps with possible malicious code placed inside pics, plus it avoids unintended saving/sharing of personal user data through pics metadata.  I don't know if any steganography ID/marks are still preserved (I assume they are, but I didn't check).

Animated attached pics don't work either on this forum, they are turned into a static pic (only the first frame is imported).


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->