Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/main/java/io/rocketbase/asset/imgproxy/Signature.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public Signature size(int width, int height, boolean enlarge, boolean extend) {
return this;
}


/**
* Meta-option that defines the width, height, enlarge, and extend. All arguments are optional and can be omited to use their default values.
*/
Expand Down Expand Up @@ -106,6 +107,22 @@ public Signature resize(ResizeType resizeType) {
return this;
}

/**
* Defines how imgproxy will min-width the source image.
*/
public Signature minWidth(int minWidth){
processingOptions.add(createProcessingOption("mw", minWidth));
return this;
}

/**
* Defines how imgproxy will min-height the source image.
*/
public Signature minHeight(int minHeight){
processingOptions.add(createProcessingOption("mh", minHeight));
return this;
}

/**
* Defines the width of the resulting image. When set to 0, imgproxy will calculate the resulting width using the defined height and source aspect ratio.
* Default: 0
Expand Down