Skip to content

Commit 887dee6

Browse files
do formatting
1 parent 60cb402 commit 887dee6

File tree

8 files changed

+25
-23
lines changed

8 files changed

+25
-23
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: 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 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-
21
# 🖼️ Image to SVG Converter
32

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

76
---
87

98
## ✨ 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,19 +17,21 @@ Users can **preview**, **copy the SVG code**, or **download the file** to use an
1717
---
1818

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

2425
---
2526

2627
## 📦 Installation
2728

2829
Clone the repository:
30+
2931
```bash
3032
git clone https://github.com/shitanshukumar607/imgToSvg.git
3133
cd imgToSvg
32-
````
34+
```
3335

3436
Install dependencies:
3537

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

5961
## 📸 Screenshots
6062

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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@
157157
border: 2px solid transparent; /* creates padding */
158158
background-clip: padding-box;
159159
box-shadow: var(--sb-glow);
160-
transition: background-color 150ms ease, transform 150ms ease;
160+
transition:
161+
background-color 150ms ease,
162+
transform 150ms ease;
161163
}
162164

163165
*::-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
}

0 commit comments

Comments
 (0)