Hi i need to implement image resize and crop the image while uploading to the server. Please help me out.
There are two plugins doing exactly what you want to:
a component https://github.com/angelitomg/QimageComponent you have to actively trigger in your controller
a behaviour https://github.com/josegonzalez/cakephp-upload which allows you to implement the resizing for a hole model(action independent) with a simple actsAs
The second one is developed by josegonzalez who is really active in #cakephp irc and the whole cakephp development... so this is most likely the better choice ;)
Try the image upload behavior
https://github.com/cakecoded/image-upload-behavior/blob/master/app/Model/Behavior/ImageUploadBehavior.php
Related
I am new to Xamarin.Forms and looking for a help on two questions.
I would like take a picture with the camera or download one from a website. Once the image is loaded, to be able to draw on the image with stylus or finger. Once satisfied with the annotation, save the image back. Does anyone know of a tool that I could use to help speed up this dev effort?
Is there a way application can figure out if the image that is being saved is of good quality, meaning not blurry or with disturbance?
Thanks in advance for any suggestions / information.
Does anyone know how to resize an image in Magnolia CMS 5.0 without cropping it? I have handled to work with the Assets module and the options that it provides for adapting images to my preferences. However, it just provides (as far as I know) the option to crop and zoom those images. I wonder if that module is configurable to show those options? I attach a screnshot with the options that I can see in the Assets module. Thanks in advance!
This might sound a bit odd, but the image editor doesn't resize images.
Instead, Magnolia is designed with the idea that editors will upload a single high-quality images and that Magnolia will generate variations of the image as needed by the site design.
Check out http://wiki.magnolia-cms.com/display/DOCS/Responsive+Web+design#ResponsiveWebdesign-Optimizedimages for more details.
Also, if you want to get more timely answers, I'd recommend posting your questions to the Magnolia forums: http://forum.magnolia-cms.com
I am currently building a new website in WebMatrix, and have successfully added functionality to upload and resize images using the image helper. My question is, does this tool have the functionality to change resolution too? i'm concerned that people will upload pics taken with high resolution cameras, and even though i resize the images, they are still large in file size?
The WebImage helper (if that's what you are using) doesn't incorporate advanced image manipulation features. You can write your own code to change an image's resolution once the image has been saved - or borrow some that someone else has already written, such as the highest voted answer to this SO question on the same topic.
Anyone know of a Flash file (image) uploader that will force a user to resize and/or crop their image BEFORE uploading it? To then upload it as well.
Basically, I don't want my server processing the image resize/crop. I want to specify a target aspect ratio and have the user resize and crop their image to make it fit.
I've seen cropping uploaders before but they all seem to be server side. I saw a Flex one but I'm not sure it's "mandatory" -- Basically if the user just uploads the image without making edits, then I'd like the Flash to scale and fit the image into set dimensions...Leaving it I guess short in one direction to not stretch.
Anything like this out there?
Thanks!
I have a bounty running with a very similar question, be sure to take a peek - there isn't anything there yet that does client side resizing, though.
Also, SWFUpload is said to support it in the new Beta, but the feature is very sparsely documented right now. You would probably have to work on it to get it running the way you want.
http://www.adylevy.com/index.php/2009/07/22/multiple-files-uploader-with-preview-on-client-side/
there was another one called resize before upload but the site went down. though while I'm updating this and we're on the subject -- I don't see why you'd want to use Flash these days for this task. There are plenty of JavaScript options and now we also have Google's Dart (which builds JavaScript).
Does anyone know of any free frameworks that help you create thumbnails for web pages, that when clicked, the original image loads ontop of the page (modal like), as oppossed to opening a separate page.
Thanks!
This is really 2 questions in 1. The "lightbox" display of the original, larger sized, images in a modal box is handled in JavaScript with a library such as ThickBox. The resizing of the images can be done manually, or via some kind of code on the server side. Sitepoint has a decent guide on how to resize server side with PHP. I hope this helps point you in the right direction.
Lightbox.
http://planetozh.com/projects/lightbox-clones/
I've used DhoniShow a few times in the past, and clients really liked it. It's not AJAX, as it loads all the full sized images on page load, but if you were motivated I'm sure you could make that change pretty easily.
As have been already said, you can use Lightbox to get the effect to the user, I would use it with its ajax mode, loading the thumbnail as its contents.
Now for the thumbnail, I would recommend you something like http://megasnaps.com/ wich you can use for free.
Good luck.