Live image cropping with js+php [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'd like to have ability to resize pictures on my site.
Algorithm:
You upload an image to site. (grey)
That image appears in orange part.
Red part - is a rectangular, with help of which we can choose which part of image to show in preview_zone.
After I choose right zone, I press OK and data(resize zone) uploads to server.
Server crops image with PHP.
Maybe you could find any articles, how to do it, or sites with such api.
Or do it by yourselves.
I would be very gratefule for your help.

You should check out JCrop jQuery image cropping plugin:
http://deepliquid.com/content/Jcrop.html
Repo: https://github.com/tapmodo/Jcrop
https://github.com/tapmodo/Jcrop/tree/master/demos
Examples: http://deepliquid.com/projects/Jcrop/demos.php
One of the demos seems to match your requirement. (http://deepliquid.com/projects/Jcrop/demos.php?demo=live_crop) You can make small modifications to get your desired output.

Related

PHP 8.1 Image Manipulation Library and how to do what I want [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
This post was edited and submitted for review 1 year ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
my current project involves getting all uploaded images to the same size in the end.
Furthermore I would like to hear about your approaches on how to do the image manipulation.
What I want to do:
A user uploads an image with the size of 2560x1440.
Now I want to display the image with the size of 1280x720. Well that's the easy part. Every library can scale an image down like that.
But if a user uploads an image with like 500x2000 a rescale to 1280x720 will be very ugly.
My idea was to create a blank image with the size of 1280x720 and scale the incoming image down to a heigt of 720 and make the background in gray. If you can follow me so far, the new image will now be 1280x720 but on the side it's filled gray with the original image in the center.
Would you do this the same way? Is there a library out there, that is capable of this?
Thank ahead
DaNeubi
Sounds like a reasonable approach. I'd look at ImageMagick for which there is a PHP extension. You'll need to write the logic to determine the image rescaling and background sizing.

What is this plugin for album gallery? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am working on designing my WordPress based website.
I want to design it as per the following page -
https://www.stanseatonphotography.co.uk/weddings/weddings-gallery/
If you go inside any album, you will see that all the pictures are arranged in row-wise and if you click any picture, the picture will open in full-screen and slider feature will be enabled. I am looking for the same album gallery plugin.
Do you know what is it?
You can use Gallery Lightbox Plugin
This link will guide you through the installation bit.
Gallery Lightbox plugin

Create thumbnail from selected video and store it in server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I know this is not the right platform for asking this question and i will definitely get huge no. of down-votes for this, but i don't have any other choice. If anyone just give me a small solution that will be great.
Till now in my android app, I am able to choose video from my gallery and successfully uploaded it to my server. Now i want that when i choose the video then its thumbnail should be generated and i should be able to upload that image along with the video in my server. This is the point where i am stucked currently, need any useful link or tutorial for the same, searched google but finally here with a hope.
You can create VideoThumbnail from sdcard path like this.
Bitmap thumb = ThumbnailUtils.createVideoThumbnail(filePath, Thumbnails.MINI_KIND);
Using ThumbnailUtils, you can create thumbnail of two types.
MediaStore.Images.Thumbnails.MICRO_KIND type will generate thumbnail of size 96 x 96.
MediaStore.Images.Thumbnails.MINI_KIND type will generate thumbnail of size 512 x 384.
After creating the thumbnail you can upload the bitmap created directly to server giving the bitmap's reference that has been genereated.

upload large image(5MB) file in less timing [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
In php, I need to upload an large image; however it needs to upload in minimal seconds.
We have number of fields in a form with image upload. user can upload large images, using normal upload it will take long time. So I would like to use some background uploading using jQuery ajax. please provide some other solutions to make it easy.
Thanks in advance!
Use Dropzonejs, it supports Ajax upload, upload progression, drag & drop files and also multi-file upload.

Looking for a good photo gallery slide show tool for my site [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am looking for a easy to use and easily changeable photo slider. I really just want to have 4-6 photos that change every ten seconds or so in a stationary box display. Kind of like a photo gallery, but all changing on the back end and without any thumbnails. I also would like to be able to put text links on the images as well as have full css control on styling and sizing.
Any suggestions?
thanks in advance
Have a look at:
AnythingSlider
You can put anything images, text, links or whatever you want.
I wrote my own using Dojo, but I'm sure you could do the same thing in jQuery. I used an article by David Walsh using Mootools as a basis. It's here. If nothing else, the html and css he gives are useful.

Categories