Finds and prints the 451st commit message of a repo if it exists
./commit451.sh https://gitlab.com/Commit451/LabCoat.git
Just cause
Image transformations for Coil
License: Apache License 2.0
Gradle task
./gradlew --write-verification-metadata pgp,sha256 --export-keys
<component group="com.github.Commit451.coil-transformations" name="transformations" version="2.0.2">
<artifact name="transformations-2.0.2.aar">
<sha256 value="adbec226ce2c3a78b5e242e960971649b502cf3274aae421c48edd6bb94c7f56" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
<artifact name="transformations-2.0.2.module">
<sha256 value="58392a2a62b37ea8289a4633f9e4566c84ba5637806e6abbba87f14fac081aa4" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
did not find a pgp public key in a remote repository or the artifact is not signed.
A fix is to:
I'm using your MaskTransformation
however it doesn't resize according to my ImageView. I think it's resizing based on the image size.
when including
implementation("com.github.Commit451.coil-transformations:transformations:2.0.1")
Missing build file: https://jitpack.io/com/github/Commit451/coil-transformations/transformations/2.0.1/transformations-2.0.1.aar -- you have "debug" and "release" versions of that, but not without.
the implementation("com.github.Commit451.coil-transformations:transformations:1.1.2") works
Hi,
I would like to know which library to import for Face Detection Transformation. It is not currently in any given libraries and I can't find any face detection separate library on jitpack.
Hi, i can apply transformations that are already supported in Coil itself well, but when i try to load from the base library (transformations) and from GPU library the picture is not loaded
image.load("url_pic") {
transformations(VignetteFilterTransformation(applicationContext))
}
Tested with Android 6.0.1
Coil 2.0 alpha has BlurTransformation removed from the library.
The authors recommend copy-pasting source code to the project for those who relied on it, however BlurTransformation used deprecated APIs and internal methods heavily, many of which were removed, essentially making this advice impossible to follow.
It would be nice to have this library add an updated version of BlurTransformation and GrayscaleTransformation to help those who relied on them before.
See #9 (comment)
class FitWidthCrop : Transformation {
override val cacheKey: String = javaClass.name
override suspend fun transform(input: Bitmap, size: Size): Bitmap {
val srcWidth: Int = input.width
val srcHeight: Int = input.height
val (outputWidth, outputHeight) = calculateOutputSize(input, size)
val sR = srcHeight.toFloat().div(srcWidth)
val oR = outputHeight.toFloat().div(outputWidth)
if (sR <= oR) {
return input
}
val scale = srcWidth.toFloat().div(outputWidth)
val newOutputHeight = outputHeight.times(scale).roundToInt()
val y = srcHeight.minus(newOutputHeight).div(2)
return Bitmap.createBitmap(input, 0, y, srcWidth, newOutputHeight)
}
override fun equals(other: Any?) = other is CircleCropTransformation
override fun hashCode() = javaClass.hashCode()
private fun calculateOutputSize(input: Bitmap, size: Size): Pair<Int, Int> {
if (size.isOriginal) {
return input.width to input.height
}
val (dstWidth, dstHeight) = size
if (dstWidth is Dimension.Pixels && dstHeight is Dimension.Pixels) {
return dstWidth.px to dstHeight.px
}
val multiplier = DecodeUtils.computeSizeMultiplier(
srcWidth = input.width,
srcHeight = input.height,
dstWidth = size.width.pxOrElse { Int.MIN_VALUE },
dstHeight = size.height.pxOrElse { Int.MIN_VALUE },
scale = Scale.FILL
)
val outputWidth = (multiplier * input.width).roundToInt()
val outputHeight = (multiplier * input.height).roundToInt()
return outputWidth to outputHeight
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.