Is it possible to resize the pixels of a default png to the dimensions you want?

I know CSS resize images on an html page but the png that is stored on your computer is unchanged right? Is it possible to resize that png to the dimensions I want? For example I want my png to a size of 320 x 320 by default.
57 Replies
Jochem
Jochem15mo ago
you can use any image editing software to change the size of a PNG paint, gimp, krita, photoshop, probably even the image viewer in windows there's online tools too, just google "resize png" or "resize image"
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
I tried on figma but when I put the width to 320, it gives my an automatic height. I can't change it all independently
ἔρως
ἔρως15mo ago
what exactly are you trying to achieve?
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
Maybe these one will be different? Right now I have a png that says it has the dimension: 292x53. I want the dimension to be 320x320. I want to use that png for the Discord sticker feature. I think only images that are 320x320 can be used?
ἔρως
ἔρως15mo ago
that will look like ass unless you fill it with transparency
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
Oh really?
ἔρως
ἔρως15mo ago
and even then, it will look bad try using photopea or gimp or paint.net or photoshop or any competent image editor first, you will have to scale to 320px tall, then you have to resize the canvas to 320px this way, you have a slightly blurry 320x320 png file
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
Ok, I will try.
ἔρως
ἔρως15mo ago
good luck
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
So I resized the canvas to 320x320 but my image that I import looks so much smaller even though it has a height of 292. Is it the software portraying it like that? I don't understand how dimensions are protrayed. I am using photopea btw
ἔρως
ἔρως15mo ago
first, resize the image to 320px height, and keep the proportions then you resize the canvas to 320x320 and dont keep the proportions that's the best you can do with what you have
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
Ok I will try that now.
ἔρως
ἔρως15mo ago
good luck
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
When you say keep the proportions do I click relative then change the height?
ἔρως
ἔρως15mo ago
no, what i mean is really that when resizing the image, keep the proportions so the width changes when you change the height when you change the size of the canvas, do not keep the proportions, so you can change it any way you want
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
Sorry I clicked on the wrong thing. I see it now Aspect ratio correct?
ἔρως
ἔρως15mo ago
can you show? there's a few names for it
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
No description
ἔρως
ἔρως15mo ago
that's not how you do it open the image directly
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
Ok I did that now
ἔρως
ἔρως15mo ago
now, that's a 292x53 image so, you need to scale it to an absolute size with a width of 320px
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
I do that while keeping the ratio correct? I have 320x58
ἔρως
ἔρως15mo ago
yes, correct now, you want it to be 320x320, right?
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
Yeah
ἔρως
ἔρως15mo ago
now, resize the canvas to 320px of height, but dont keep the aspect ratio
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
Ok it's done
ἔρως
ἔρως15mo ago
now export as a png, with a different name that's the best you can get
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
So they will merge together? The canvas and png are in two different tabs. I opened the image by itself
No description
ἔρως
ἔρως15mo ago
what? how?
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
Once I start a new project I click on "Open" the click on my png file right? To get my image on Photopea. That's what I did Before I clicked on Open and place to get the image on the white background
ἔρως
ἔρως15mo ago
no, you just drag the image and drop it on the tab then you resize the image and then the canvas that's it
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
If the canvas is the black space I don't know how to resize it Sorry for the stupid question but I'm confused
ἔρως
ἔρως15mo ago
this is the option to resize the canvas
No description
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
I click on new project to get the white space
ἔρως
ἔρως15mo ago
it should be in english, but photopea tries to be smart and picks pt-br as i said, drop the image when there is nothing on photopea
ἔρως
ἔρως15mo ago
the final result could look like that
No description
ἔρως
ἔρως15mo ago
i resized this image from 1024x1024 to 1920x1080
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
It's just showing me a black screen. I don't get the canvas you have. I drag and drop here On the black box
No description
ἔρως
ἔρως15mo ago
drop where it says "drop any file here"
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
No description
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
I only get this
ἔρως
ἔρως15mo ago
now, image > image size
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
No canvas
Jochem
Jochem15mo ago
it might be better to just check online for a video tutorial on how to resize an image with photopea
ἔρως
ἔρως15mo ago
its literally 2 options in 1 menu, and both are together
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
I did that how do I resize canvas. I see nothing I can only click on the one background tab
ἔρως
ἔρως15mo ago
all you have to click is the "image" menu nothing else
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
Oh ok, I see it now
ἔρως
ἔρως15mo ago
now, change the image size to 320px width keep the aspect ratio then, resize the canvas, but dont keep the aspect ratio
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
Did that
ἔρως
ἔρως15mo ago
can you show?
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
No description
ἔρως
ἔρως15mo ago
that's it
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
Sorry I didn't how to access the canvas before
ἔρως
ἔρως15mo ago
its fine if you want a background, you can simply go to layer > new fill layer with color (or something like that) on the right side, then move the background layer to the top
Takyon_is_Online
Takyon_is_OnlineOP15mo ago
Thanks this helped a lot and the quality is still good
ἔρως
ἔρως15mo ago
you're welcome
Want results from more Discord servers?
Add your server