/    Sign up×
Community /Pin to ProfileBookmark

anyone knows how to create text image file using javascript?

I have a long poem.
let’s say it is 100 lines.

I saved it as a Doc file.
can i turn it to a image file?

and it should be a animation image.
that is scroll down the text.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@jedaisoulFeb 24.2016 — Hi and welcome to the site.

  • 1. Why do you want to turn the text into an image? Most images on the web are in JPG format, which is lossy and not well suited to displaying text. GIF is better in that respect. Either way, text can reformat responsively to suit a wide range of device displays. Images are more limited in this respect.


  • 2. Why do you want to use JS to achieve this? You can create an image file from text using many graphic editors by either importing or using screen capture.


  • 3. Scrolling is not a problem for either text or images. If you want the scroll to be automated, you might want to consider using a GIF animation (like my avatar). These can be heavily optimized, particularly if you need only a few colors, and they support transparency. Alternatively, there are plenty of carousel plug-ins depending upon the technology used to build the web page. Or you could write your own in JS, if you know how. But if you knew how, you probably would not have asked the question. So I'm a little lost as to why you are asking???
  • Copy linkTweet thisAlerts:
    @rootFeb 24.2016 — IDk about JPG being lossy, most image formats have lossy issues, PNG is a less lossy format, gif always has posed a security issue because of embedded code that can be executed on the host machine.

    I figure that the OP is looking to protect their works by using an imnage format.

    If you want to use an image format and have a web server produce it, then you need to look in the PHP forum or you could try a HTML5 Canvas (JavaScript)
    ×

    Success!

    Help @peterking spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...