# Save image by input name as jpg or to absolute path

**URL:** <https://discourse.processing.org/t/save-image-by-input-name-as-jpg-or-to-absolute-path/8674>\
**Category:** Coding Questions\
**Created:** [February 24, 2019, 2:33am UTC](https://discourse.processing.org/t/save-image-by-input-name-as-jpg-or-to-absolute-path/8674 "2019-02-24T02:33:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [February 24, 2019, 3:09am UTC](https://discourse.processing.org/t/save-image-by-input-name-as-jpg-or-to-absolute-path/8674/3 "2019-02-24T03:09:12Z")

</div>

> [@angelman](#):
>
> And also to a folder in the sketch folder rather than the sketch folder itself.

Pass the filename’s String as an argument for **dataPath()**: 📂

`partialSave.save(dataPath(line));`

---

_[View the full topic](https://discourse.processing.org/t/save-image-by-input-name-as-jpg-or-to-absolute-path/8674)._
