Programming :: PHP Booleans - Print Draw The First Image From A Function Then Hide The Rest Of The Images Using 'display: None'

Jul 29, 2010

I have this function that is supposed to print draw the first image from a function then hide the rest of the images using 'display: none' however for some reason the boolean test does not seem to work on one of my servers however it works on another, is there some php.ini setting I am missing or can you see any issues with the following code:

[Code]....

View 1 Replies


ADVERTISEMENT

Programming :: First Image Will Display On The Page, And When A User Puts Their Cursor Over It, Then It Will Load Image 2?

Nov 24, 2010

I have just exported 3 png files out of gimp for a html document I'm working on right now, and they are all almost the same, except I need each to load when the user does something. So the first image will display on the page, and when a user puts their cursor over it, then it will load image 2. When they press it, it loads image 3.

View 1 Replies View Related

Programming :: Print Images From Command Line At A Specific Size

Jan 7, 2010

I have a requirement to print images (two to be precise) from the command line of a given size and without losing too much quality.

So, I may have two images, a.jpg and b.jpg which may be 4x4" and 6x4" respectively (the sizes may vary). I need to be able to print both these on a single sheet of paper (one under the other) at a given size for each - so a may be 2x2" and b may be 3x2" - the aspect ratio will always be maintained (or as near as possible!)

I am currently doing this a very messy way (because I don't know any other way!!) - basically I am converting the picture to a given size using a set density using convert and then concatenating the two using montage.

Here is part of my script:

Code:

Don't worry too much about the case statement at the end - that is just to be able to select to print either A, B or A and B.

The issue with this is that is doesn't work great if the aspect ratio is not maintained perfectly and also, it loses quite a lot of quality on the print.

I have a very old windows app which I wrote years back in VB (o dear! ) which does the same thing and the quality is fine (I am running it through wine). I want it to be command line though because I want to run it as part of other scripts etc.

View 4 Replies View Related

Programming :: Display Images Whilst Running Other Functions?

Nov 4, 2010

So I'm teaching myself some scripting to try and create a fairly simple photobooth type affair... I've got gphoto2 playing fairly nicely with my canon, and imagemagick taking that output and rearranging it to a vertical format...

EDIT:
*smacks forehead*

Fairly simple to do what I needed initially: Code: feh -FZ -D 1 --cycle-once $COUNTDOWN & sleep 2 &
feh -FZ -D 20 --cycle-once $SMILE This shows a countdown from 5 to 1 in images and $SMILE is big that says 'smile'

So my question is thus... (fairly basic but I can't get my head round the use of & and sleep in this context) what's the best way to call my gphoto instructions (or a script with them in) mid way through the above code?!

'feh code'
sleep 5
'gphoto code'

this kind of thing seems like the way, but the'sleep 5' and 'gphoto code' doesn't start until feh is finished in this case?

View 1 Replies View Related

Programming :: Efficient Way To Display JPEG Images In Browsers?

May 12, 2010

What is the efficient way to display jpeg images in browsers using c programming. Any links or any sample code.

View 6 Replies View Related

Programming :: GTK - Load Image Or Display In Window

Jan 11, 2010

I am trying to write a small gtk+-2 program to display whatever image it is given and I was wondering if anyone out there has done something similar. I am not too familiar with writing programs for gtk and its been a while since I've fiddled with C. I went over the tutorial for gtk and it seams pretty easy to get a window to display, but I do not see anything that refers to loading an image or displaying it in the window. I am wondering if this can be done purely with gtk or will I need to use some type of image library like imlib2?

View 3 Replies View Related

Fedora Security :: Image An Entire Luks System Encrypted Volume And The Rest Of The Used HDD, The MBR And /boot Partition?

Jan 21, 2009

I need a FREE solution that can image an entire Luks system encrypted volume and the rest of the used HDD, the MBR and /boot partition. Note: MBR and /boot are not encrypted. Note 2: I want to be able to restore entire drive from image with only a couple of steps. Note 3: Destination HDD space is a factor. Image file must be compressed and the image file must be around 40 to 50 GB or less. The smaller the image the better.

I have used clonezilla live cd before but not for encrypted volumes. I know you can install it in Linux. But, I don't know how to configure it after installation. I would be very happy if someone could tell me how to configure clonezilla in Fedora. How to guides are also welcome. I have one more question. If I image the encrypted volumes and all the stuff I mentioned above while logged in to Fedora, and I restore the drive from the image, will the recovered drive still be encrypted?

View 8 Replies View Related

General :: Limit Video Output To A Section Of A Display And Leave The Rest Blank

Feb 22, 2011

The video projector I have to use this week projects an image too large for its screen and spills over on every side.

Fixing the physical setup is not possible or at least unlikely for the moment: the only solution is to carefully resize and position windows so that they display in the visible part of the screen - using full-screen mode is out.

Is there a way around this via software, using xrandr for example?

# xrandr doesn't have a padding option...xrandr --output VGA1 --mode 1360x768 --left-of LVDS1 --padding 200

View 1 Replies View Related

Debian :: Print An OpenOffice Or LibreOffice Calc With An Image And Text, The Image Is Not Printed (the Space Is Blank)

May 11, 2011

I have a Canon iR3570/iR4570 PXL, and installed the driver CQue 1.0 TCP/IP Queue from Canon webpage.

The problem:
- if i try to print an OpenOffice or LibreOffice Calc with an image and text, the image is not printed (the space is blank).
- if i try to print an OpenOffice or LibreOffice Calc with just an image, it's printed great.
- if i try to print an OpenOffice or LibreOffice Impress, the images are not printed but the text is printed great.

[Code]..

View 3 Replies View Related

Programming :: Draw A Circle In C++ Without Making Use Of BGI

Apr 10, 2010

How can one draw a circle in c++ without making use of BGI.

View 4 Replies View Related

Programming :: G++ - Draw On The Screen In X Windows Using C++?

Jun 9, 2011

I am looking for a way to draw on the screen in X Windows using c++, the GNU g++ compiler. I don't want to mess with requirements so just how to draw in x windows. Can it be done with g++ or is there something else I need to use.

View 8 Replies View Related

Programming :: Draw To Screen Without Using A GUI / Xwindows?

Mar 10, 2010

I am very new to Linux and I hope someone on here can provide some help.

Goal:
I am am developing an embedded application on Linux 2.6 that will hopefully run without a GUI. There will be no user input just simply displaying information to the user in a graphical form. I will be drawing the screen in C and outputting this to the display.

Problem:
I don't know how to draw to the display? From reading and talking with others, I think I can write to the frame buffer and that will output to the display, but I am not sure this is rite. If it is correct, can someone explain how this is done? Is there another way to draw to the screen without using the windows API?

View 11 Replies View Related

Programming :: QSplashScreen And QPainter - Draw Shapes And Gradients

Apr 7, 2011

Following on from my issues with QSplashScreen, I am wanting to investigate the QPainter class(es) some more.

Code:

How would I best achieve this:

- Draw some shapes and gradients with QPainter/QPen etc
- Create a splash screen out of it
- Display SplashScreen.
I cannot find anything that doesn't involve

Code:

I am comfortable making splash screens out of images, but now I want to try drawing one myself.

View 2 Replies View Related

Programming :: How Can A Friend Function Access A Public Function From A Base Class

Nov 16, 2010

Code:
#include <iostream>
using namespace std;

[code]...

View 1 Replies View Related

Programming :: Passing Data From Interrupt Handler Function To Tasklet Function?

May 18, 2010

I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.

View 2 Replies View Related

Programming :: Utility That Draw The Graph Or Flow Chart Of An Application?

Oct 28, 2010

Does any one know any software or utility that draw the graph or flow chart of an application (if application code is on multiple files)?

View 1 Replies View Related

Fedora :: Print Images From Context Menu

Sep 21, 2010

I have special permission from the management to stimulate my colleagues to learn Linux - er, Fedora. So I'm dual booting a few machines for them to toy around with. However, all of the popular things of course have to work easily, otherwise there's no convincing them..Almost everything has been arranged, except for an easy way to bulk-print pictures onto A4. I have probably missed it but google doesn't help, this forum doesn't give me too much that I can find.

I did find gpp (Gnome Photo Print) but that is still too complicated. I need to be able to either get it directly from the nautilus context menu, or set the gui so that this app is automatically used when viewing images in a memory card. And then it has to be easy to print.

View 5 Replies View Related

OpenSUSE Hardware :: 11.4 KDE 4.6 - All Images Print Inverted - White On Black

Mar 22, 2011

Just updated to OpenSuSE 11.4 with KDE 4.6

Code:

When I print to my HP LaserJet 1020 - which has worked fine since OpenSuSe 10.x to OpenSuse 11.3, any images print inverted.

For example, what is white in the image is printed black, and what is black in the image is printed white. When printing a document from LibreOffice, text on the same page as the image prints correctly.

I've checked that this is happening when printing images from LibreOffice, Okular, and Gimp, and tried it with PNG, TIF, and GIF image formats.

However, when I open HPLIP and send a test print through, it prints correctly - text and images all normal.

View 9 Replies View Related

Ubuntu :: Send The Command For The Print-screen Function?

Jun 15, 2011

I am writing an expect script and I want to send the command for the print-screen function. So, what is the command? Alternatively, is there some terminal application which may be well suited to take screen-shots via commands from the terminal or automation scripts?

View 2 Replies View Related

Ubuntu :: Scanner Driver - Print Ok - But Unable To Use The Function

Jul 31, 2011

Trying to find my way around I have an epson px720 all in one printer. It will print ok but unable to use the scanner function I have tried iscan but with no success.

View 3 Replies View Related

Ubuntu :: Hide Grub Menu But Display Splash?

Jan 22, 2011

I would like to hide the Grub menu, but still display a splash screen, and be able to blindly select the items.

View 3 Replies View Related

General :: 5 Cd Images To One Single Image

Oct 20, 2010

i have 5 cd individual iso's of linux.can we convert it to a single bootable dvd image iso file if yes'

View 1 Replies View Related

Software :: Compose One Image Out Of Images

Jul 21, 2009

I have four thousand images. I want to create one thousand images where each of those is tiled with 4 images. This is possible with montage out of the imagemagik package. But it is way too slow.Does anyone know of a high performing program which can compose four images to one image?

View 2 Replies View Related

Ubuntu :: Split Multiple Images From One Image?

Mar 14, 2010

I have a couple of gigs of png files, each with 5-7 photos on each file. Currently I am making 5-7 duplicates of the file, then opening each one in gimp, and cropping and saving each one. kind of time consuming. Does anyone know of a program that will let me split an image into multiple slices?

View 5 Replies View Related

Software :: Compose Two Smaller Images Into One Larger Image

Mar 13, 2009

I've been using python's PIL (import Image in py2.5) and the command line utility ImageMagick to add text to images and compose images. I can't figure out how to get the composed image not to crop. That is, suppose I compose A onto B to create C. A is short and wide, while B is tall and narrow. I'd like C to be tall and wide, but instead it has the same dimensions as B.

The width of A is determined by dynamic text. My current solution is to get the width and height of A and B, and then create a maximally sized image, T, onto which I compose B and then A.I'm just wondering if there is some way to streamline this. Can ImageMagick do this for me? These operations take a non-trivial amount of time.

View 4 Replies View Related

General :: How Would One Display Graphical Images Outside Of X?

Mar 16, 2010

I run X only under duress. For years I have used svgalib clients. I haven't gotten svgalib to work on my new machine (or X, either, a different matter). I have come tantalizingly close.Is there any other non-X image displayer?

View 5 Replies View Related

CentOS 5 :: .gif Images Do Not Display On Web Pages?

Aug 15, 2010

I recently migrated to a newer server running centos5 and cpanel

I have imagemagick installed

I installed freetype as well

Most images display fine on web pages for accounts on the server, however, .gif images do not display.All I get is an image placeholder.

.png are fine
.jpg are fine

I have not tested all the possible varieties of images, but .gif I know is not displaying.I am sure its some kind of RPM I am missing or a configuration problem.

View 1 Replies View Related

Debian Installation :: ISO Image Disk Does Not Function

Nov 22, 2014

I've been trying to load Debian with no success. Let me describe the issue:

1. I downloaded the iso image from the Debian pages. The md5sums match.
2. I changed the boot priority so the CDROM is accessed first.
3. Performed a cold boot and see a black screen that says Checking media [Fail]. I see this three times (HD is 4th on priority list) and then Mint loads.

Here is the odd part:

4. I can successfully load Arch from the cd/dvd drive.
5. I can also load Mint form the cd/dvd drive.
6. Cannot load Crunchbang from cd/dvd drive - same as when I try Debian.

I don't know how to proceed from here. I did erase my log files and performed another cold boot with Debian in hopes I might find some sort of error in them, but I really don't know what I am looking for. I saved the log files ....

System info:
Computer Toshiba Satellite P875-S7102
Linux distro Linux Mint 17 Cinnamon 64-bit
Cinnamon version 2.2.13
Linux Kernel 3.13.0-24-generic
Processor Intel Core i7-3630QM CPU @ 2.40 GHz x 4
Memory 8 GB
Hard drive 750 GB
Graphics Card Intel Coorporation 3rd Gen Core processor Graphics Controller

View 2 Replies View Related

Programming :: Declaring A Function In A Function - C Programming

May 24, 2010

I want to declare a function in a function, but had no success till now, see the error code below and visit the project at sourceforge

[Code]...

View 14 Replies View Related

Debian :: Image Magick And JBG Images - Format Seems Not To Be Supported By Default

Jul 23, 2010

I need to convert a .jbg image to something else more 'generic' (.jpg, .png) but i discover that thar format seems not to be supported by default. Searching i found that i need jbigkit, so i download it but know dont know how to make it work?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved