Jump to content
horst

Croppable Image 3

Recommended Posts

Thanks a lot for your reply.  This is the result:

1033 
 news->name 
title 
headline 
summary 
kategorie 
body 
images 
  count: 2
Pageimage

The error was probably because I had never before created a new field with the fieldtyp CroppableImage3. Because I already had some images fields, I have only changed the input field type of the existing fields and not created a new one. After I had created a test field with the fieldtyp CroppableImage3, the other fields now work as desired.

printscreen.PNG

  • Like 1

Share this post


Link to post
Share on other sites
On 19/10/2016 at 2:26 PM, horst said:

If you want to give the user the possibility to choose from different formats for one single place, you need a special setup with e.g. pagetable or the ProFields Repeater Matrix wrapped around the image field.

Hi Horst,

I've wrapped a repeater around my image and bullet selection (The user can thus choose which cropping to use). It works when I upload an image for the first time, it creates 4 standard croppings (panorama, portrait, etc.). However, if I make a custom cropping it doesn't save it. I'd actually want the custom cropping to overwrite other files, but that doesn't work either. 

Is there a known issue between croppable image 3 and repeaters? Should i use ProFields Repeater Matrix (haven't tried it so far). Pagetable is also a possibility, but not as intuitive and fast as a repeater.

Thanks for your help!

David

Share this post


Link to post
Share on other sites

I'm not aware of any issues with repeaters or repeater-matrix. (Repeater-Matrix would do no change, I believe, as it somehow extends repeater)

Custom cropping is made for which user / role. Does he have the right permission added to his role?

Share this post


Link to post
Share on other sites
23 hours ago, horst said:

I'm not aware of any issues with repeaters or repeater-matrix. (Repeater-Matrix would do no change, I believe, as it somehow extends repeater)

Custom cropping is made for which user / role. Does he have the right permission added to his role?

I tested even without the repeater and I get similar errors. So I think we can leave the repeaters out of it. Permissions are OK.

I tried to recreate the issue (can't tell yet exactly when it works and when not). 

I created 4 cropping-presets. These create the 4 croppings automatically. So far ok. When the user (whichever) creates a custom cropping, the new cropping doesn't overwrite the old one. Or I should rather say, sometimes it does, but most of the times it doesn't.

Workaround is to delete the generated croppings in the "variations" window prior to creating a custom one. This works, but it's not a nice solution for the end user.

Am I the first one reporting this bug?

Thanks.

Share this post


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

Am I the first one reporting this bug?

I wouldn't consider it a bug of the croppable image module, as this seems to be only at your server (setup).

Please provide the exact reproducable steps you have done, incl. installing and configuring the module. (You may try this by yourself in a test account, and if this behaves as you described, tell us the steps here, so that we will be able to reproduce it.)

What does "Permisions ar OK" mean, exactly?

Share this post


Link to post
Share on other sites
On 9/3/2016 at 7:59 PM, horst said:

Or directly use the markup srcset module from @tpr and only pass the master to it!

Just tried this and it works:

<img <?php echo $page->portfolio_images->first()->getCrop('portfolio-item')->srcset('portfolio-item'); ?> class="lazyload" alt="">

This was the first time I added CroppableImage to a project and it seems great. Some UI facelift here and there could be beneficial though :)

  • Like 3

Share this post


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

Some UI facelift here and there could be beneficial though :)

@tpr: Hah, - you are more than welcome to contribute in this regard, Mr. AOS! ^-^:lol: 

  • Like 3

Share this post


Link to post
Share on other sites

Could it be that for square image crops, only width to add, and use that for the height too?

portfolio-item-small,360

 

Share this post


Link to post
Share on other sites
10 minutes ago, tpr said:

Could it be that for square image crops, only width to add, and use that for the height too?


portfolio-item-small,360

 

What is the intention of the question? Lesser to write? Or something other?

Share this post


Link to post
Share on other sites

I add it to the ToDo, but may take some time to get done.

  • Like 1

Share this post


Link to post
Share on other sites

No, it should work with whatever PW accepts via installed ImageRenderingEngine-Modules.

Your Image is black. How work this image out with api rendered image variations? What is the source image type(s)? Is it with all images, regardless of type / format?

Share this post


Link to post
Share on other sites

HI,

Has anyone encountered quality issues with the croppable module? 

I know I'm very picky when it comes to image quality, but I'm getting pretty bad results and I'm wondering what i can do about it. I've tried no sharpening, sharpening soft, quality 90 and 80, but the images still look "pixelated", specially in the diagonals. 

See screenshot attached. Original left, cropping on the right.

image_quality.jpg

Share this post


Link to post
Share on other sites

CroppableImages uses the core images rendering engines. So there is no special "Croppable image rendering".

Your original image left is very blurry, and the one on the right site is much to much sharpened. Please try a variation with sharpening soft or none.

  • Like 1

Share this post


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

Your original image left is very blurry, and the one on the right site is much to much sharpened. Please try a variation with sharpening soft or none.

Yes, I'm aware of that. That's my issue. That's what I get with sharpening set on SOFT. 

Are the core rendering engines just not that good? 

Share this post


Link to post
Share on other sites

Hi, does anyone know if this works with @kongondo's Media Manager? 

Edit: having just bought the media manager, pretty sure there's no clear way to make them play nice together.

Edited by cjx2240

Share this post


Link to post
Share on other sites
22 hours ago, lenoir said:

Are the core rendering engines just not that good? 

Based on my experiences with

  • several thousand images of mine,
  • several thousand images of my customers
  • and many image variations from many sites around the world (from the showcase directory),

I can say: The core rendering engines seem to do a pretty good job !  ^-^:lol::ph34r:

But that are just my experiences. ;)

  • Like 2

Share this post


Link to post
Share on other sites

Just upgraded to PW 3.043 dev and getCrop() doesn't seem to work (returns NULL). Downgraded to 3.042 and no issues.

I've downloaded a fresh copy of both PW versions so 3.043 should contain Ryan's fix too.

Anyone having the same issue?

Share this post


Link to post
Share on other sites

I have upgraded a site yesterday too. Here everything is working as expected. With both, existing and new created images.

(PW 3.0.39 to 3.0.43)

Share this post


Link to post
Share on other sites

I was hoping the opposite :) Not sure what's going on here.

Share this post


Link to post
Share on other sites

I'm not sure if this is the intended functionality: 

When I click to edit a crop under 'predefined Crops', the overlaid 'marquee' always reverts to the far top left of the image, even when I move it around and click 'Crop and go'.

I know the crop has saved correctly because I can hover the button and see a thumbnail appear.

Share this post


Link to post
Share on other sites

This is not intended, but its previous state is only saved for jpegs, not for png or gif formats.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By teppo
      This module tracks changes, additions, removals etc. of public (as in "not under admin") pages of your site. Like it's name says, it doesn't attempt to be a version control system or anything like that - just a log of what's happened.
      At the moment it's still a work in progress and will most likely be a victim of many ruthless this-won't-work-let's-try-that-instead cycles, but I believe I've nailed basic functionality well enough to post it here.. so, once again, I'll be happy to hear any comments you folks can provide
      https://modules.processwire.com/modules/process-changelog/
      https://github.com/teppokoivula/ProcessChangelog
      How does it work?
      Exactly like it's (sort of) predecessor, Process Changelog actually consists of two modules: Process Changelog and Process Changelog Hooks. Hooks module exists only to serve main module by hooking into various functions within Pages class, collecting data of performed operations, refining it and keeping up a log of events in it's own custom database table (process_changelog.) Visible part is managed by Process Changelog, which provides users a (relatively) pretty view of the contents of said log table.
      How do you use it?
      When installed this module adds new page called Changelog under Admin > Setup which provides you with a table view of collected data and basic filtering tools See attached screenshots to get a general idea about what that page should look like after a while.
      For detailed installation instructions etc. see README.md.
       


    • By Gadgetto
      Status update links (inside this thread) for SnipWire development will be always posted here:
      2019-08-08
      2019-06-15
      2019-06-02
      2019-05-25
      If you are interested, you can test the current state of development:
      https://github.com/gadgetto/SnipWire
      Please note that the software is not yet intended for use in a production system (alpha version).
      If you like, you can also submit feature requests and suggestions for improvement. I also accept pull requests.
      ---- INITIAL POST FROM 2019-05-25 ----
      I wanted to let you know that I am currently working on a new ProcessWire module that fully integrates the Snipcart Shopping Cart System into ProcessWire. (this is a customer project, so I had to postpone the development of my other module GroupMailer).
      The new module SnipWire offers full integration of the Snipcart Shopping Cart System into ProcessWire.
      Here are some highlights:
      simple setup with (optional) pre-installed templates, product fields, sample products (quasi a complete shop system to get started immediately) store dashboard with all data from the snipcart system (no change to the snipcart dashboard itself required) Integrated REST API for controlling and querying snipcart data webhooks to trigger events from Snipcart (new order, new customer, etc.) multi currency support self-defined/configurable tax rates etc. Development is already well advanced and I plan to release the module in the next 2-3 months.
      I'm not sure yet if this will be a "Pro" module or if it will be made available for free.
      I would be grateful for suggestions and hints!
      (please have a look at the screenshots to get an idea what I'm talking about)
       




    • By apeisa
      Update 31.7.2019: AdminBar is now maintained by @teppo. Modules directory entry has been updated, as well as the "grab the code" link below.
      ***
      Latest screencast: http://www.screencas...73-ab3ba1fea30c
      Grab the code: https://github.com/teppokoivula/AdminBar
      ***
      I put this Adminbar thingy (from here: http://processwire.c...topic,50.0.html) to modules section and to it's own topic.
      I recorded quick and messy screencast (really, my first screencast ever) to show what I have made so far. You can see it from here: http://www.screencas...18-1bc0d49841b4
      When the modal goes off, I click on the "dark side". I make it so fast on screencast, so it might seem a little bit confusing. Current way is, that you can edit, go back to see the site (without saving anything), continue editing and save. After that you still have the edit window, but if you click "dark side" after saving, then the whole page will be reloaded and you see new edits live.
      I am not sure if that is best way: there are some strengths in this thinking, but it is probably better that after saving there shouldn't be a possibility to continue editing. It might confuse because then if you make edits, click on dark side -> *page refresh* -> You lose your edits.
      ***
      When I get my "starting module" from Ryan, I will turn this into real module. Now I had to make some little tweaks to ProcessPageEdit.module (to keep modal after form submits). These probably won't hurt anything:
      if($this->redirectUrl) $this->session->redirect($this->redirectUrl); if(!empty($_GET['modal'])) $this->session->redirect("./?id={$this->page->id}&modal=true"); // NEW LINE else $this->session->redirect("./?id={$this->page->id}");   and...
      if(!empty($_GET['modal'])) { $form->attr('action', './?id=' . $this->id . '&modal=true'); } else { $form->attr('action', './?id=' . $this->id); // OLD LINE }  
    • By Mike Rockett
      Jumplinks for ProcessWire
      Release: 1.5.54
      Composer: rockett/jumplinks
      Jumplinks is an enhanced version of the original ProcessRedirects by Antti Peisa.
      The Process module manages your permanent and temporary redirects (we'll call these "jumplinks" from now on, unless in reference to redirects from another module), useful for when you're migrating over to ProcessWire from another system/platform. Each jumplink supports wildcards, shortening the time needed to create them.
      Unlike similar modules for other platforms, wildcards in Jumplinks are much easier to work with, as Regular Expressions are not fully exposed. Instead, parameters wrapped in curly braces are used - these are described in the documentation.
      Under Development: 2.0, to be powered by FastRoute
      As of version 1.5.0, Jumplinks requires at least ProcessWire 2.6.1 to run.
      View on GitLab
      Download via the Modules Directory
      Read the docs
      Features
      The most prominent features include:
      Basic jumplinks (from one fixed route to another) Parameter-based wildcards with "Smart" equivalents Mapping Collections (for converting ID-based routes to their named-equivalents without the need to create multiple jumplinks) Destination Selectors (for finding and redirecting to pages containing legacy location information) Timed Activation (activate and/or deactivate jumplinks at specific times) 404-Monitor (for creating jumplinks based on 404 hits) Additionally, the following features may come in handy:
      Stale jumplink management Legacy domain support for slow migrations An importer (from CSV or ProcessRedirects) Feedback & Feature Requests
      I’d love to know what you think of this module. Please provide some feedback on the module as a whole, or even regarding smaller things that make it whole. Also, please feel free to submit feature requests and their use-cases.
      Note: Features requested so far have been added to the to-do list, and will be added to 2.0, and not the current dev/master branches.
      Open Source

      Jumplinks is an open-source project, and is free to use. In fact, Jumplinks will always be open-source, and will always remain free to use. Forever. If you would like to support the development of Jumplinks, please consider making a small donation via PayPal.
      Enjoy! :)
×
×
  • Create New...