Skip to content

Not working in current state missing function definition #15

Description

@CrHasher

https://github.com/nova452/Rebalance-Pack/blob/main/resize_toolkit.py:

@staticmethod
    def _candidate_rect(bw, bh, target_ratio):
        if bw / bh > target_ratio:
            
            crop_w = bh * target_ratio
            crop_h = float(bh)
            pad_w = float(bw)
            pad_h = bw / target_ratio
        else:
            
            crop_w = float(bw)
            crop_h = bw / target_ratio
            pad_w = bh * target_ratio
            pad_h = float(bh)
        return crop_w, crop_h, pad_w, pad_h

    @staticmethod
    def _place(new_w, new_h, bx1, by1, bx2, by2, bcx, bcy,
               crop_position, w, h): <- HERE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions