Focal Point image crop on EPiServer image | Episerver Developer Community

Focal Point image crop on EPiServer image

Member since: 2011
 

Hi champs,

I just have a question about image coping.  We r currently using EpiServer image thumbnail mechanism but have a requirement for specific pages I need to crop the image with based on focal point out of the box or any experience you guys have. So having such as this:

class ImageFile : ImageData

{

[ImageDescriptor(FocalPoint, DesireSize)]

public virtual Blob Cropped { get;set; }

}

So if this is not available I will build the mechanism of cropping but my question is how should I inject my function into EpiServer image fetch mechanism (I assume EpiServer do the image process whenever people ask for it!)

Would you please help me on this.

Thanks,

Aria

#131905 Aug 10, 2015 6:37
  • Member since: 2011
     

    I found this:

    https://github.com/valdisiljuconoks/ImageResizer.Plugins.EPiServerBlobReader/blob/master/EPiServerBlobReaderPlugin.cs

    Which seems can solve a problem but let me know your idea please?

    #131906 Aug 10, 2015 6:40
  • Member since: 2011
     

    Anyone has any experiecne?

    #131994 Aug 12, 2015 0:04
  • Member since: 2008
     

    We are looking for the same thing.  Did you ever come up with a solution Aria.  Thanks in advance.

    #146820 Mar 27, 2016 18:43
  • Member since: 2011
  • Member since: 2010
     
    #191735 Edited, Apr 27, 2018 8:13
  • Member since: 2008
     

    Hi Aria,

    We've been using imageresizer (http://imageresizing.net) for a number of years and we've been augmenting that with the EPiFocalPoint plugin you mentioned pretty much since it was released. Like you, we did contemplate writing our own but through researching the approach we found EPiFocalPoint which did all we needed. We did initially hit an issue with the cropping where cropped images would effectively be crops of the first cropped version of a given image rather than the original (possibly a clash with the caching plugin we were using) though we opted to write around the issue as the UI for choosing the focal point in the CMS is great and we didn't want to lose that. I'd say EPiFocalPoint is worth using, even if it's just for the focal point editor UI.

    #191747 Apr 27, 2018 10:53
  • Member since: 2011
     

    +1

    #191805 Apr 29, 2018 9:18