GithubHelp home page GithubHelp logo

Automate splashscreens about simpleimage HOT 2 CLOSED

vespino avatar vespino commented on June 9, 2024
Automate splashscreens

from simpleimage.

Comments (2)

vespino avatar vespino commented on June 9, 2024

//function to create squared image here

$img = new abeautifulsite\SimpleImage(null, 640, 1136, rgb2hex($colors));
$img->overlay($name, 'middle center', 1, 0, 0);
$img->save($name);

$name = the logo resized to a square (640x640px)

//done!

from simpleimage.

claviska avatar claviska commented on June 9, 2024

It can be done, but this isn't the place to ask. Please limit GitHub issues to bugs and feature requests. For implementation questions, StackOverflow is a good place for help :)

On Jul 16, 2014, at 9:47 AM, vespino [email protected] wrote:

I'm looking for a way to automate making splashscreens for my apps. For each app I need to create 7 to 9 different sizes so I'm hoping to do the following:

Input a logo (square), resize is to the width of the splashscreen, combine is with a canvas which has the width and height of the splashscreen and filled with the color of the upper/left pixel of the logo. Example:

My logo is 1024x1024px
Splashscreen is 768x1004px
The logo must be resized to 768x768px, the background canvas must be 768x1004px, the logo will be "pasted" on top of the background canvas.

Can this be done?

I have tried "adaptive_resize" and this almost does the job, but when creating smaller screens (320x640px) part of the logo is cut off.


Reply to this email directly or view it on GitHub.

from simpleimage.

Related Issues (20)

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.