Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature suggestions #163

Open
sarink opened this issue Sep 25, 2024 · 1 comment
Open

Feature suggestions #163

sarink opened this issue Sep 25, 2024 · 1 comment

Comments

@sarink
Copy link

sarink commented Sep 25, 2024

I have spent the day evaluating both ImageKit and Cloudinary for our business. I wanted to leave a note with some ideas and suggestions for you!

  • Something similar to cloudinary's transformationStringFromObject - manipulating strings is very tedious and confusing for developers. We should be able to leverage a higher level (and typesafe) API
  • Improved extensibility, why doesn't this repo expose the ImageKitContext (it exposes something confusingly named, IKContext, which is not in fact a React.Context at all). If I want to do anything custom, I have to create my own ImageKit, duplicate/pass it all the same parameters that I've already passed to IKContext, including my authenticator. All of that doesn't have to be done twice. This repo should expose the client for consumers to use, which would at least make it easier for them to implement custom behavior and fill any gaps until the feature set catches up.

Thanks for all your hard work!

@ahnv
Copy link
Member

ahnv commented Oct 2, 2024

Hey @sarink,

Thank you for taking the time to provide the valuable feedback. We really appreciate your insights and are continuously working on improving our SDKs across the board.

Regarding your point:

Something similar to cloudinary's transformationStringFromObject - manipulating strings is very tedious and confusing for developers. We should be able to leverage a higher level (and typesafe) API

Our React SDK is written in TypeScript and currently supports object-based transformations. For example, you can achieve transformations using the following syntax:

  <IKImage path="/default-image.jpg" transformation={[{
    "height": "200",
    "width": "200"
  }]} />

Could you clarify further what improvements you’re envisioning, or any specific use cases where you feel the current implementation falls short? We'd love to better understand how we can enhance the developer experience.

As for the context-related changes, we already have plans to address those in the next release, which should simplify working with custom behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants