In that extension images croped according to size of image not by 1x1 ratio
And i also got another way to do it by crop image according to size like if 33 then crop image in 11 then use image extension in pura vida apps but image doesnot crop in proper way
Can you sugest me any extension to crop images ?
It will be beter if it will me With preview
Cropping is the removal of unwanted outer areas from a photographic or illustrated image. What you are trying to do is making 9 images from one.
Why didn’t you tell what you already had done? If it is not on the extension page it is not there. Maybe ask Taifun if he can make what you want. You can sponsor him.
I think this block of @Taifun’s extension does what you want. Have you tried?
Create chunks of a jpg image file.
For example rows=4 and columns=3 will create 12 chunks of the original image, see screenshot
The chunks will be stored in the same directory as the original image file. The following name convention will be used: imageFileName_rowNumber_columnNumber.jpg.
You can use a relative path or a complete path to the image file. To use a relative path, just prefix the imageFileName with /. For instance /myFile.jpg will create chunks of the file /mnt/sdcard/myFile.jpg. You can’t create chunks from files in the assets. If a fileName starts with file:/// you can specify a complete path to the file.
which means, your questions is about how to crop an image into a square and then create chunks, so each of the chunks is again a square?
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
Also you might want to explain, what exactly you are trying to do, what was the result or your trial and what did you want to get instead…
and if pic is not square then i cant make pics like this
and if i want to make it more longer like 18 chunks
then i have to crop image according to each square chunk
means the chunks must be square neither portrait nor landscape
and thats why i want a image crop extension by which i can crop image according to final chunks
so what prevents you from doing it?
just use some math to calculate, how the original image needs to be cropped, so you get nice chunks in square format in the end…
I got Solution of my last question by using your image extension and some calculations
than you
and i have also one more problem i want to make app like no crop
i create one black n another white image for background and i cant get any way to merge the image on background images
i also tried with image editor component but in that i can only join two images like right and left not one on another
apart from that is there any extension to crop image according to resolution with crop preview ?
be creative…
for example rotate the landscape picture by 90 degrees, then follow the steps
join the black image and your image
join the result of 1) and again the black image
crop the image to square size
and rotate it back 90 degrees
I don’t understand completely what you are asking…you might want to try the Scale method from the image extension…
also the extensions directory is here App Inventor Extensions | Pura Vida Apps