How to upload image into the cell of spreadsheet using PHPSpreadSheet? - phpspreadsheet

I'm working on a project for my customer who requested an ability to generate Excel spreadsheets containing images. Not links to the images, but full-sized images implemented directly in the spreadsheet.
Is PHPSpreadSheet capable of doing this? I have read the documentation, but the closest match I found is https://phpspreadsheet.readthedocs.io/en/latest/topics/recipes/#add-a-drawing-to-a-worksheet - though I'm not sure if in such case drawing = image.

Related

Automatically reduce thumbnail image size on Quarto website

I've set up a website using the Quarto blog template, which includes a list of several posts and thumbnails for each of the posts. By default the thumbnails are taken from the first image included the post, if there is no image: specified in the YAML-like section at the start of the post's .qmd file. This works great, but many of the images I use in are very high definition (thousands of px across) – this is what I want in the posts themselves, but means that even on fast internet the website's homepage can take a while to load all the images.
Is there any automatic way to resize each of the thumbnail images so they're at most a few hundred px across?
If there isn't already a simple way to do this, I could write a script that found the thumbnail image for each post, created a resized version, saved it to the directory for the post, then specified that thumbnail as the image: for the post – I think I could get that to run using the pre-render: project option. But thought it worth checking there isn't already an easier way to achieve the same thing!

Connect Google Sheet into Photoshop

I am hardly finding a way to connect or live-import data from Google Sheet in Photoshop.
There are several way to edit or replace some text layers, or even upload the PSD file into online real time editors, or using Adobe API, but is not exactly what I am looking for or at least I am struggling with.
This is the scenario:
here my Photoshop Artboard
and here my Google Sheet
what I want to do is to connect each layer from artboards' Photoshop with a defined cell/position in Google Sheet in order to get a live update when sorting or updating those cells. The cells and columns could be more than 10.000 in what I want to do.
And perhaps.. the struggling things is that I want to keep this flow in the Adobe/Photoshop application.
Do you have anything that I need to check or have knowledge to clearify this situation?
Many thanks!
Yes, in principle...
Yes, it's possible to load in a .CSV into photoshop and modify layer data, such as text.
Doing it live? This post has more info.
"connect each layer from artboards' Photoshop with a defined
cell/position"
Have you created a Photoshop document with 10,000 layers? You haven't really explained what you will be doing with the Google Sheet, so I can't help you further.
Try a prototype with smaller data sizes first - see if you can get that to work.

Read document (.doc) with images

I need to read document texts with ruby and then perform some operations on their contents. Some of these documents include images that I need to upload to my server and later show the data with images. Any idea on how I can achieve this?
I'm thinking of using doc_ripper/docsplit, but ripper doesn't talk about images extraction, and docsplit seems to only take a screenshot of the entire page.
If this is not possible, I am fine with a way to recover the image file name in the right position, so then I can extract the file and upload it manually.

Querying, Editing and removing image metadata in ios

OK, I'm new to IOS development but have a decent amount of programming experience so thought it would be fairly straightforward to pick up.
I'm creating a photo app that will display all of the users images (or take new images using camera) and then display them in galleries based on metadata tags.
I've spent a considerable amount of time searching for the best approach but seems nothing is that suitable, I need to be able to easily access the tags as they will be used as criteria for querying the database and populating the galleries.
The problem is that I want to be able to add extra tags to an image or multiple images at any time without having to parse XMP data and storing an entirely new image.
From what i've found so far there should be ways to add tags to my image file using either XMP or EXIF data to store extra strings but they seem to be quite long-winded, I was considering just making a custom data type that would hold an image and an array of strings for the tags but this doesn't seem logical if there is already a specific structure within the image to store such metadata.
Alot of people have mentioned using
WriteImageDataToSavedPhotosAlbum or
CGImageDestinationSetProperties
Ultimately I would just like to know if anybody can clarify how I should access, edit and display the xXMP or EXIF data in my app or just create my own (shoddy looking) data structure that would essentially be image representation + string array of 'tags'
You are looking at using the ALAssetsLibrary framework. This is quite a good tutorial which I have used before :
http://www.altdevblogaday.com/2011/05/26/getting-metadata-from-images-on-ios/

What is the best way to edit google docs using the API?

I'd like to be able to edit any kind of Google docs using the API from Google App Engine.
My goal is to lose as little information as possible when editing the document. The edits are fairly simple like replacing some words.
Document
To edit them, I'm doing an export in HTML and importing it again. But we are loosing some information like notes. There is also an issue with the title, the size before each title increase at every new update, so I have to reset some css. Is there is a better way of editing docs ?
Spreadsheet
There is the spreadsheet API, so I think I'm covered.
Presentation
I did not find a format that I could export and import again. The only one seems to be powerpoint. But powerpoint files cannot be easily edited.
Drawing
I did not find a format that can be both exported and imported. I tried with SVG, but svg cannot be imported back.
Document
PDF offers you the best fidelity in and out of Google Docs, without the hassle of proprietary or complicated formats like MS Word files.
Spreadsheet
Only proprietary or complicated formats guarantee fidelity here of things like cell color. The Spreadsheets API only allows data to be updated, but not formatting.
Presentation
You are correct, PPTX is the only format that can go both in and out of Google Presentations.
Drawing
You are correct, there is no import format that can go both in and out of Google Drawings.

Resources