Jump to content
Peter Knight

Image Crop - did I imagine it?

Recommended Posts

I'm sure there was a way to manually crop an image within an Images field BEFORE you added it to a page?

Am I imagining this? There was a small crop icon on the top right of an image and now it's gone. Possibly it's a result of changing an Images field to CroppableImage but I thought it may have been a bug?

Share this post


Link to post
Share on other sites

No, its not a bug. CroppableImages's UI was made before the crop functionality was introduced. CroppableImages was planned to add more functionality and better space usage to the UI, therefore it was not build on top of the core images UI. Thus truncate the path to all further updates / changes to the core image.

It would be really cool if someone of the guys who are building the new images UI also could (re)build the croppableimages UI back to use the default one only with the additional buttons for the crop, after the core UI image is finished. :)

  • Like 1

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 Robin S
      Inspired by a recent question.
      Image Crop Ratios
      Allows preset aspect ratios to be defined per image field for the ProcessWire image crop tool.
      The module adds a select dropdown to the crop tool. Choose an aspect ratio and the crop area will be fixed to that ratio.
      Screencast

      Installation
      Install the Image Crop Ratios module.
      Configuration
      Default aspect ratios for all image fields can be defined in the module config. Aspect ratios for specific image fields can be defined on the Input tab of the field settings. You can override the ratio settings in template context if needed. Insert a hyphen as the first item in the ratio settings unless you want to force a ratio to be applied to the crop tool. The hyphen represents a blank option that allows a free crop area to be drawn. Usage
      Click the "Crop" link on the details view of an image thumbnail. Click the "Crop" icon at the top of the editor window. Choose an option from the "Ratio" select dropdown.  
      https://github.com/Toutouwai/ImageCropRatios
      https://modules.processwire.com/modules/image-crop-ratios/
    • By Far
      Hi,
       
      Recently i came across a strange behaviour of core image cropping function. My Core version is Dev 2.6.17, OpenServer (Apache 2.4, PHP 5.4 and PHP 5.6)
       
      I have an image like that:

      And when i try to crop it with that code:
      for($i=0;$i<=9;$i++) { $img = wire('pages')->get(1850)->page_header_images->eq(1)->crop(0, $i*80, 1280, 80); // crop($x, $y, $w, $h) echo "<img src=\"{$img->url}\"><br/><br/>"; } I get always get the same peaces of picture though it has different $y

      I also have a problem when i use resize/crop interface in modal window in page editor.
      I wanted to post n issue to github, but would like to ask you to check if you can reproduce this behavior 
    • By *Most Powerful Pony!*
      I have an image 500x300 
      I need to apply the resizing to 150x150 without cutting edge. 
      Thus in any case, I need to have the image canvas size 150x150 
      When you use $ image->size (150, 150), we obtain the desired result (cropping). 
      When using $ image->size (150, 150, array ('cropping' => false)) our image circumcised according to the greatest height, canvas change proportionally. / / 150x90. 
      Need an image 150x90 position in the center of the canvas 150x150. 
      You can do this using the API?

    • By *Most Powerful Pony!*
      For example: It is necessary for you that all photos in galleries of "participants" would be in jpeg. But different types are allowed for loading, and all of them will be cut off in compliance with the type.   I suggest to choose expansion in which the reduced copies of the image will be converted, it can be both control for a field, and expansion for API Image   $image->ext() //jpg $newImage = $image->ext('png') $newImage->ext() //canonical png convert
    • By casey
      I'm attempting to make a photoblog type of site and was wondering if there's a clean way to get the image directory path when using the $image->size method.
      The purpose of this is so the user can upload their large images, display as a thumbnail and click to view a medium version no taller than 800px within a modal.
      As you can see, I've had to hardcode the site/assets/files directory. Is there another method?
      (*the getThumb function refers to another installed module)
      foreach($page->images as $image) { echo '<a href="site/assets/files/'.$page->id.'/'.$image->size('','800').'"><img src="'.$image->getThumb('thumbnail').'" alt="'.$image->description.'"/>'; }
×
×
  • Create New...