Different setups must do different things.
I tested with your image.
Original: 6.1mb
Rotated: 5.8mb !!
Different setups must do different things.
I tested with your image.
Original: 6.1mb
Rotated: 5.8mb !!
Wel okay,then IT must BE my Smartphone
You could always run a resize on the rotated image if you test the image size and it is too big, hopefully it will still be of a decent enough standard after resizing. The latest version of the extension provides a method for getting the filesize/dimensions, and for cropping.
one suggestion:
replace "file://" with "" in target and output in the extension source code, then the user no need to substring any more.
Yes, I keep meaning to do this
Will fix it today !!
[EDIT] now fixed.
handles target and output paths with both full and absolute paths, e.g. file:///storage/...
and /storage/...
.
width/2
on a square image will return a circular image.file://
), which now should work correctly for all extension functions.This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
example blocks:
(in this example the image was 100x100 pixels)
possible to rotate the text watermark or set it's custom font type?
I believe both are possible.
I have the rotate feature working in ImageConvertor, but do not know the method for setting a typeface from a font file in the assets.
These have promise but generate runtime errors:
.setTypeface(Typeface.createFromFile(form.getAssetPath(fontname)));
or
.setTypeface(Typeface.createFromAsset(form.getAssets(),fontname));
https://developer.android.com/reference/android/graphics/Typeface
Is it possible to turn a .Png into a .Jpg
_junko