Having a 1x1 option for PictureFrame is on the “to-do” list for V6. For now, you can determine the size of the bitmap and then size the PictureFrame rectangle accordingly.
FWIW here is a python script for V5 that checks the DPI of the imagefile and scales the pictureframe accordingly. PictureframeScale1To1_01_cmd.py (1.0 KB)
Please check the results, its presented “as Is”
Windows 10 (10.0.19045 SR0.0) or greater (Physical RAM: 32GB)
.NET 7.0.18
Computer platform: DESKTOP
Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce RTX 3070 (NVidia) Memory: 8GB, Driver date: 10-26-2023 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 546.01
> Accelerated graphics device with 4 adapter port(s)
- Windows Main Display attached to adapter port #0
OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)
Anti-alias mode: 8x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High
Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 10-26-2023
Driver Version: 31.0.15.4601
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 8 GB
Rhino plugins that do not ship with Rhino
C:\Users\danie\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\NVIDIADenoiser\0.4.3\NVIDIADenoiser.Windows.rhp “NVIDIADenoiser.Windows” 0.4.3.0
after some searching i also found some jpg that work that are some from the web, but it seems that using photoshop to resave a jpg somehow breaks the option 1to1 for Rhino. i used different profiles, no profiles, different compression basis no matter what they do not work anymore. (i also saved as web)
using Mac Os Preview to resave as jpg that previously worked to a jpg again causes no issues, but it strangely does not heal a not working jpg, so a saved file from there seems to inherit the prior introduced problem.
png generally work no matter what, only
when images have apostrophes or other special letters in the naming they do not open at all also not as a png, it displays the selection prompt but the command stops after that without showing any further options.
here are 3 files, one that works, one with an apostrophe, and one that does not show the 1to1 option which virtually looks identical to the one that works.
As you can read in the YT, this won’t and cannot be fixed. If the image contains no DPI info there is no sensible 1:1, and therefore that option won’t be available.
I like watching the same thing over and over, like when the user shows that the feature is working as intended in version 7, but isn’t working in version 8 and still everybody will say that the image doesn’t have the DPI info, then maybe it’s easier to just copy the code that performs the information extraction from version 7 to 8?