* tambah timestamp

* full resolution ganti ke PNG compression 0
* tambah reduced resolution di 1280x720 JPG quality 100
This commit is contained in:
2025-01-15 10:23:18 +07:00
parent 72e2789d50
commit 30660b9afb
5 changed files with 63 additions and 20 deletions

View File

@@ -5,7 +5,6 @@ import com.google.gson.Gson;
import com.google.zxing.MultiFormatReader;
import javafx.embed.swing.SwingFXUtils;
import javafx.scene.image.Image;
import lombok.val;
import org.bytedeco.javacv.Java2DFrameConverter;
import org.bytedeco.javacv.OpenCVFrameConverter;
import org.bytedeco.opencv.global.opencv_imgcodecs;
@@ -37,6 +36,10 @@ public class SomeCodes {
public static final Gson gson = new Gson();
public static final ConfigFile config = new ConfigFile();
public static String GetDateTimeString(){
return LocalDateTime.now().format(dtf);
}
public static Path GetLogsPath(){
return Path.of(currentDirectory, "logs");
}
@@ -288,7 +291,7 @@ public class SomeCodes {
public static String[] MakeArray(String... args){
if (args!=null && args.length>0){
List<String> ll = new ArrayList<String>();
List<String> ll = new ArrayList<>();
for(String x : args){
if (ValidString(x)) ll.add(x);
}