horst

module
Croppable Image 3

143 posts in this topic

Croppable Image 3 (beta)

for PW 3.0.20+

Sponsored by http://dreikon.de/, many thanks Timo & Niko!

You can get it in the modules directory!

Please refer to the readme on github for instructions.

-------------------------------------------------------------------------

For updating from the legacy Thumbnail / CropImage to CroppableImage3 read on here.

20 people like this

Share this post


Link to post
Share on other sites

How the new editor window looks like.

9 people like this

Share this post


Link to post
Share on other sites

This looks great @horst - just one initial request - can we lose the "Wow that looks great" button label and make it simply "Continue" or "Accept" or something similar. And maybe the "Not happy, crop again" link should be a button with "Redo Crop" ?

PS I know these labels are a legacy of the original thumbnails module, but they do sound a little weird to me.

8 people like this

Share this post


Link to post
Share on other sites
15 hours ago, adrian said:

This looks great @horst - just one initial request - can we lose the "Wow that looks great" button label and make it simply "Continue" or "Accept" or something similar. And maybe the "Not happy, crop again" link should be a button with "Redo Crop" ?

PS I know these labels are a legacy of the original thumbnails module, but they do sound a little weird to me.

What have you done Adrian!?!? 

TBH I was surprised that those lived so long. They always made me smile :)

8 people like this

Share this post


Link to post
Share on other sites
8 minutes ago, apeisa said:

What have you done Adrian!?!? 

TBH I was surprised that those lived so long. They always made me smile :)

I was waiting for your response here - sorry about that - no offense intended :)

2 people like this

Share this post


Link to post
Share on other sites

No offense, but oh so many tears. I will get over this. Someday.

3 people like this

Share this post


Link to post
Share on other sites

I'm thinking about to implement a "show historical label texts" module config checkbox. Antti, would this help to get over this a bit faster?

(Some customers really liked that. "Oh, thats so positive! Fine.") :)

 

5 people like this

Share this post


Link to post
Share on other sites

Aren't your module sponsors withdraw seeing this? :)

2 people like this

Share this post


Link to post
Share on other sites

I actually like when software is not so serious. And I think most people do. Or at least it is not stop for success, take a look at MailChimp and Slack for example. 

@horst the legacy labels setting would make my day! 

1 person likes this

Share this post


Link to post
Share on other sites
8 minutes ago, apeisa said:

I actually like when software is not so serious. And I think most people do. Or at least it is not stop for success, take a look at MailChimp and Slack for example. 

@horst the legacy labels setting would make my day! 

Wow - now I feel so boring and serious :)

Seriously (ha ha) though, I think there is a great place for fun elements in software, but I think it's important who it's aimed at and whether they'll see it as fun or just confusing - "you gotta keep it smart people" (dorky TV quote there)!

Getting OT, but why do all phone companies around the world seem to use cute animals in their advertising? I don't see the fun because I can't see the connection - the fun has to be relevant.

3 people like this

Share this post


Link to post
Share on other sites
1 hour ago, adrian said:

Wow - now I feel so boring and serious :)

Yeah, now I'm thinking about to setup a radio or select with something like:

   "I am serious"

   "I like it funny"

   "I'm brave, surprise me"

 

@apeisa: Yes, that was exactly what one customer said to me a month ago: "Oh, thats nice and not so serious. I like it. It is the same way like Mailchimp do."

3 people like this

Share this post


Link to post
Share on other sites
2 hours ago, tpr said:

Aren't your module sponsors withdraw seeing this? :)

Haha, I don't hope so!

Share this post


Link to post
Share on other sites

Version 0.9.12

I added a single centralized translation file. It combines all text strings of all module and dependency files. This way it should be easier or lesser work to translate it. (<- hint @ceberlin, @Manfred62, @yellowled :))

@apeisa: Also the legacy and serious text selection is included. (legacy is default!)

 

 

 

6 people like this

Share this post


Link to post
Share on other sites
18 minutes ago, horst said:

legacy is default!

boo! hiss!

Just kidding :) I actually don't mind it at all now that the crop again option is a button rather than a text link.

1 person likes this

Share this post


Link to post
Share on other sites

Haha! Yep, and also, if you or your customer are more from the serious side, it is only a selection and a save click to change it. :)

Share this post


Link to post
Share on other sites
Quote

this way it should be easier or lesser work to translate it. (<- hint

Ok, I will take care of the translation to DE tonight...

2 people like this

Share this post


Link to post
Share on other sites

Hi Horst,

it's great to see CoppableImage again in PW3!
For me as Superuser all is fine, but if I login with another role (with right "page-edit-image") the modal crop-window switches to the pagetree-view.

1 person likes this

Share this post


Link to post
Share on other sites

Hmmm after installing the new Version I have a problem:

When clicking on "Wow that looks great / Accept" the modal window does not close anymore. It does not close, when I click on the "X" in the upper right corner either.

Plus, there are a few Javascript errors:

InputfieldCroppableImage3.js:31 Uncaught TypeError: Cannot read property 'width' of undefined

I testet in on my Mac with Chrome and Firefox. Same behaviour in both browsers.

Share this post


Link to post
Share on other sites

Here it is working without errors. Also, the relevant part for that hasn't changed between the last versions.

Maybe browser cache issue, or, if that doesn't help. Delete all files and folders under site/modules/CroppableImage3/ ... and copy a fresh one new Version into it, to make sure to have all the latest versions?

I can switch force and back between the two modal windows multiple times, and I also can close it via the buttons and the X.

13 hours ago, Noboru said:

For me as Superuser all is fine, but if I login with another role (with right "page-edit-image") the modal crop-window switches to the pagetree-view.

I will test this and come back here, when done.

Share this post


Link to post
Share on other sites
13 hours ago, Noboru said:

Hi Horst,

it's great to see CoppableImage again in PW3!
For me as Superuser all is fine, but if I login with another role (with right "page-edit-image") the modal crop-window switches to the pagetree-view.

Same behave here, sorry.

What I encountered in short, is: I get different color for the modal windows title bar (?), and it doesn't open the processPage. So, it is an access issue. I need to investigate further. ...

Share this post


Link to post
Share on other sites

Somehow I had lost the permission settings during the rewrite. Also there were a chance for some interfere with the permission of the older Croppable module.

Now I have fixed it with the update to version 0.9.14

But it will not update / correct itself, :(

To get rid of the bug, everyone who has installed a version lesser than 0.9.14 should follow these manual steps:

  1. copy the module files >= 0.9.14 into site/modules/CroppableImage3/
  2. goto admin > modules > site > ProcessCroppableImage3, open it, select uninstall and uninstall it
  3. now refresh the modules cache
  4. and install the ProcessCroppableImage3
  5. open all your user roles that need edit rights for crop images and add the new " image-crop-3 " permission to them

Ready!

For fresh installs of version 0.9.14+, everything works out of the box.

5 people like this

Share this post


Link to post
Share on other sites

Hello Horst,

I got problems with the crop function. I always get the error message "process returns no content" after clicking the cropping button:

Here are the crop settings of my image field:

Screenshot_13.jpg

As you can see I have added pre-defined crop settings to the image field.

And here you can see what happens if I press the crop button:


5xsM3xVPfB.gif

The modal window always shows that no content will be returned. I have tried to catch an error with Tracy Debugger but not luck.

PW: 3.0.32, User: Superuser, PHP 5.6.25, Server: Apache, Croppable image 3: version 0.9.14

Any idea?

Best regards Jürgen

Share this post


Link to post
Share on other sites

How do you have installed it? Was a previous version there before?

If there is no Process installed, that could be because:

the ProcessImageCroppable3 isn't installed or not installed correct. maybe it misses its admin page?

Have you checked that ProcessCroppableImage3 is installed?

Did you have under Admin > Pages > a page with title "Croppable Images 3", and what is its process and name?

 

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By justb3a
      Little admin helper module: Using this module you can view all template cache settings at once. E.g. cache status, cache time (configurable). Furthermore it adds the functionality to clear the entire template cache or just the template cache for a given template. Note that this may cause a temporary delay for one or more requests while pages are re-cached.

      GitHub: https://github.com/justb3a/processwire-templatecacheoverview
    • By blad
       
      Hi guys!
      I'm creating a module to manage, edit, publish ... pages. It is very similar to ProcessBatcher.
       
       
      Changelog:
      In progress 
      Features:



      Select pages with your mouse like a desktop enviroment. If you press "edit" the selected pages will appear in a lightbox.


      Drag pages to do actions.
      Any feedback is welcome
       
       
    • By abdus
      I dont know how they work internally, whether they depend on each other, but I'd love to be able to test and buy RepeaterMatrix or Multiplier or Table (or any other) module individually. Whole pack of ProFields modules seems awesome to have, however, being able to buy one for ~$30 --instead of all for $130-- sounds much more affordable and this way I could buy the whole pack part by part in several months and wouldn't think twice. But $130 at once, I can't really justify it (and still havent been able to) just as easily with low (to none) disposable student income.  Or instead, having sales one - twice a year would be great as well.
      One advantage of this change would be allowing more people to buy -> support the development & community -> give feedback -> improve these products. This could also potentially pose a disadvantage where requests from people would increase the headache and time required to respond to all these requests, but this community is more than able to handle that.
      I'm sure there's a reason to why these modules are sold together, and I'd love to hear your side as well, @ryan, (and all other maintainers).
      Regards,
      Abdus.
    • By Richard Jedlička
      Tense    
      Tense (Test ENvironment Setup & Execution) is a command-line tool to easily run tests agains multiple versions of ProcessWire CMF.
      Are you building a module, or a template and you need to make sure it works in all supported ProcessWire versions? Then Tense is exactly what you need. Write the tests in any testing framework, tell Tense which ProcessWire versions you are interested in and it will do the rest for you.

      See example or see usage in a real project.
      How to use?
      1. Install it: 
      composer global require uiii/tense 2. Create tense.yml config:
      tense init 3. Run it:
      tense run  
      For detailed instructions see Github page: https://github.com/uiii/tense
       
      This is made possible thanks to the great wireshell tool by @justb3a, @marcus and others.
       
      What do you think about it? Do you find it useful? Do you have some idea? Did you find some bug? Tell me you opinion. Write it here or in the issue tracker.
    • By ukyo
      FieldtypeFontIconPicker
      v.0.1.6
      Fix FieldtypeFontIconPicker sanitizeValue() v.0.1.5
      Added uikit icon select support (required AdminThemeUikit), because uikit icons not working standalone. v.0.1.4 :
      Fix issue FontIconPicker inside repeater v.0.1.3 :
      FontAwesome updated to 4.7.0 v.0.1.2 :
      Little Corrections Some works about icon pickers inside repeater via ajax load v.0.1.1 :
      FontAwesome updated to 4.6.3 v.0.1.0 :
      Custom CSS file url support Added hook method ___beforeRender(), you can check hook example for usage Added multiple icons library use option Added Ionicons Library Now module using cdn for load icon fonts v.0.0.9 inside dev branch
      Added hook method ___beforeRender(), you can check hook example for usage Added multiple icons library use option Added Ionicons Library Now module using cdn for load icon fonts v.0.0.8
      FontAwesome 4.5 update, Improvements and Performance updates Important ! After update module check your input settings, because i changed input attribute names (This will only effect input options, like theme, category). Changed loading icon method from input:hidden to select>optgroup>option, added module js file for load and correct icon picker container many changes…. v.0.0.7
      FontAwesome updated to 4.4.0 v.0.0.6
      Missed... array compatibility for usage, from [$foo, $bar] to array($foo, $bar) v.0.0.5
      Fix for oldest pw versions (Assets file loding scripts moved to inputfieldfonticonpicker module) v.0.0.4
      Array compatibility for usage, from [$foo, $bar] to array($foo, $bar) v.0.0.3
      Small z-index problem solved v.0.0.2
      MarkupFontIconPicker added v.0.0.1
      Start Point Module allow you to use Fotn-Awesome icons easily. You can select icons directly from icon select list, also you can set settings for each InputfieldFontIconPicker.
       
      NOTE : Module store data without prefix, you need to add "prefix" when you want to show your icon on front-end, because some of front-end frameworks using font-awesome with different "prefix".

      Example :
      if($my-icon-field) echo "<i class='my-prefix-{$my-icon-field}' />"; Hook Before Render Example This example using /site/templates/admin.php file for hook
      wire()->addHook('InputfieldFontIconPicker::beforeRender', function($event) { if(!$event->return) return; // Get Input Name (For specified input hook, if you want apply all InputfieldFontIconPicker remove inputName check) $inputName = ""; if(isset($event->object->attributes['name'])) $inputName = $event->object->attributes['name']; // Get Input Name (For specified input hook, if you want apply all InputfieldFontIconPicker remove inputName check) if($inputName == 'icon_picker') { /** * Load your custom icons function file * Your array need to be same format with Icons/FontAwesome.php or Icons/Ionicons.php * Also you can pass directly an array */ wireIncludeFile('MyCustomIconFile'); // Set icons as $icons variable $icons = MyCustomIconsArray(); // Set your options $return = array( 'attributes' => array( 'category' => '', 'theme' => 'fip-grey', 'empty-icon' => 1, 'empty-icon-value' => '', 'icons-per-page' => 20, 'has-search' => 1 ), 'icons' => $icons ); // Return the event $event->return = $return; } $event->return; }); MarkupFontIconPicker Usage
      // MarkupFontIconPicker::render(YourIconField=string, Options=array) echo MarkupFontIconPicker::render($page->YourIconField, [ 'prefix' => 'uk-icon-', // Icon class prefix, if you have different prefix, default is : "fa fa-" 'tag' => 'span', // Icon tag default is : "i" 'class' => 'fa-lg', // If you have extra cutom classes, for example : icons sizes, Array or Sting value 'style' => 'your custom styles if you have' // Array or String Value ]); Module Using
      Font-Awesome v4.3 jQuery fontIconPicker v2.0.0 Screenshots - InputfieldFontIconPicker input settings

      InputfieldFontIconPicker Setting "Category Select"
       


      InputfieldFontIconPicker Setting "Theme Select"



      Screenshots - InputfieldFontIconPicker page edit views

      InputfieldFontIconPicker Search


      InputfieldFontIconPicker Categories


       
      For issues and other things here is MY Github Repo