0

Resizing Icons and Images for PyPortal Titano
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Resizing Icons and Images for PyPortal Titano

by MattPackwood on Wed Feb 17, 2021 2:55 pm

Hi,

I am looking at using a PyPortal Titano and need to resize some images/icons that are used with the "Regular" PyPortal, is there a good tool to do this (I have tried using the Photos app on the Mac with no success), does anyone have any suggestions?

Matt

MattPackwood
 
Posts: 53
Joined: Wed Jul 23, 2014 9:13 pm

Re: Resizing Icons and Images for PyPortal Titano

by mikeysklar on Thu Feb 18, 2021 2:05 pm

Hi Matt,

Are you trying to convert existing image files (JPG/BMP/etc.) to another the Titano screen resolution which is 320x480?

I often use the MacOS Preview App for that kind of change.

Preview --> Tools --> Adjust Size

(then type in your Titano 320x480) resoltion

mikeysklar
 
Posts: 3415
Joined: Mon Aug 01, 2016 8:10 pm

Re: Resizing Icons and Images for PyPortal Titano

by MattPackwood on Fri Feb 19, 2021 9:45 pm

I tried that on the various files in the Weather Demo but if I modify them they just "become blank".

https://learn.adafruit.com/pyportal-wea ... cuitpython

Clearly, I am missing something...

MattPackwood
 
Posts: 53
Joined: Wed Jul 23, 2014 9:13 pm

Re: Resizing Icons and Images for PyPortal Titano

by mikeysklar on Mon Feb 22, 2021 9:10 pm

Matt,

If you select one of the original images on your mac through the finder and hit CMD-I you should see the GetInfo screen that has a few more details about the image type and resolution. Maybe we can compare the original format information with the ones you have converted and find a clue about what the difference is between the two images that could be causing an issue on the Titano displaying?

mikeysklar
 
Posts: 3415
Joined: Mon Aug 01, 2016 8:10 pm

Re: Resizing Icons and Images for PyPortal Titano

by MattPackwood on Tue Feb 23, 2021 8:24 pm

Screen Shot 2021-02-23 at 7.21.18 PM.png
Screen Shot 2021-02-23 at 7.21.18 PM.png (362.43 KiB) Viewed 41 times


Here you go, I "adjusted" the file 04n.bmp, the resized version is o4n copy.bmp,

The original works (but is small on the Titano screen) the resized version will not display.

Matt

MattPackwood
 
Posts: 53
Joined: Wed Jul 23, 2014 9:13 pm

Re: Resizing Icons and Images for PyPortal Titano

by mikeysklar on Wed Feb 24, 2021 3:44 pm

Matt,

I have feeling you just have the resolution reversed.

The image you are starting with is 320x240 and the image you are converting to is 480x320. However, when I lookup the Pyportal Titano it look like the resolution is 320x480. Can you try resizing again and flipping the width/height you had been using?

Titano has a bigger 3.5″ diagonal 320 x 480 color TFT

mikeysklar
 
Posts: 3415
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.