Skip to content

Commit d77ed40

Browse files
Revert "Test (#1)" (#3)
This reverts commit 21130ec.
1 parent 21130ec commit d77ed40

File tree

9 files changed

+24
-27
lines changed

9 files changed

+24
-27
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- uses: actions/setup-node@v3
1515
with:
1616
node-version: 18
17-
cache: "npm"
17+
cache: 'npm'
1818
- run: npm install
1919
- run: npm run build

.github/workflows/eslint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- uses: actions/setup-node@v3
1515
with:
1616
node-version: 18
17-
cache: "npm"
17+
cache: 'npm'
1818
- run: npm install
1919
- run: npm run lint

.github/workflows/prettier.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- uses: actions/setup-node@v3
1515
with:
1616
node-version: 18
17-
cache: "npm"
17+
cache: 'npm'
1818
- run: npm install
19-
- run: npx prettier --check .
19+
- run: npm run prettier:check

.github/workflows/typescript.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- uses: actions/setup-node@v3
1515
with:
1616
node-version: 18
17-
cache: "npm"
17+
cache: 'npm'
1818
- run: npm install
1919
- run: npm run type-check

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
12
# 🖼️ Image to SVG Converter
23

34
A simple web app that lets users upload any image (PNG/JPG) and instantly convert it into an **SVG** file.
4-
Users can **preview**, **copy the SVG code**, or **download the file** to use anywhere.
5+
Users can **preview**, **copy the SVG code**, or **download the file** to use anywhere.
56

67
---
78

89
## ✨ Features
9-
1010
- 🚀 Upload images (PNG, JPG, JPEG)
1111
- 🔄 Convert raster images into scalable vector graphics (SVG)
1212
- 👀 Live preview of the generated SVG
@@ -17,21 +17,19 @@ Users can **preview**, **copy the SVG code**, or **download the file** to use an
1717
---
1818

1919
## 🛠️ Tech Stack
20-
21-
- **Frontend:** React / Next.js
22-
- **Vectorization:** [ImageTracer.js](https://github.com/jankovicsandras/imagetracerjs)
23-
- **Styling:** TailwindCSS (or your chosen framework)
20+
- **Frontend:** React / Next.js
21+
- **Vectorization:** [ImageTracer.js](https://github.com/jankovicsandras/imagetracerjs)
22+
- **Styling:** TailwindCSS (or your chosen framework)
2423

2524
---
2625

2726
## 📦 Installation
2827

2928
Clone the repository:
30-
3129
```bash
3230
git clone https://github.com/shitanshukumar607/imgToSvg.git
3331
cd imgToSvg
34-
```
32+
````
3533

3634
Install dependencies:
3735

@@ -60,12 +58,14 @@ Open [http://localhost:3000](http://localhost:3000) to view the app in the brows
6058

6159
## 📸 Screenshots
6260

61+
62+
6363
## 🔮 Future Improvements
6464

65-
- ✏️ Basic SVG editor (resize, recolor, simplify paths)
66-
- 🎨 Presets (outline only, reduced colors, full color)
67-
- 📂 Support batch uploads
68-
- 🤖 AI-assisted vectorization for complex images
65+
* ✏️ Basic SVG editor (resize, recolor, simplify paths)
66+
* 🎨 Presets (outline only, reduced colors, full color)
67+
* 📂 Support batch uploads
68+
* 🤖 AI-assisted vectorization for complex images
6969

7070
---
7171

@@ -79,4 +79,4 @@ Contributions are welcome!
7979
4. Push branch (`git push origin feature-name`)
8080
5. Create a Pull Request
8181

82-
---
82+
---

app/api/upload/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ export async function POST(req: Request) {
4848
resolve(result);
4949
});
5050
uploadStream.end(buffer);
51-
},
51+
}
5252
);
5353

5454
const svgString = await cloudinaryToSVG(cloudinaryResponse.secure_url);
5555

5656
return NextResponse.json(
5757
{ url: cloudinaryResponse.secure_url, svg: svgString },
58-
{ status: 201 },
58+
{ status: 201 }
5959
);
6060
}

app/globals.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@
157157
border: 2px solid transparent; /* creates padding */
158158
background-clip: padding-box;
159159
box-shadow: var(--sb-glow);
160-
transition:
161-
background-color 150ms ease,
162-
transform 150ms ease;
160+
transition: background-color 150ms ease, transform 150ms ease;
163161
}
164162

165163
*::-webkit-scrollbar-thumb:hover {

lib/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { clsx, type ClassValue } from "clsx";
2-
import { twMerge } from "tailwind-merge";
1+
import { clsx, type ClassValue } from "clsx"
2+
import { twMerge } from "tailwind-merge"
33

44
export function cn(...inputs: ClassValue[]) {
5-
return twMerge(clsx(inputs));
5+
return twMerge(clsx(inputs))
66
}

test.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)