codingorsmth

joined 2 weeks ago
[–] [email protected] 2 points 1 week ago

Thank you so much, this helps a lot!

[–] [email protected] 1 points 1 week ago* (last edited 1 week ago)

How would I get the dataurl automatically? I've been trying to get that for a while. Like I see the code but how does it all work? ChatGPT is not helping very much lol. Is all of that code meant to go into the javascript? The import:text-to-image-plugin part returns an error that says text is not defined.

[–] [email protected] 1 points 1 week ago* (last edited 1 week ago) (2 children)

After a long while of troubleshooting and trying to understand how the generation system works I've come to the conclusion that it is currently not possible to do what I set out to do. I would have to be able to request the image with a post request but I can't due to security stuff, or I would have to read the url of the image on the website which doesn't work because trying to access a cross-origin frame is bad ig. (Just saw there was another post addressing this).

[–] [email protected] 1 points 2 weeks ago* (last edited 2 weeks ago) (3 children)

I'm trying to get the generated image's source automatically and use it elsewhere in my perchance generator but I can't seem to find a good method to do this. I know the resulting image that I want the source from has the id resultImgE1, I know the id of its container, and I know its in an iframe, like the rest of my html code. I get a lot of errors when I try ChatGPT's methods, even if I tweak them. Let me know if anyone has tried this, or if there's a post about this already on here.