GithubHelp home page GithubHelp logo

cyberpirate92 / code2img Goto Github PK

View Code? Open in Web Editor NEW
36.0 2.0 9.0 29.76 MB

Open REST API to create beautiful images of code snippets with 20+ color themes and syntax highlighting support for 10+ languages.

Home Page: https://code2img.vercel.app

License: MIT License

JavaScript 18.82% CSS 77.01% HTML 4.16%
api vercel-serverless images puppeteer vercel nodejs

code2img's Introduction

code2img's People

Contributors

cyberpirate92 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

code2img's Issues

Localhost is not being started

I downloaded all the dependencies but it seems that I have some issue in the setup. When I launch the localhost, I get such message > Ready! Available at http://localhost:3000 but when doing request I keep getting :

The page could not be found.

NOT_FOUND

Also, the same 404 when just going to http://localhost:3000/.

Any suggestions what is wrong?

CORS issue when accessing from other domains

Access to XMLHttpRequest at 'https://code2img.vercel.app/?language=javascript&theme=synthwave84&scale=2&line-numbers=false' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Background Images are getting clipped

When an image URL is provided to the background-image property, the image gets clipped in the final image.

When the following image URL (https://i.imgur.com/aUhpEz3.jpeg) is used, the generated image has the top left clipped portion of the original image.

Generated Image

The Original Image for reference

Original Image

Maybe there should be an option to force images to fit instead.

FUNCTION_INVOCATION_TIMEOUT

image

The code was working till 6:00pm where I built a basic frontend and was sending request and getting the image but now when I try am getting error both in my app, postman and your themeify

I request you to fix this bug

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.