hi,

i have been trying to set up epsa crop for hours now - still no success.

when i attach an image to a new node, everything seems to work fine - when i hit 'gerer le crop', the uploaded image is displayed, i can modify the cropping area and my presets are there, too. but when i hit 'save', nothing seems to happen... the preview image on the node editing form is still the original thumbnail.

when i use insert (as provided by insert module) with the appropriate imagecache preset, always the full image is inserted. till now, i couldn't find any cropped images anywhere on the server.

plus: when i enter the node editing form i get an alert 'IMPORTANT: Remove this line from json2.js before deployment'

file system path is sites/default/files with chmod 777
the target path of the file upload field is 'artikelbilder' with chmod 755

maybe you guys can help me here? or maybe create a step-by-step howto for setting up epsa crop?

thanks in advance!

Comments

yvmarques’s picture

Hello,

Generated images by EPSA Crop are save exactly in same place that ImageCache.

But, I don't have try the module with Insert module. For now I can't help you if is a bug or simple incompatible problem.

Regards,

-- Yvan

pkej’s picture

Status: Active » Fixed

All image cache presets are saved in "sites/YOUR_SITE/files/imagecache/IMAGECACHE_PRESET/*.

The "sites" directory is under your drupal installation directory, unless you've changed the "sites/www.makta.com/files" setting at "admin/settings/file-system/settings" to somewhere else but the default "sites/YOUR_SITE/files"

See also Troubleshooting ImageCache for more information.

EPSACrop itself is just a method added to imagecache, I think all questions regarding the resulting files and imagecache should be directed to the imagecache module, as EPSA Crop itself doesn't decide upon the filenames etc. (AFAIK)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

pkej’s picture

Title: where do the cropped images go? » Step by Step - Install Guide: where do the cropped images go?
Status: Closed (fixed) » Postponed (maintainer needs more info)

Here is a step by step install procedure, as far as I can tell:

  1. Install imagefield, image_cache and dependent modules. Test that image_cache is working (see "Troubleshooting ImageCache").
  2. Create a Content Type name it "EpsaImage" and give it the Type "epsaimage" (or whatever, but you know the drill, exchange that name with what you call your own node type).
  3. Add a field of type "File" with a widget of type "Image". Call it ImageField.
  4. Go to admin/content/node-type/epsaimage/display and for the Field: ImageField select in the Teaser column: "image_cache_preset_name linked to node"
  5. Download jquery_ui I'm using http://ftp.drupal.org/files/projects/jquery_ui-6.x-1.4.tar.gz
  6. Download jquery_update I'm using http://drupal.org/node/779956
  7. Change jquery_update settings to "minified" at admin/settings/jquery_update
  8. Download epsacrop I'm using http://ftp.drupal.org/files/projects/epsacrop-6.x-1.0.tar.gz
  9. Download JCrop and unpack into the sites/all/modules/epsacrop directory.
  10. Download json2.js and edit it and remove the first line of it.
  11. Move the edited json2.js file to sites/all/modules/epsacrop/js
  12. Make sure that at least one image_cache setting is using the ordinary crop action.
  13. Create a new node of the content type EpsaImage node/add/epsaimage.
  14. Upload an image in the field
  15. Press "Manage image crops" to the right of the image.
  16. Hopefully the epsacrop dialog will appear.
  17. Go to the different vertical tabs in the dialog.
  18. Move the crop box around, resize it if neccessary.
  19. Save the crop and the dialog will close.
  20. Save the node.
  21. Go to the front page of your site.

Now you should see the teaser of the recently created node with an image with the image cache preset you selected in step 4 above, with the cropping you did in 18, and not a image which is just a cropped/scaled version of the original.

danyg’s picture

Version: 6.x-0.1-beta1 » 6.x-1.0

Hello,

I got the same problem, and documentation not solved my situation.

ok, I've got not exactly same setups, but
1. My jquery_update version was 6.x-1.1. I've changed to 2.0-alpha1 (then run update.php)
2. My imagecache preset was a simple "scale and crop" function. I've changed this to scale then crop (2 actions), but didn't work, then I delete the scale, only ordinary crop remained. Imagecache preset was flushed.

Errors:
- The epsacrop-managed image doesn't save.
- It forgets the coordinates I've set (on www.aswissidea.com it remembers. It's from not to save the image?), not saves coordinates. Firebug console doesn't give errors.
- Only two presets appear next to the image. On project page (http://drupal.org/node/603244) there are many presets. How can I define more presets? Only those presets appear on epsacrop dialog, which use Crop function (or scale and crop, but it doesn't work as 12th of documentation says), don't them?

Thanks in advance.
DanyG

ejah’s picture

If you have the Libraries module enabled, unpack the Jcrop library in sites/all/libaries/Jcrop. The $path variable in epsacrop.module gets wiped if you have the Libaries module, but did not install Jcrop in sites/all/libaries and looses it's referenc to the ./Jcrop subdir in epsacrop directory.
As a result, the lib is not found and you can't get the module enabled.

A small bug: $version is misspelled to $vresion when initializing it in the test_version function.
HTH

aaronbauman’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Category: support » feature
Status: Postponed (maintainer needs more info) » Needs review

Can we get this in the README and a link to the README on the project page please?

yvmarques’s picture

Issue summary: View changes
Status: Needs review » Closed (fixed)