Skip to content

Commit

Permalink
Simplify screenshot quality handling
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue committed Dec 6, 2024
1 parent 2ab5116 commit fb86463
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,8 @@ export default defineComponent({

const format = screenshotFormat.value
const mimeType = `image/${format === 'jpg' ? 'jpeg' : format}`
const imageQuality = format !== 'png' ? screenshotQuality.value / 100 : 1
// imageQuality is ignored for pngs, so it is still okay to pass the quality value
const imageQuality = screenshotQuality.value / 100

let filename
try {
Expand Down

0 comments on commit fb86463

Please sign in to comment.