https://perchance.org/oneclickdownloadexample To, upon generating an image with text to image, skip a bunch of steps, not put the frame with options in front of the image, and simplify downloading to ‘click or touch image to download’.

If you don’t care about the social parts like gallery functionality and want to cut steps from your image generating, this plugin may be for you.

have a wonderful day all :)

  • BluePower
    link
    fedilink
    3
    edit-2
    10 months ago

    @Alllo Again, a wonderful plugin. Suggestions, you may want to put an instruction so that the plugin downloads the image by double-clicking in the plugin page. As for the plugin itself, you would add cursor: pointer to the style attribute of the image so that when someone hovers over the image, it’ll show up a hand pointing cursor, so they’ll know exactly.

    • alloOP
      link
      English
      210 months ago

      thank you! I had no idea the cursor style even existed. Amazing how many options there are.

      Did what you said as far as cursor: pointer and put a comment next to it saying ‘credit: BluePower’

      did not understand what you meant by an ‘instruction so that the plugin downloads the image by double-clicking in the plugin page’. I have been avoiding importing anything at all on pages that output things (like importing text-to-image on the plugin page itself) after noticing a fontchanging plugin I had made was importing it’s imports in to what it was outputting. Essentially, if I were to import the text-to-image plugin on the page that outputs a plugin, the plugin would be outputted with the text-to-image plugin too. Since learning that, I have minimized my plugin pages to have no imports unless the imports specifically are required by the plugin. So the plugin page itself here, i believe shouldn’t have an image at all since importing text-to-image would be excess overhead for everyone that imports it. Did not really understand what you meant, but yeah my pages for the actual plugin itself are becoming minimal for this reason and may have their page stuff disappear entirely and be replaced by all the info for the plugin being on the example page.

      thank you for the css knowledge.

      my own knowledge is 99% js, 0.9%html, 0.1%css.

      • BluePower
        link
        fedilink
        310 months ago

        @Alllo I think what I mean of “double-clicking to download” is that I also suggest an option so that the image will download when the image frame is double-clicked instead of just clicked. You could also reference how to do that in your plugin page. 😄

        Btw, you can set padding: 8px or 12px in the div and p elements so there’s more space to click (and tap for mobile screens, since the chance of mis-clicking will be highly reduced). The bigger the padding, the bigger the spaces are.

        • alloOP
          link
          English
          210 months ago

          Done. Credited you more. And also started padding stuff, thank you. Great tip about padding. Would go great in a library of tips somehow :)

  • alloOP
    link
    English
    210 months ago

    aka touch or click image to download