forked from Cavemanon/cavepaintings
Video transcoding extension, currently just supports changing the video container
This commit is contained in:
11
ext/transcode_video/script.js
Normal file
11
ext/transcode_video/script.js
Normal file
@@ -0,0 +1,11 @@
|
||||
function transcodeSubmit(e) {
|
||||
var format = document.getElementById('transcode_format').value;
|
||||
if(format!="webp-lossless" && format != "png") {
|
||||
var lossless = document.getElementById('image_lossless');
|
||||
if(lossless!=null && lossless.value=='1') {
|
||||
return confirm('You are about to transcode from a lossless format to a lossy format. Lossless formats compress with no quality loss, but converting to a lossy format always results in quality loss, and it will lose more quality every time it is done again on the same image. Are you sure you want to perform this transcode?');
|
||||
} else {
|
||||
return confirm('Converting to a lossy format always results in quality loss, and it will lose more quality every time it is done again on the same image. Are you sure you want to perform this transcode?');
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user