tecosaur / LaTeX-Utilities

An add-on to LaTeX Workshop that provides some features that go beyond the bare essentials
MIT License
496 stars 29 forks source link

Image placing and cropping tool #147

Open ghost opened 4 years ago

ghost commented 4 years ago

Feature Request

Is your feature request related to a problem? Please describe.

For my scientific work I often use .png images or at least some included .pdf files with graphic elements in it. To place that items correctly in my document I often have to crop them (within \includegraphics environment). My workflow is that I change the crop distances, build it, look at the result and do the same thing again. Especially with multiple images next to each other it is very time consuming.

Describe the solution you'd like

I would appreciate it to have at least some preview (like tikz-preview) or some tool where you can adjust the crop settings with the mouse.

Describe alternatives you've considered

The only alternative is to crop the images with tools like Gimp or Photoshop. But that doesn't work for .pdf-files.

Additional comment

I don't know how strict you are with pull-requests. I program for a few years also with Javascript and one of my new projects use react, nodejs etc. - maybe I can implement it by my own. Do you have a nice tutorial to get in touch with the VS-Code plugin environment?

tecosaur commented 4 years ago

That sounds nice if a bit beyond what the current extension does. I can't see myself doing this, but if you make a PR I'd be happy to take a look :smiley:. For tutorials/etc the best bet if probably https://code.visualstudio.com/api/references/vscode-api + examples you can find online.

ghost commented 4 years ago

I will see how time consuming that is. I think it is a bit of a challenge, but thats what I am looking for ;)

tecosaur commented 4 years ago

Hi Max, just thought I'd update you on the state of this extension.

I'm afraid that due to me moving to another editor I'm no longer maintaining this extension :slightly_frowning_face: (sorry to disappoint), but don't let that from stop you from making this happen :slightly_smiling_face:.

I'd happily answer questions on the internals of this extension, and I'd be thrilled to accept a PR on this. I'm just no longer actively developing this, not completely abandoning it :)

ghost commented 4 years ago

Hey,

no worries, you did a great job on this project. I already started developing this feature, but because of my job (medical engineer) and also my master study in parallel, I hadn't much time the last weeks. I imho have so many great ideas, but no time to make them happen, sadly :cry: Furthermore, I am not a pro software developer, so there are many other things like CAD, 3D-printing, designing, electronics and so on to do.

Because I am using vscode, latex and the plugins also for my study, my upcoming master thesis and my PhD next year, I will for sure make this feature happen. It is only a matter of time.

Btw, I don't really know how you and all the other developers here at github have so much time, for creating all this amazing stuff. Maybe you are not workaholics and use your spare time or you are workaholics and do nothing else :smile:

Best Max