How do i rename a Layer of existing image using python-fu - python-fu

First this is not a replica of How do i rename a Layer using python-fu .
In the linked example the OP asked for a created image. In my case I don't create an image. Instead I want to rename layers of an exisiting Image. My Problem is following: I now the pdb procedures to select and rename the layer, but the procedures accept an image as argument. With gimp.image_list() I get the "Names" of my current open Images but I have no Idea how to create a image variable at this point.

Related

Displaying Image in Qt Ui using MySQL

I am working on a project to display a list of formulas in the ui. I snipped all the formulas in image form and saved them in .png format. Then I stored the name of the images and their path in a mysql database.
Here's an example of what my table looks like.
I tried using listWidget but the formulas could be dragged across ui.
So what would be a better way to display these formulas in an organized manner
Here's what it looks like right now using listWidgets:

How to programatically move/categorize django-filer files?

We use django-filer 0.9.8 for our image uploads. Now we'd like to programatically add some images to the catalog and move them to filter category.
I managed to get the creation and saving of a FilerImage working, but when I check the admin all the images end up in an 'uncategorised' folder in the file management overview.
So I guess I'll have to move the file (the virtual file) but I cannot find any documentation about it. I'd assume I could pass something when I create the image, or move it after saving.
Any ideas? I'm looking at the docs and the source code but I cannot find anything.
FilerImage is just a ForeignKey to File, when you create it you can create also a filer.models.foldermodels.Folder and specify where the File is created.

wxnotebook dynamic image display

I want to display images that I get from a folder in a Wxnotebook. The problem that I don't know how many images is in that folder ( I only have images full path). How can I display images dynamically with wxnotebook?
Thanks for helping.
How can I display images dynamically with wxnotebook?
Here are hint for your homework to be easy
Load Those List from That Directory - See wxDir
Create wxImageList from loaded image see the docs
Assign wxImageList to wxNotebook
Set Page using specific index in image list above

Retrieve CImage Object from raw image data stored in database as blob data type

I am developing an application where in I am storing .png image to database(SQLite3 used), now as per my requirement, I want the image to be displayed with the ListCtrl Items, so what i need is to Create a CImage object from the blob data retrieved from the database. My Current approach is every-time I want to display the picture I have to write the file to Disk and then fetch it to the listCtrl item image, I want to get rid of this overhead process. All the experts out their need your help. Please point me to the right direction. I am using VS2010 and MFC for my application development, Database used SQLITE-3.
Thanks in advance.
Copy the PNG in a memory block (HGLOBAL).
Use CreateStreamOnHGlobal to get an IStream.
Than use CImage::Load to get it into the CImage object.
There is no need at all to use a disk file.

Sitecore place multiple images from library at once

Working on a project for a client. They have a PDF that has been broken into separate pages as images, and they want to have each of those images appear on a single page - at least 40 images for this one page alone.
So far, I've just been placing them individually. Each time you go to place an image using the rich editor, you start at the media root - and the way the media library has been structured, these images are buried very deep within subfolders. So it takes about 20 seconds of clicking, scrolling, and reading to find each image to place it.
These images are sequential and placed in order in the media library. Is there a way I can select a group of images and just drop them in? There are going to be literally hundreds of these, and it's a huge waste of my (and my client's) time placing images one-by-one.
Going along the lines of what TwentyGotoTen has said, I would:
Structure your images in the Media Library within folders (if you haven't already done so)
Create a sublayout/xsl rendering that contains a repeater to render the images
Add the control to the layout and set the DataSource of that control to the Media Folder
The code should then retrieve all child items from that folder and render as necessary.
You may need the use of the Sublayout Parameter Helper to access the datasource from ascx codebehind.
I'm assuming you just want the images to appear one after the other with nothing else inbetween. Rather than embedding images in rich-text perhaps you should consider creating a multilist field for the images in the template and create a rendering / sublayout to render them.
You can set a more suitable source for the multilist than the media root. This should make it a lot easier to select the images.
Mark van Aalst has created a custom image field that allows to do this a bit easier as well.
Have a read through this. This is also available on Sitecore's Marketplace: Multiple Images Selector
It will allow you to select your images through a multilist field, but it'll show the images as an image field with multiple images.
I think this is pretty much the solution TwentyGotoTen is talking about as well, but shows the thumbnail of the selected images as well.