Giter VIP home page Giter VIP logo

croppableimage3's People

Contributors

horst-n avatar rolandtoth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

croppableimage3's Issues

Feature: Cropped version as new default version?

For my client it would be perfect if the uncropped source image could either be replaced entirely by a cropped version, or if the original version would be "downgraded" to an image variant.

I know that this sounds silly at first, but:

  • If my client drops Photoshop from their toolchain entirely, the uncropped images from the digital camera are all over the place in the PW backend (preview thumbs, image picker …)
  • We defined an aspect ratio of 3:2 for all images that are uploaded. There may be other formats, but 3:2 for all images are mandatory.
  • It would be cool if I could define 3:2 as "standard crop preset". As soon as the image gets cropped, the new "original" image would be that cropped version.
  • All image previews in PW backend would now use the manually (or automatically) cropped version.

This would motivate my client to do more careful cropping within PW and would reduce the need for Photoshop.

Does this make any sense?

Wrong filename on thumbnail if crop setting contains Uppercase letter

CroppableImage3 version: 0.9.17
Processwire version: 3.0.42

If I name my crop setting in camel case: cropSetting,600,600 then the thumbnail that gets generated for the 600x600 size when i upload an image will have a name that ends with "....cropSetting.jpg"

This creates an invalid URL in the front-end, because this:
$page->mycroppableImagefield->getCrop('cropSetting')->url
outputs an URL ending with "....cropsetting.jpg" (all lowercase), while the actual file still has an Uppercase in its name.

If I go back and manually select the area to crop for that file on the "cropSetting" setting, then another file variation gets generated, this time ending with "....cropsetting.jpg" (all lowercase) and the URL will finally work.

Creating new crop of the same image doesn't remove old crop from cache

We've found with a couple of websites that when you go back into an already cropped image and set a new crop - the old crop remains in cache.

This then results in the old crop being served up.

To recreate:

  1. Set a new crop settings in the field settings. E.g "crop_image,1440,300,template_name"
  2. Upload an image and crop
  3. Go to the page in question on the front-end
  4. Go back to that page's admin screen and set a new crop
  5. See that it hasn't changed on the front-end

Issue with switching from standard image field

I have a running website with standard image fields, which I want to switch to CroppableImage3.

Problem is, I use the module "Image Extra" http://modules.processwire.com/modules/image-extra/ This provides some custom extra columns in the database. see here:

bildschirmfoto 2016-12-23 um 10 56 32

When I’m switching this field to CroppableImage3, the extra columns in the database are gone. Not cool, although I understand why, of course. Is there a chance that you keep all unknown extra columns in the database when changing the field type from image to croppableimage?

Happy X-Mas and keep up the good work!

PHP 7 - notice (@repeater-matrix)

I see a PHP notice while cropping images from a cropableimagefield located in a repeater-matrix item:

PHP Notice: Only variables should be passed by reference in .../ProcessCroppableImage3.module:67
$pages_id = (int) end((explode("_repeater", $field)));

…as I understand, one should pass a variable to end() - this fixed it for me:

$rppage_array = explode("_repeater", $field); $pages_id = (int) end($rppage_array);

ProcessWire: 3.0.165
PHP: 7.3 & 7.4

Notice since PW 3.0.43

Since the last update from friday night, I get on specific image fields the following Notice:

Notice: Only variables should be passed by reference in "site/modules/CroppableImage3/ProcessCroppableImage3/ProcessCroppableImage3.module" on line 65

The cropping works as expected, but the frontend output won't work anymore. The getCrop method seems not to deliver an object anymore!

Due to my first investigations in only occurs on multi-image fields.

Upgrading from CroppableImage problem

I upgraded an older version of PW to 3.0.x and in the process upgraded all the associated modules including CroppableImage to CroppableImage3 but somewhere along the way from moving the site from dev to live something has gone wrong because now there are problems uploading images. Sometimes they'll upload and sometimes when you click on the Choose File button, or drag an image into the field, nothing happens.

On a test page that already had an image in it, I couldn't get another one to load and there were no errors in the console. After removing the one image and resaving, neither the choose file button or dragging were working. Clicking the choose file button produced no errors, but dragging returned:

Uncaught TypeError: can't access property "grid", config.CroppableImage is undefined
/site/modules/CroppableImage/InputfieldCroppableImage/InputfieldCroppableImage.js?v=83-1429629453:405
jQuery 7
/site/modules/CroppableImage/InputfieldCroppableImage/InputfieldCroppableImage.js?v=83-1429629453:403
jQuery 11

from InputfieldCroppableImage.js:405:21

I've also just updated to 1.2.0 but the problem still remains. Any idea what I can do to fix it?

Cannot make non static method error after upgrading to 3.0.142

After upgrading to PW 3.0.142 both front and back end fail to load with:

Cannot make non static method ProcessWire\FieldtypeFile::getModuleConfigInputfields() static in class ProcessWire\FieldtypeCroppableImage3 (line 4 of /site/modules/CroppableImage3/FieldtypeCroppableImage3/FieldtypeCroppableImage3.module)

Renaming the module folder brings the admin back but I'm then unable to change the fieldtype of fields using FieldtypeCroppableImage3. When editing the field, the dropdown is showing as blank and if I choose a different option and then resave, it comes up blank again.

Error with Ajax process in RepeaterMatrix

We experience a problem with Croppable3 within a RepeaterMatrix field. While the first crops are created successfully, every attempt to adjust the image will fail. There is a problem with the JQuery module. I am not sure if it's a problem with the RepeaterMatrix field way to deal with the DOM or the Croppable3 module itself.

So, the crops seem to work...

image

Then when accepting it, I receive this error in the console.

image

And the new crop is not saved at all...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.