Hello,

I would first like to start with a question:
Cropping implies the removal of the outer parts of an image to improve framing. Like most apps including paint and photoshop, once an image is cropped the cropped image becomes the new image, instead of keeping the original to be available for modification later. I understand that allowing user to re-crop an image is a great feature but I am looking to minimize server space =) so just throwing these questions out there.

Therefore, I was wondering if it is currently possible to only save the cropped image and not the original image.

1) user uploads an image
2) user selects the cropping area of the image
3) user saves the cropped image
4) the cropped image is saved on the server (not the original image)

Benefits would be major saving of space on the server as original images are not saved.
Would this be possible?

Thank you

Comments

John Bryan’s picture

Seconded. This just saved me posting the same request.

As per above the saving the original is a nice feature if it was just an option. But it rather defeats one of the key benefits of cropping in terms of space saving. Can the save made for a site be made configurable to save either the original or the cropped version.

Going away from "Imagefield Crop" specific topic, my ideal behaviour would be:-

- User friendly interface needing no technical experience. 8¬) "Imagefield Crop" scores very high here.

- Stores cropped version to save space 8¬(

- Is cropped at client-side to reduce upload time 8¬(

- Image size restriction applied at client-side to avoid upload file-size restriction - whether those of PHP or of Drupal etc. 8¬(

- Is compatible with ImageCache, ImageField etc. 8¬)

I have tried all the module candidates I can find but none fulfill even 4 out of these 5 feature. One was client side cropping but very dreadfull user interface and not imagefiled compatible.

To Hi-light why the crop before upload is becoming more and more an issue as:-

- standard upload filesize limit is 2MB
- increasing this is not normally a good idea due to upload times ,storage space and storage abuse issues.
- Joe public wants to upload pictures straight from their camera memory cards.
- As modern cameras, and mobile phone, increase in quality the picture files are now often larger than 2MB in size.

I am not expecting "Imagefield crop" to implement this as it would be a drastic change. But this is why the need for crop before upload has increased twentyfold in the last year or so.

robby.smith’s picture

subscribing

Exploratus’s picture

This would be great!

hom3chuk’s picture

Subscribing.

grey_’s picture

Love it!

jstoller’s picture

+1

yhager’s picture

I am working on the D7 version of this module now, and will take this into account. It should be fairly easy to implement on D7.

jstoller’s picture

Can it be ported back to D6?

yhager’s picture

Yeah, it can, but most of my energy is now focused on D7.

YK85’s picture

We're excited about your work in D7 yhager! Happy Holidays!!

John Bryan’s picture

Is there any rough eta for D7 release. Really interested whether you manage the crop before upload feature.

John Bryan’s picture

Did any of these features make it into D7?

I am revamping sites to D7 and therefore re-looking at old issues that hindered design decisions last time around. The project page is still currently very explicit in saying the uncropped image is always saved, so is there any point me installing it? As before a client side crop before upload - with upload of just the cropped image is my grail here. Which would be useful for many other peoples sites that have non-tech savy users.

p.s.Thanks for maintaining this useful module and getting a D7 version out.

yhager’s picture

revision 834c87 of the D7 version had a "bug", that is exactly what you are asking. The originals would be saved for 6 hours and then deleted on cron run.

Can you try the above revision of the D7 version and let me know if that's what you need?

If so, it can be added as an option.

http://drupalcode.org/project/imagefield_crop.git/commit/834c87

the_g_bomb’s picture

ignore this, sorry