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.
Related
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
I'm currently working on my church's new website which includes a gallery. The one hiccup I ran into is that they like to upload photos that are 6mbs which is obviously not web friendly. At the time, I used a php script to thumbnail and output the image, but this time I'd like to just do that all on the upload. In other words, I want the photo to be uploaded in several different sizes - a thumbnail size, a full size for the lightbox and the original for download.
My question is what sizes should I consider. The thumbnail is obviously going to be according to the design of the site, but what about the one meant for a lightbox and should I include another resolution for let's say, mobile?
EDIT: If I'm going about this all wrong, then please lead me in the right direction!
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've had this app on app store with no problem until iphone 4 came out.
My home page has an image covering the whole screen.
UIImageView added in interface builder, and image path added in interface builder.
In all phones this image shows up; however, the image does not show up in any iphone 4, and instead the user sees a blank screen like the following:
Anybody knows what's causing this? thanks
.
I only have 1 set of images with
normal resolution
This problem only happens to one of
the images in my application which is
the background for my home page
the graphic file should not be
corrupted because the exact same
image works for all other iphones and
itouches
my image is a jpg file
image size is 480x270, which in
interface builder i make it 563x330 to display only a part of it
I have no outlet to this uiimageview
so it cannot be changed in code
With devices with the new retina display, pixel sizes are different and you have to check for the following, in particular:
Do you provide two alternatives of the image, one at old resolution, one at double resolution (named myimage.png and myimage#2x.png)
If not, does your image scale up well in size with CoreGraphics's algorithms (there are some pathological cases, though you'd have to be quite unlucky)?
Have you checked what happens (at both resolutions) when your UIImageView size changes?
Is it just one image, or all?
Is your graphics file corrupted?
It's hard to tell if it's any of these points, or something else, because you provide so damn little detail, that I stick to generic things. Comment below (or edit your question) if you need more help.
I've got two things to add to FXs thorough answer:
Considering the information you added, I would take a look at your code for setting up that UIImageView. Perhaps you use some sort of detection code or something which wasn't implemented correctly.
Would you mind sharing some code snippets?
According to Apple's documentation, you don't need to provide the ".png" extension as of iOS 4. Perhaps that is causing the problem.
Again, code snippets would help here. Specifically where you deal with loading up your image file.
EDIT:
Try re-saving the image and replacing it. I've occasionally corrupted files in Photoshop. This has to do with file extensions and how Mac OS ignores them, but Photoshop still uses them.
Also, it could have to do with where the image is in your XCode project. Check what Group it is in. Make sure everything is in place and then Clean and Rebuild. Remove the app from the iPhone4 (reboot) and try reinstalling.
I hope this helps.
Good luck!
If this was my code, I'd write a tiny app just to display the image in question. If it still fails it would be easier to get help debugging the problem.
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).