Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Checking Portrait Photo Orientation Through Pixel Layout, Metadata, and Import Cache | Crystal & Oscillator Handbook

The frame's menus and landscape photos look normal, but some portrait photos appear sideways. Use synthetic images to compare encoded pixels, orientation metadata, and the imported cache before investigating display hardware.

This example uses a consumer frame's built-in slideshow and original graphics with arrows and text. It does not read users' photos. A photo that looks upright on a phone can still have sideways pixels in the file. Some viewers apply the file's orientation tag, some importers rotate the pixels beforehand, and some paths show a separate preview. Equal appearances can come from different processing.

Landscape pixels can be displayed in portrait orientation

Exchangeable Image File Format (Exif) metadata can specify how stored rows and columns map to viewing orientation. A file may contain landscape pixels and instruct the viewer to rotate on display. Alternatively, an exporter may rotate the pixels before saving and set the orientation tag to match or omit the now-unnecessary tag. A compatible viewer can render both files identically even though their stored contents differ.

Rotating the frame's UI may only account for the physical screen orientation. Photos still need their own pixel and metadata handling. If software rotates the pixels but retains the old tag, the next viewer can rotate them a second time. Seeing a sideways image is insufficient reason to rotate every file by 90 degrees.

Import previews and full-screen slides can also use different caches. An importer may generate both thumbnail and display copies. A correct preview only qualifies that path. If full screen is sideways, identify which file it displayed and whether it reused previously generated content. A renamed or updated file can still point to an old thumbnail. Changing a clock will not diagnose that cache.

Define the expected result for three test images

Make the first image with 1200 × 800 landscape pixels, a clear up arrow, and an asymmetric corner mark. Attach an orientation tag that calls for a 90-degree clockwise rotation. Correct rendering produces an 800 × 1200 portrait result. These numbers describe pixels and do not specify physical frame or screen dimensions.

For the second image, rotate the pixels themselves to 800 × 1200 and use orientation metadata consistent with the rotated pixels. Correct handling makes both images' arrows point and appear in the same direction and position. If only the first remains sideways, investigate the tag-dependent handling in import and caching. One screenshot does not establish that the frame ignores all image metadata.

For the third image, keep landscape pixels and explicitly require no rotation. If all three rotate alike, check the screen installation, system display transform, and test source images. If an additional test image with rotated pixels and a stale tag fails, look for double rotation in creation or import. Recompressing all photos changes several variables and does not isolate the failing step.

Retain evidence before import, in preview, and in full-screen playback

Save each synthetic file, its encoded dimensions, orientation tag, and expected output. A corner ID and a clear arrow make errors easier to recognize than a symmetrical image. Document auto-rotation, cropping, and scaling separately instead of changing them together to pass a test.

Use the project's approved local import path, and check both preview and slideshow. Note the first stage and sample that differ. If the product exposes cache information, record which source generated the cache and when. Work with test data, keep users' existing albums intact, and avoid generalizing a single file type to all formats.

Acceptance should cover both valid preparation methods and the control image. If the renderer rotates raw pixels, verify that later stages do not reapply the obsolete tag. If rotation is deferred to display, apply the same rule in preview and full screen. After checking orientation, verify fitting and cropping, since swapping pixel width and height changes layout conditions.

When comparing phone export with direct local import, keep the actual input files from both paths. A phone preview is not evidence of the imported file. If the exporter re-encodes the image, verify dimensions and metadata again. This distinguishes frame interpretation, a changed input file, and differences caused by both paths.

Trace what the fault follows before requesting a 24 MHz part

An active board oscillator may serve a processor, board interface, or display timing path. It does not determine a file's intended viewing orientation. If the fault follows one preparation method while menus, synthetic landscape files, and prerotated portraits work, check file processing and import. If all display content fails together and approved board-level tests detect a reference or interface fault, investigate the clock.

Kyocera's KC2016K24.0000C1GE00 from Japan is a specification candidate for a standalone display board that actually needs an active 24 MHz reference. Check the board revision's supply, output, control-pin, and load conditions. This example does not identify a part in a retail frame or imply that clock accuracy adds orientation support to existing software.

StageEvidence to retainInsufficient evidence
FileEncoded dimensions, orientation tag, identifiable patternA phone display alone
ImportSource file, conversion method, cache usedA different name alone
Frame displayPreview, slideshow, screen settings, and croppingA correct preview alone
Clock inquiryActual reference path, full code, and board checksA fixed rotation error alone

When handing over test images, record separate expected results for preview and full screen.

Frequently asked questions

Why inspect the file if the phone and computer show it upright? They may interpret the same tag or may use different files. Identify the content the frame received from the original and import records.

Would resaving all the misoriented photos be faster? Synthetic copies can provide a quick comparison. To avoid repeating the fault, identify which layer changes pixels and which reads the tag whenever rotation is duplicated or preview differs from full screen.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.