Skip to content

Conversation

@colbyfayock
Copy link
Collaborator

Description

Updates URL Loader to bring in changes to support coordinates based cropping: cloudinary-community/cloudinary-util#192

It exposes the x and y property on the crop object:

crop={{
  type: 'crop',
  width: 400,
  height: 400,
  x: 80,
  y: 350,
  gravity: 'north_east',
  source: true
}}

Allowing someone to crop to a specific location.

Issue Ticket Number

Fixes #507
Fixes #481

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Fix or improve the documentation
  • This change requires a documentation update

Checklist

  • I have followed the contributing guidelines of this project as mentioned in CONTRIBUTING.md
  • I have created an issue ticket for this PR
  • I have checked to ensure there aren't other open Pull Requests for the same update/change?
  • I have performed a self-review of my own code
  • I have run tests locally to ensure they all pass
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes needed to the documentation

@vercel
Copy link

vercel bot commented Sep 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
next-cloudinary ✅ Ready (Inspect) Visit Preview Sep 4, 2024 8:32pm

@colbyfayock colbyfayock changed the title upgrading url loader, adding support for coordinates based cropping Coordinates-based Cropping Sep 4, 2024
@colbyfayock colbyfayock merged commit 9b6b9dd into main Sep 4, 2024
@colbyfayock colbyfayock deleted the feat/481-508-coordinates branch September 4, 2024 20:34
github-actions bot pushed a commit that referenced this pull request Sep 4, 2024
# [6.12.0](v6.11.0...v6.12.0) (2024-09-04)

### Features

* Coordinates-based Cropping ([#509](#509)) ([9b6b9dd](9b6b9dd)), closes [#507](#507) [#481](#481)
@github-actions
Copy link

github-actions bot commented Sep 4, 2024

🎉 This PR is included in version 6.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CldImage - Support for Coordinates Based Cropping [Feature] Support x & y coordinates on crop

2 participants