Comments (2)
//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.
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)
- A feature to fit image in a fixed canvas size with blur background of original image. HOT 2
- Auto fit in square and use source image as background.
- resize function does not check size values HOT 2
- Can not add a text on image HOT 2
- PNG to JPG is possible to change transparent background color? HOT 2
- Background color for text HOT 7
- How to different font file & size, but in an equal position with center align HOT 3
- PHP 8.2: Deprecation warning "Creation of dynamic property"
- Implicit conversion from float 50.800000000000004 to int loses precision HOT 2
- Imagick magick support HOT 1
- Bump `thephpleague/color-extractor` to 0.4 in composer.json HOT 1
- Nothing working HOT 1
- Implicit conversion from float to int loses precision HOT 3
- QR Code HOT 1
- getExif(): Return value must be of type ?array, bool returned HOT 1
- Images not destroyed? HOT 1
- Set fixed size for overlay image
- Request: Combine two pictures
- Implicit conversion from float 56.25 to int loses precision HOT 1
- PHP E_WARNING when imagecreatefromstring() is used
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simpleimage.