Excalidraw-Obsidian 2.0.19: PDF Cropping

Zsolt's Visual Personal Knowledge Management
2 Feb 202410:08

Summary

TLDRThe video demonstrates new features in Excalidraw for Obsidian that allow cropping images and PDF pages directly within documents. It shows how to launch the image cropper, make selections, customize backgrounds, save cropped images to specified folders, and round image corners. The presenter explains how cropped images retain links to their original source documents for reference. They emphasize how the enhanced connectivity through backlinks and context makes this a particularly valuable feature for knowledge management and note taking. Overall, the video highlights innovative capabilities to incorporate visuals into notes while maintaining their relationships to source material.

Takeaways

  • 😀 When cropping images from a PDF in Obsidian, the new Excalidraw feature retains the connection to the original PDF source
  • 📷 The cropped image can be clicked to open the original PDF at the exact page the image was captured from
  • ✂️ The image cropping feature allows flexible selections - drag to crop, mask parts out, adjust corners etc
  • 🖼️ Cropped images can have transparent backgrounds visible in Obsidian using custom CSS classes
  • 📁 A dedicated folder can be set to store all cropped image files separately
  • 🔖 A custom file name prefix can be set for cropped images
  • 🌆 Images embedded in Obsidian notes can now have rounded corners easily applied
  • 📎 When referencing a PDF page to crop, copy a section link to that page for accurate context
  • 🖥️ The cropping works similarly across Canvas, Markdown and Excalidraw in Obsidian
  • 🎯 Overall the cropping feature enables easy capture of images from PDFs while retaining source context

Q & A

  • What does the speaker do when he wants to capture an image from a PDF document in Obsidian?

    -The speaker starts the screen capture tool, selects the image, presses paste, and now has the image in his notes. However, this method disconnects the image from its original source in the PDF.

  • How does the extended image cropping feature in Excalidraw work for PDF documents?

    -When cropping a PDF document in Excalidraw, the speaker can press Ctrl/Command+P to open the image cropper, then drag to select the desired area of the page to crop. The cropped image retains a link to the original PDF location.

  • How can you open a PDF document to a specific page when referencing it from an Obsidian note?

    -Add a hash tag followed by page equals and the page number. For example, #page=9 will open the linked PDF document to page 9.

  • What are two ways to make the cropped text from a PDF more readable in Excalidraw?

    -You can click on the cropped image and change the background color to white or another color. Or, modify the CSS classes for the image to set a background color.

  • Where does Excalidraw save the separate crop files by default?

    -The crop files are saved by default in a subfolder called 'attachments' under the current folder, unless you specify a different crop file folder in the Excalidraw settings.

  • How can you set a file name prefix for cropped images in Excalidraw?

    -In the Saving and File Name settings section, add your desired cropped file prefix. For example, add 'C' or 'cropped_' as a prefix.

  • What is the new image feature demonstrated at the end of the video?

    -There is now an option to add rounded corners to images in Excalidraw. Just click the 'Rounded Corner' button in the image properties.

  • Why does the speaker think the PDF cropping feature is so useful?

    -Because it allows easily cropping images and text while retaining links to the source PDF. He has found himself using it often since implementing it.

  • What naming convention does the speaker suggest to reconnect a cropped image with its original PDF source?

    -He suggests using a naming convention to give the cropped image a name that references back to the source PDF. However, he says this is not a great solution.

  • How could you customize the background color for cropped PDF images?

    -In the image properties, modify the CSS classes field to apply your own class with custom styling, like a yellow background color.

Outlines

00:00

📘 How to capture images from PDFs in Obsidian

Paragraph 1 explains how to capture images from PDF documents in Obsidian using the Excalidraw image cropping feature. It allows cropping a section of a PDF document, embedding it in your notes with a link back to the original source page. This retains context and connection to the original document.

05:00

💡 Tips for working with cropped PDF images

Paragraph 2 provides tips for working with cropped PDF images in Excalidraw. It shows how to change background color for clarity, use custom CSS classes to define background colors, and refresh links to apply CSS. It also covers the crop file folder setting to save copies separate from original PDFs.

10:03

👋 Recap and new rounded image corners

Paragraph 3 concludes by recapping the PDF cropping feature and its usefulness. It also shows a new capability to round the corners of images for visual appeal.

Mindmap

Keywords

💡cropping

Cropping refers to selecting and extracting a region or portion of an image. In the video, the presenter demonstrates how to crop images and PDF pages using the Excal Draw image cropping feature in Obsidian. This allows capturing and embedding parts of PDF documents into notes while retaining links to the original source. For example, the presenter crops an image from a PDF document and embeds it into a markdown note.

💡PDF documents

PDF documents are mentioned frequently as the sources being cropped. The presenter shows how to crop images and sections from PDFs loaded in the PDF reader or embedded into notes. The cropped images retain links to the original PDF location and page, allowing easy reference. For instance, a double click on the cropped image opens the PDF document on the corresponding page.

💡markdown notes

Markdown notes refer to notes created in Obsidian using markdown formatting. The presenter demonstrates embedding cropped images and PDF sections into markdown notes in Obsidian. This allows adding visual references from PDFs while writing notes. For example, a cropped diagram from a PDF is embedded into a markdown note explaining the concept.

💡image cropper

The image cropper is the interface used to select and crop regions from images and PDFs. Invoked through a command, it allows customizing the crop boundaries. Additional features like masks and backgrounds can also be configured. Once done cropping, the image is embedded into the target note.

💡embedded images

Embedded images refer to images cropped from PDFs and embedded into notes while retaining links to the original source. This embedding happens automatically when cropping through Excal Draw. The benefit is being able to reference back to the PDF context when needed. The presentation shows examples of embedded images across note types.

💡links to source

The embedded cropped images contain links that open up the original PDF document and page that the image was cropped from. This helps maintain connection to the source context from where the image was extracted. The presenter emphasizes and demonstrates this capability in Obsidian with Excal Draw enabled.

💡CSS classes

CSS classes allow custom styling for the cropped image backgrounds. Since PDFs can have transparent backgrounds, the cropped images may be hard to read. Applying CSS classes can add colored backgrounds. The presenter shows the image properties pane where such CSS classes can be added and defined.

💡rounded images

A new capability demonstrated is applying rounded corners to images. This is done through the image properties pane in Obsidian Excal Draw. It helps create more visually appealing embeds within notes. The presenter inserts and rounds an image as an example of this feature.

💡cropping files

Cropping files refer to the extracts created from the source PDF or image when cropping. They can be saved to a dedicated folder specified in the settings. This helps organize the attachments generated during cropping. The presenter walks through the setting to define a crop file folder location.

💡crop prefix

A crop prefix can be defined in the file name and saving settings. This prefix gets added to the file names of all cropping extracts generated from the source images and PDFs. For instance, adding a 'C' prefix was demonstrated. The prefix improves identification of cropping files.

Highlights

ExcalDraw's image cropping feature now supports PDF documents

To crop a PDF, press Ctrl/Command+P, type crop, and drag to select the area to crop

Cropped images retain links to the original PDF source

Double click a cropped PDF image to open the original location

To capture an image from a PDF, copy the section link and paste into notes

The cropper allows masking parts of images and changing backgrounds

Set CSS classes to define background colors for cropped PDF images

Refresh links for CSS classes to take effect after embedding images

Set a folder to save ExcalDraw crop files separately from attachments

Add a file name prefix for crop files using the saving and file name setting

Rounded corners can now be applied to inserted images

ExcalDraw's cropping is a powerful feature for capturing images from PDFs

Retained links allow tracking images back to their source context

Recommend trying the new cropping features out for PDF annotations

This is a useful addition for working with and referencing PDF content

Transcripts

play00:00

hey everyone jol here so when you're

play00:02

reading a PDF document in obsidian what

play00:06

do you do when there's an image that you

play00:08

want to capture for your noes well what

play00:11

I do is I start the screen capture tool

play00:14

I select the image and then I press

play00:16

paste and I have my image

play00:19

here this solution is only sort of good

play00:23

the main problem with this solution is

play00:26

that this image has now lost its

play00:29

connection to it original source of

play00:31

course I can use a naming convention I

play00:35

can give this image a name and with that

play00:38

I can reference back to the source but

play00:40

it is not really such a good

play00:43

solution so I've extended the exol draw

play00:47

image cropping feature to support PDF

play00:50

documents this is how it works so for

play00:54

example now I'm on canvas but I'm going

play00:56

to show you the same VI an obsidian an

play01:00

markdown note and with exol draw as well

play01:04

so here I'm now in a canvas node and I'm

play01:08

reading this PDF document I'm on this

play01:11

active page and I want to capture this

play01:13

image so all I need to do is press

play01:16

control or command p and type in crop

play01:20

and with this the image Cropper opens

play01:23

and I can just simply drag from the top

play01:27

and drag from the bottom I can also ra

play01:30

from the side to make this image exactly

play01:33

the size I want and with that I have the

play01:36

cropped image here now if you're

play01:38

interested the Cropper has additional

play01:40

features so I recommend you watch my

play01:43

other video on cropping for example I

play01:45

can mask out parts of the image but

play01:49

we'll talk about that in the other video

play01:52

what I want to show you now is the big

play01:55

difference here is when I double click

play01:57

on this image then this menu opens and

play02:01

here I can choose to either open the

play02:03

Cropper so I can change the cropping of

play02:06

this image or I can open the original

play02:10

location of the file so when I click

play02:13

here then my PDF opens on the page from

play02:17

which I cropped the image now let me

play02:20

show you how this feature Works in a

play02:23

markdown note so let's create a new

play02:27

markdown note and I'm just going to add

play02:30

how to read a paragraph here so what

play02:34

doesn't work is if I read a document

play02:37

here I don't know which page you're on

play02:40

so that unfortunately doesn't work what

play02:43

does work is when you're on a page you

play02:45

can add hash page equals for example 9

play02:50

and with this the PDF document opens on

play02:54

page nine so you can see the page number

play02:57

right there that's the page number now

play02:59

if I stand with the cursor on this line

play03:02

so this line is the active line I can

play03:05

again open the command pallet and choose

play03:08

crop and mask image and it will take

play03:12

this page and open it in the Cropper now

play03:15

in the Cropper I can again just simply

play03:18

do my cropping like this and when I'm

play03:22

done then getting back to my document

play03:25

you can see that it's now the image and

play03:28

the image even has a link reference at

play03:31

the bottom but of course if I double

play03:33

click on the image then I can still open

play03:37

the original file as well just as in

play03:40

case of

play03:42

canvas now to show you maybe a better

play03:45

way of achieving this the way I would do

play03:48

this is I would read a PDF document in

play03:52

the PDF reader like here and when I get

play03:55

to a page where I have an image that I

play03:58

want to capture I would simply select a

play04:02

part of the text from this page so I'm

play04:04

now in the PDF reader I select a part of

play04:07

the page and I copy a link to the

play04:11

section like this and then I head back

play04:14

to my markdown document and I simply add

play04:17

this link to the section and after

play04:20

adding the link to the section I can

play04:22

open the Cropper and it will open that

play04:26

section and again I can simply do my

play04:30

cropping so you will see that I can crop

play04:33

the image like this and like this now

play04:37

what you will also

play04:39

notice is this is hard to read or

play04:42

sometimes hard to read so some of the

play04:44

PDF documents have a transparent

play04:47

background and there are two things that

play04:50

it's good to know that you should know

play04:52

about this first of all if you find this

play04:55

hard to read you can always click here

play04:58

and change the background

play05:00

maybe to White and then the text will be

play05:03

visible very nicely the other thing I

play05:06

want to show you is here if I open the

play05:10

properties panel you will see that I

play05:13

have a special property here CSS classes

play05:18

excal draw crob PDF page so if I remove

play05:23

this then what you will see is when this

play05:26

image refreshes so I will need

play05:30

to change this and change it back then

play05:34

this image will not have a background

play05:36

color so you might or might not want

play05:38

this what I want to highlight is here

play05:42

you

play05:43

can create or Define your own CSS

play05:47

classes so if instead of white you want

play05:50

a yellow background or whatever other

play05:52

color for the page color of the PDF you

play05:56

can change the CSS classes here here the

play06:00

only thing is you need to refresh the

play06:03

link so the CSS class is applied when

play06:08

the image is

play06:10

embedded and then finally let me show

play06:13

you how this works in exol draw it works

play06:16

pretty similar to the previous ones so

play06:19

I'm going to add how to read a paragraph

play06:22

as an embeddable so now I have the how

play06:27

to read a paragraph document in embedded

play06:30

into exol draw I

play06:33

can oops I can click on this and I can

play06:37

scroll to the part that I want to crop

play06:40

so I'm here now if I press crop image

play06:45

then this page opens and everything

play06:47

works similar so I can just simply crop

play06:51

this page like this and when I'm done

play06:53

with cropping then I can turn back to

play06:57

xolor draw my image is going to get

play07:00

updated and here you go so I can now

play07:04

close this and I can navigate with this

play07:08

image there are two more small things

play07:12

that I want to show you regarding

play07:14

cropping and then there's one more thing

play07:17

I want to show you as a new feature in

play07:19

this version of excal obsidian so first

play07:23

about cropping there are two new

play07:25

settings that you can use setting number

play07:28

one is under basic here there's a crop

play07:34

file folder so the way exol draw crops

play07:37

an image is it creates an image Cropper

play07:42

so the image remains your PDF file

play07:45

remains your PDF file so the cropping

play07:48

will always read the PDF and create the

play07:52

crop out of that or the cropped image

play07:55

out of that but you might want to save

play07:58

the ex call it draw cropping file to a

play08:01

specified folder so if you set a folder

play08:04

here then the cropping file will go to

play08:07

that folder if not then the cropping

play08:10

file will follow your files and links

play08:14

settings so it's in my case it's going

play08:17

to go in a sub folder under the current

play08:20

folder called attachments so that's your

play08:23

option that you can define a dedicated

play08:27

folder for your crop files the other

play08:31

setting I added is under saving and file

play08:34

name and here you can add a prefix for

play08:39

the crop file I now have cropped but

play08:42

maybe you just want to add C or whatever

play08:46

if this is empty then cropped will be

play08:49

added or used so you can add an

play08:52

underscore if you want to leave this

play08:55

sort of empty that's another setting and

play08:59

then finally the new feature I wanted to

play09:01

show you is just a small new feature so

play09:04

I'm going to insert an

play09:08

image and I'm going to choose my lovely

play09:11

monkey here so the new feature is now

play09:14

you can round the corner of images so

play09:17

here in the properties I can click

play09:21

rounded corner and then the image will

play09:24

have a rounded corner so if you like

play09:27

rounded images now with an image you can

play09:31

easily achieve that so that's all I

play09:34

wanted to show you today I think this

play09:37

cropping feature is really powerful you

play09:41

can crop and mask images you can crop

play09:43

and mask PDF Pages PDF Pages retain

play09:47

their links to the original source and

play09:52

overall since I've implemented this

play09:55

feature I'm amazed at in how many cases

play09:58

I've used it this is such a cool feature

play10:02

I recommend you try it out and you play

play10:04

with it enjoy thank you

Rate This

5.0 / 5 (0 votes)

您是否需要英文摘要?