Comments (5)
Hi, I think what he meant was he wanted to save the cropped image in a bigger size than the size of the croppicheadercontainer.
Eg: containersize:300x300, savesize: 900x900 after cropping with respect to x and y cordinates
I am also looking for a solution. Thank you :)
from croppic.
You can modify the php crop script like so;
here are some post vars;
// original sizes
$img_init_w = $_POST['imgInitW'];
$img_init_h = $_POST['imgInitH'];
Then in the section above the resizing/saving etc;
// lets make a copy of the original first
// ================================================================
$original_img = imagecreatetruecolor($img_init_w, $img_init_h);
imagecopyresampled($original_img, $source_image, 0, 0, 0, 0, $img_init_w, $img_init_h, $img_init_w, $img_init_h);
imagejpeg($original_img, $original_filename.$type, 100);
Note: the variable names are probably different to those in the example code provided for this. The same logic can be applied if you want multiple sizes of the images other than the cropped version too.
from croppic.
+1 for @Novocaine88 for his anwser
from croppic.
That's what my post is doing. It's saving the original image size. I'm on my phone right now so can't post example code, but you could apply the same as above and just change the resolution to what you want.
from croppic.
@Novocaine88 im not able to get it to work, please post a sample code if possible. also i am not looking to save original image, i want to save a cropped version of the image but the final resolution must be larger than the croppic container.
Thank you
from croppic.
Related Issues (20)
- Add feature: Drag n Drop
- the site is no more accessible for documentation HOT 1
- Croppic does not generate images HOT 2
- jQuery 3 compatibility issue HOT 3
- Multiple uploading
- Multiple Croppics
- Croppic as App
- Parameter issues ! HOT 1
- Download PHP Example File on your website is not working. HOT 5
- Crop high resolution image and still get a high resolution crop HOT 1
- no works
- Windows 10 Tablet, All Browsers Not Working
- zoom hide
- Can't upload a picture more than 9mo
- Controls missing
- Can`t upload File; no write Access HOT 2
- I need help with trying to save in the original file name.
- Is there or will there be a... No jQuery Version?
- I have 2 question, help please
- Upload Button HOT 1
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 croppic.