I have larger images stored in one folder. I dont want to create thumbnail images, store it some place and retrieve. I am looking for script to create thumbnail images of larger images dynamically and display in the browser but never storing the thumbnail image on the server.
Could someone recommend me some links to tutorial or provide me script to do so? I have found phpthumb() http://phpthumb.sourceforge.net/ doing such work in php. How could I use it zend framework or other library, please recommend
Edit : How to use phpthumb() http://phpthumb.sourceforge.net/ ?
phpthumb() has a bunch of class files. To generate thumbnail in phpthumb() we only require to write the following line:
<img src="phpthumb.php?src=image.jpg&w=150"/>
I want to use it in zend framework. Where should I place this library? Placing inside the library folder, I would have to rename all the classes and its references. How to do use it? any other techniques
If you are willing to provide HTTP access to your source images, you could use a free service like TinySrc, to provide thumbnails. Neither Zend Framework v1, or Zend Framework v2, provides support for image manipulation that I can see.
Related
I've implemented Laravel Clyde https://github.com/antennaio/laravel-clyde which is an wrapper for Glide https://github.com/thephpleague/glide
This set-up works for uploading, caching and retrieving images etc. However I need to be able to rename an image when it's downloaded.
I cannot see a way of doing this using these packages.
I think one of the purposes of clyde is to abstract those manipulation configurations. If you just use glide then the image filename will look nice but the user sees those messy params. One solution might be to serve the file without clyde on a view that shows the full picture.
Im creating a Web App and i wanted to know how to add a face image to a video.
The image will be attached to video with "Sign Up with Facebook"(No problem with this)
I think there's a way to code it with PHP or something else
This is a referal
https://itunes.apple.com/us/app/santa-hq-elfie/id935702306?mt=8
Any suggestion or a Link will be very helpful
Thank you.
You can't just using PHP, because PHP in itself doesn't provide the necessary libraries for recording editing videos.
To edit video you'll need ffmpeg (there is PHP extension) installed on your server. You can then access these programmes by using the the exec() function in PHP.
https://github.com/PHP-FFMpeg/PHP-FFMpeg
Another alternative is to use the angularjs and classes Video Editor to create the video (https://github.com/moviemasher/angular-moviemasher).
I think you have to develop your own video creator, I dont know a ready solution via html5 or php, so you need develop.
I have developed a component to crop images, and now I am migrating it to Yii 2.
There are a PHP class, a JS, a CSS, and an image files.
I am in doubt whether I place these files. Is it better to create a directory at basepath/vendor, or to add in the respective directories (image, css, and js), on backend/web and reference them in backend/assets/AppAsset? Note that I will only use this component in the backoffice.
What is the conventional way to do this?
For my experience is better build a component in vendor/yourVendorName/yourModuleName in the form of module and the you can use it where do you prefer adding to modules section of config/main.php of your app
I'm creating a WordPress plugin that allows a user to select one of several image files that are distributed with it. Is there a simple technique for allowing the user to view the files in a filebrowser-like interface and pick one? I want it to look as similar as possible to picking a file in the normal file upload dialog.
I ended up adapting the code from this filebrowser that utilizes scandir. It has a nice simple interface and the code is simple enough to incorporate into a plugin.
I want to generate multiple pdf reports on click of single print button and zip all the pdf's and store it in a folder.
Any help please. I need this functionality in my project.
According to https://stackoverflow.com/questions/560583/which-is-the-best-pdf-library-for-php
, the best pdf php library is FPDF.
They also mention that Zend has a nice PDF Lib. If you are using CodeIgniter you may wish to use the Zend library, as Zend libraries work nicely inside of CodeIgniter. (A simple Google search will show up several tutorials on using Zend libs as CI libs).
Someone on the CI Forums has instructions on using FPDF with CodeIgniter:
http://codeigniter.com/forums/viewthread/45365/
As for the second part of your question, wrapping data in a zip file is easily done with with CodeIgniter Zip Encoding library as detailed in the user guide.