In what language can you make this website?

Get 1000 or more pics of cat.

Return a random cat pic for every http request.

You can do that in simple php script.
 
Get 1000 or more pics of cat.

Return a random cat pic for every http request.

You can do that in simple php script.

Yes but it's definitely not this script:
Code:
<?php

$url = $_GET["url"];

echo "<img src='" . $url . "'>";

?>
 
its very easy to do, scan code.io and find the relevant code add it to a PHP which will display random images from src directory you set it to.
 
Get 1000 or more pics of cat.

Return a random cat pic for every http request.

You can do that in simple php script.

its very easy to do, scan code.io and find the relevant code add it to a PHP which will display random images from src directory you set it to.
Nope.

https://en.wikipedia.org/wiki/Generative_adversarial_network
https://arxiv.org/abs/1912.04958

https://github.com/NVlabs/stylegan2
https://github.com/lucidrains/stylegan2-pytorch
 
You just need to change the header output from text/html to image/jpeg and output the image itself not a img tag.
 
You just need to change the header output from text/html to image/jpeg and output the image itself not a img tag.

Is this only for cross-origin links? I want to do this for imgur links.

output the image itself not a img tag.

How do I do that?
 
It's called HTML and CSS - very new and complicated system mostly run by an AI. Owner probably uses some kind of neural network.
 
You can use for imgur images, but you have to use the file_get_contents, otherwise won't work. The code itself has 3 lines of code. See example here. Just replace with file_get_contents and echo it.
Code:
https://stackoverflow.com/questions/4286677/show-image-using-file-get-contents
 
Code:
<?php
header('Content-Type: image/jpeg');
echo file_get_contents('https://i.imgur.com/HhcDRCW.jpg');
 
Nope.

https://en.wikipedia.org/wiki/Generative_adversarial_network
https://arxiv.org/abs/1912.04958

https://github.com/NVlabs/stylegan2
https://github.com/lucidrains/stylegan2-pytorch
never heard of that but looks impressive!
 
Those are not just random cat pictures, they are "AI" generated.

cutekitty01.jpg


cutekitty02.jpg


Here are some cute little kitties from the website.
 
It is not a script that output a random image chosen from a preset of images.
Those images are generated by AI.
There is an AI engine behind that.
 
It is not a script that output a random image chosen from a preset of images.
Those images are generated by AI.
There is an AI engine behind that.

Which kinda fails on each image :anyway:
 
Back
Top