Create thumbnail from selected video and store it in server [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 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.

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.

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.

Image upload in Android using php/mySQL [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
Hi,
I've been trying to find a tutorial on how to upload/download an image to/from a mySQL database by using php and android.
I've made a database on 000WebHost, I've uploaded string data (name,username,password,email), but I want my app to have the ability to upload/download images.
Does anyone know a good tutorial (video/text maybe) on how this can be done?
Thanks.
Php allows you to create forms which support image upload functionality. This is generally done via a multi-part post message to a form that you create. Check that out here
You can try storing the image into a MySQL db as a base64 encoded string.
However, this is not a good idea from scalability perspective.
You can checkout this tutorial here which has an android sample as well.

Live image cropping with js+php [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'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.

How to export an html table as a PDF or image? [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 am working on creating a website which will allow users to update a table using Javascript.
What I am looking for is a way to allow the user to export the table as an image (jpg, png etc.) or a PDF once it has been modified.
If there is a similar thread or topic please let me know, I don't really know where to start here. If you can recommend background reading that would be great too.
This is not something that can really be done client side (without installing software on the clients, of course). You will need to generate this PDF server-side.
How you do that depends on the language and platform you are using.
There are a couple open source PDF librarys you can use;
SharPDF, PDFClown, iTextSharp just to name a few...

Categories