[Plugin] Update for Support & Picasso

232 views
Skip to first unread message

Cemal

unread,
Sep 1, 2020, 10:00:29 AM9/1/20
to DroidScript
Support:
* Bug fixes 🐛
* Colored Documentation 📑

Picasso:
* Documentation re-edited and colored 📑
* Picasso.CreateEmptyImage Deprecated ⚠
* New functions 🚀

Fatih Elitas

unread,
Sep 1, 2020, 2:18:39 PM9/1/20
to DroidScript
Merhaba cemal. 
Picasso "Jimp" eklentisinin bir benzeri mi?

Eline sağlık

1 Eylül 2020 Salı tarihinde saat 17:00:29 UTC+3 itibarıyla Cemal şunları yazdı:

Cemal

unread,
Sep 1, 2020, 2:57:00 PM9/1/20
to DroidScript
Teşekkürler, hayır jimp gibi değil bir resim bağlantısını (internet üzerinden linkini aldığın bir resmi) CreateImage 'de göstermeye yarıyor ayrıca resmi bir kez açıldığında bir sonraki seferde daha hızlı yükler bunun yanında resmi daire yapma, köşeleri yuvarlama döndürme ve bulanıklaştırma gibi özellikleri var.

1 Eylül 2020 Salı tarihinde saat 21:18:39 UTC+3 itibarıyla Fatih Elitas şunları yazdı:

Mikhael

unread,
Nov 9, 2020, 2:52:47 PM11/9/20
to DroidScript
Hello

Your Support plugin does not work with newer DS1.93b. Can you make edits?

вторник, 1 сентября 2020 г. в 19:00:29 UTC+5, Cemal:

Cemal

unread,
Nov 10, 2020, 3:48:16 AM11/10/20
to DroidScript
Hello,
That I will check. Thank you for letting me know.

9 Kasım 2020 Pazartesi tarihinde saat 22:52:47 UTC+3 itibarıyla Mikhael şunları yazdı:

Fatih Elitas

unread,
Feb 13, 2021, 7:14:06 PM2/13/21
to DroidScript

S.a Cemal 
Android 10 da  picasso ve support eklentileri kurduktan sonra droidscriptte gözükmüyor. zip şeklinde varsa plugins klasörüne atıp yüklemeyi deniyeyim.
1 Eylül 2020 Salı tarihinde saat 16:00:29 UTC+2 itibarıyla Cemal şunları yazdı:

Cemal

unread,
Feb 14, 2021, 6:24:41 AM2/14/21
to DroidScript
A.s. güncelledim Play Store'dan indirebilirsin.

14 Şubat 2021 Pazar tarihinde saat 03:14:06 UTC+3 itibarıyla Fatih Elitas şunları yazdı:

Fatih Elitas

unread,
Feb 14, 2021, 6:38:14 AM2/14/21
to DroidScript
Her ikiside yüklenirken droidscript 'i başlatıyo ve geçersiz paket uyarısı veriyor . slideuppanel  de yüklenmiyo şimdi farkettim

14 Şubat 2021 Pazar tarihinde saat 13:24:41 UTC+2 itibarıyla Cemal şunları yazdı:

Cemal

unread,
Feb 14, 2021, 7:26:51 AM2/14/21
to DroidScript
Şuradan indirebilirsin:
14 Şubat 2021 Pazar tarihinde saat 14:38:14 UTC+3 itibarıyla Fatih Elitas şunları yazdı:

Fatih Elitas

unread,
Feb 14, 2021, 9:05:48 AM2/14/21
to DroidScript
Çalışıyor. 
Teşekkürler.

14 Şubat 2021 Pazar tarihinde saat 14:26:51 UTC+2 itibarıyla Cemal şunları yazdı:

Mikhael

unread,
Apr 11, 2022, 5:02:56 AM4/11/22
to DroidScript
Hello, Cemal

Picasso plugin dont work with local files on android 11?

I try load local image, but image dont show (with remote image all work good)

let path = "Img/user.png";
let avatar = Picasso.CreateImage(path, 0.05); // no work

path = app.RealPath(path);
avatar = Picasso.CreateImage(path, 0.05); // no work

Picasso.get()
   .load(path)
   .fit()
   .transform( "circle" )
   .transform( "blur", 5 )
   .into( img2 ) //no work too

I use DS 2.5

воскресенье, 14 февраля 2021 г. в 19:05:48 UTC+5, Fatih Elitas:
Message has been deleted

Cemal

unread,
Apr 11, 2022, 6:45:37 AM4/11/22
to DroidScript
Hi Mikhael,

There seems to be a problem with local files. I will try to fix it as soon as possible.

Thanks for information.

Cemal

unread,
Apr 24, 2022, 4:37:25 AM4/24/22
to DroidScript
Hi,

Sorry, local files cannot be loaded.

On Monday, 11 April 2022 at 12:02:56 UTC+3 Mikhael wrote:
Message has been deleted

Fatih Elitas

unread,
Sep 26, 2026, 3:48:41 AM (2 days ago) Sep 26
to DroidScript
Merhaba cemal.
Yerel resim dosyasını bulanıklaştırmanın bir yolu varmı.

Teşekkürler.

11 Nisan 2022 Pazartesi tarihinde saat 13:45:37 UTC+3 itibarıyla Cemal şunları yazdı:

Cemal

unread,
Sep 26, 2026, 4:29:48 AM (2 days ago) Sep 26
to DroidScript
Merhaba Fatih,

Picasso plugin'i ile değil ama farklı 1-2 yol önerebilirim:

WebView içine ekleyin sonra css ile filter: blur(10px) kullanın.

Veya resmi daha düşük kalite ile çizin:

function OnStart() {
lay = app.CreateLayout("linear", "VCenter,FillXY");
lay.SetChildMargins(0, 0, 0, 32, "px");

app.AddImage(lay, "/Sys/Img/Hello.png", 0.2);
AddBlurImage(lay, "/Sys/Img/Hello.png", 0.2);

app.AddLayout(lay);
}

function AddBlurImage(lay, path, width) {
const src = app.CreateImage(path, width);
const w = src.GetAbsWidth(),
h = src.GetAbsHeight();
const val = 10;

const thumb = app.CreateImage(
null,
Math.round(w / val),
Math.round(h / val),
"px",
);
thumb.DrawImage(src, 0, 0, 1, 1);

const img = app.CreateImage(null, w, h, "px");
img.DrawImage(thumb, 0, 0, 1, 1);

lay.AddChild(img);

return img;
}


Farklı bir yol ile yapmak isterseniz de AI ile bir fonksiyon oluşturdum. Buradan AI'nin önerdiği Gaussian Blur (RawBase64) yöntemini de deneyebilirsiniz: https://termbin.com/exux

Eğer bunu denerseniz ek olarak oluşan görüntüyü temp klasörüne kaydedip her seferinde tekrardan çizmenin önüne geçebilirsiniz.
Reply all
Reply to author
Forward
0 new messages