Needs review
Project:
Imagefield Crop
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2011 at 07:11 UTC
Updated:
28 May 2017 at 16:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
stopshinal commentedI am also very interested in how to access this original image. I'd like to apply the 'thumbnail' to the original image for a views display.
Comment #2
charlie-s commentedThe original file is stored in the field, i.e. something like
$node->field_cropped_image[LANGUAGE_NONE][0]['uri']gives you the URI to the original image. Perhaps the field formatter could allow for picking the image style in a View the same way a normal Image field does -- you could pick any of your styles or "original image".Comment #3
rmwolinski commentedI set in Views original image but I steel have the same crop image. Any ideas?
Comment #4
sondes commentedI agree. This would be a useful feature if it's not already in place!
Comment #5
sondes commentedAlright. I couldn't let this one sit without poking around some...
This isn't exactly an answer to the question but it may help. To access the original, uncropped image in Views, create a relationship based on File. Then add the File: Name field. This will show the original filename of the image. This can be used to create a link to the original image, or display it in a lightbox overlay, etc...
Comment #6
mp commentedis there a way to link the cropped thumbnail in the full node view to the original one?
greets
Comment #7
alphex commentedThis would be an awesome addition to the V2 version of this module, if you could access the original uncropped file.
Comment #8
Anonymous (not verified) commentedIt appears as though the original file gets saved, but just appends "_0" onto the end of the file name. So if you upload an image "123.jpg" the original gets saved as "123_0.jpg". This is how I was able to access the original file.
Comment #9
joetsuihk commentedThere are suggestions about how the original image should be accessed. May refer to https://drupal.org/node/1265824#comment-5038116
Comment #10
Tezcatlipoca commentedThis sounds great; thanks for sharing sondes. However, I'm still getting the altered image file name when I try it. Maybe I'm setting the relationship up wrong?
Comment #11
Chim commentedGreat module, love the way it works out of the box.
Here is one way to get the original uncropped image, this is similar to the way the module does it for the admin crop widget.
Hope this helps :)
Comment #12
unfeasible commentedWas there any update on linking the full size image for a lightbox style effect, or to get the original image to size with imagecache?
Comment #13
igorgoncalves commented#11 works perfect to me!
i was getting crazy!
thanks chim
Comment #14
stefanos.petrakisHere is a patch for the 7.x-2.x branch that provides a formatter that gives access to the original/uncropped image. Internally it is simply using the image module's formatter as well as the
_imagefield_crop_file_to_crop()function.P.S.: Linking related duplicate issue.