fix: misc

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-27 13:31:08 +01:00
parent a26d2b9d65
commit 464ca3e3d3
3 changed files with 20 additions and 24 deletions

View File

@@ -22,7 +22,7 @@ export default function Home() {
<Grid width={'80%'} container mt={2} spacing={2}>
{getToolsByCategory().map((category) => (
<Grid key={category.type} item xs={12} md={6}>
<Card>
<Card sx={{ height: '100%' }}>
<CardContent>
<Link
style={{ fontSize: 20 }}

View File

@@ -40,7 +40,7 @@ export default function ChangeSpeed() {
.map((_, k) => {
const image = new ImageData(info.width, info.height);
reader.decodeAndBlitFrameRGBA(k, image.data as any);
reader.decodeAndBlitFrameRGBA(k, image.data);
return image;
});
@@ -51,7 +51,6 @@ export default function ChangeSpeed() {
{ loop: 20 }
);
// Decode the GIF
imageDataArr.forEach((imageData) => {
const palette = [];
const pixels = new Uint8Array(imageData.width * imageData.height);
@@ -81,9 +80,8 @@ export default function ChangeSpeed() {
const delay = newSpeed / 10; // Delay in hundredths of a sec (100 = 1s)
const options: FrameOptions = {
// @ts-ignore
palette: new Uint32Array(palette),
delay: delay
palette,
delay
};
gif.addFrame(
0,