src/Db/ImageAggrDbAgent.php
public function getCropsCoordinates(ARef $aRef, ImageSettingInterface $imageSetting)
    {
        $owner_name = $aRef->getType()->getName();
        $image_name = $imageSetting->getName();
        $owner_id = $aRef->getId();

        $collection = Crop::where('entity_name', '=', $owner_name)
            ->where('entity_id', '=', $owner_id)
            ->where('image_name', '=', $image_name)
            ->get();

        $crops_array = [];

        foreach($collection as $crop)
        {
            $crops_array[$crop->name] = ['x' => $crop->x, 'y'=> $crop->y];
        }

        return $crops_array;
    }
public function getCropsCoordinates(ARef $aRef, ImageSettingInterface $imageSetting)
    {
        $owner_name = $aRef->getType()->getName();
        $image_name = $imageSetting->getName();
        $owner_id = $aRef->getId();

        $collection = Crop::where('entity_name', '=', $owner_name)
            ->where('entity_id', '=', $owner_id)
            ->where('image_name', '=', $image_name)
            ->get();

        $crops_array = [];

        foreach($collection as $crop)
        {
            $crops_array[$crop->name] = ['x' => $crop->x, 'y'=> $crop->y];
        }

        return $crops_array;
    }
@param \Interpro\Core\Contracts\Ref\ARef $aRef
@param \Interpro\ImageAggr\Contracts\Settings\ImageSetting $imageSetting

@return array