![]() |
|
Need help with pixel size - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Graphics (https://hackforums.net/forumdisplay.php?fid=156) +---- Forum: Graphics (https://hackforums.net/forumdisplay.php?fid=6) +---- Thread: Need help with pixel size (/showthread.php?tid=5538393) |
Need help with pixel size - Orthoran - Jan 30, 2017 I'm trying to turn an image into 5000 of itself but I don't know the pixel size to put. I'm really sorry for posting here I tried looking it up on google but didn't know what to search :/. If anyone could help me I'd really appreciate it :). * - d4ne - Jan 30, 2017 Could you define this part: I'm trying to turn an image into 5000 of itself ? * - theChive - Jan 30, 2017 I'm confused by "turn an image into 5000 of itself." Are you trying to expand an image's dimensions by 5000x? Are you trying to duplicate the same image over 5000x in one image? * - Orthoran - Jan 30, 2017 (Jan 30, 2017 01:53 PM)d4ne Wrote: Could you define this part: I'm trying to turn an image into 5000 of itself ?I'm trying to tile the image 5000 times. For example like I have an image I want to make 5000 of itself. * - d4ne - Jan 30, 2017 (Jan 30, 2017 01:54 PM)Orthoran Wrote: I'm trying to tile the image 5000 times. For example like I have an image I want to make 5000 of itself. So let's say you have a image inside a folder, now you want to duplicate the same image for 4999 times? So you would hava a folder containing 5000 pictures of the same piture? * - Orthoran - Jan 30, 2017 (Jan 30, 2017 01:56 PM)d4ne Wrote: So let's say you have a image inside a folder, now you want to duplicate the same image for 4999 times? So you would hava a folder containing 5000 pictures of the same piture?Yes that's what I want to do. * - d4ne - Jan 30, 2017 (Jan 30, 2017 01:58 PM)Orthoran Wrote: Yes that's what I want to do. I'll code it quickly for u. * - Orthoran - Jan 30, 2017 (Jan 30, 2017 02:00 PM)d4ne Wrote: I'll code it quickly for u.I just want the pixel size for 5000 images. * - d4ne - Jan 30, 2017 (Jan 30, 2017 02:03 PM)Orthoran Wrote: I just want the pixel size for 5000 images. Your confusing me, why would the picture pixel size change? * - Orthoran - Jan 30, 2017 (Jan 30, 2017 02:08 PM)d4ne Wrote: Your confusing me, why would the picture pixel size change?I just want to make 4999 copies of an image on the same editor canvas. * - d4ne - Jan 30, 2017 (Jan 30, 2017 02:16 PM)Orthoran Wrote: I just want to make 4999 copies of an image on the same editor canvas. Assuming this question is JS based since your talking about canvas. Then you have to get the height, width of the image itself first: http://jsfiddle.net/jjUHs/ Then calculate the new height, width in the following way: old width 4999 and old height 4999 which would be insanely big. So i don't think thats a good idea. The resource would take ages to load. * - Orthoran - Jan 30, 2017 Actually it's ok I'll figure it out myself. But thanks for helping me :). * - d4ne - Jan 30, 2017 (Jan 30, 2017 02:30 PM)Orthoran Wrote: Actually it's ok I'll figure it out myself. But thanks for helping me :). Javascript way: Code var img = document.getElementById('imageid');Or dev console response: Code function new_image(url) {* - SIM-574702 - Jan 30, 2017 I believe OP wants something like this. I don't know how to do it but I think you didn't understand him. Spoiler (Click to View) |